Cakephp is a good framework, it include many aspect of building a website fast. Handling error in cakephp 2 is easy, by default you can change template for all type of error inside folder app/Views/Errors (in prior version app/views/errors). You can create each template for each error, such as
Http Error
error400.ctp
error404.ctp
error500.ctp, etc
Missing File
missing_action.ctp
missing_component_class.ctp
missing_component_file.ctp
missing_connection.ctp
missing_controller.ctp
missing_helper_class.ctp
missing_helper_file.ctp
missing_layout.ctp
missing_model.ctp
missing_scaffolddb.ctp
missing_table.ctp
missing_view.ctp
(more…)
Debugging mode and deploy mode must have different handling. When developing we need to enable debug mode to see warning or problem on our website before ready to launch. When all function are tested without error, we are ready to launch it and put it to deploy mode. This article is about how to optimize prestashop on deploy mode.
There are several setting that you can use to maximize page load on prestashop, such as
- Enable Smarty Cache File
Set force compile to off will make page load are faster. Always Force compile will slow down the page load, only enable when you do template changes
- Enabled CCC Setting
Enable this to CSS, Javascript, and HTML without touching your template will improve your website performance. It decrease server load by combine all CSS files into one file. Also this setting compress the file so the filesize is smaller make it faster to load.
- Enable Cache System
This is important, if you dont have memcached feature on your hosting, just use File system cache. This caching system significantly improve page load speed.
Where you can find this setting to optimize prestashop? Just go to admin area, open menu Preferences > Performance
SEO is important when we want to optimize our website to gain more visitor from search engine result page. It is important to have unique title, keyword and description metatag for all your web pages. This way the search engine crawler will index better using this information. It is also important for prestashop to have seo for homepage, however probably it is a bit confusing to set it on admin area.
I will tell you how to edit seo parameter for title, keyword and description metatag for your homepage or your other pages except products and categories. Please follow this step
- Go to admin area
- Open Menu Preferences > SEO & URLs
- And then edit index.php from the page list (url lists)
- On next interface you will see input field for title, keyword and description metatag
Using this way, you could change seo parameter for another pages, just find on the list and then edit it.
I got strange error when Configure any module on prestashop Module menu. If i click Configure to any module that are installed, i will get this error message “Module uninstalled successfully“. I try to reset the module, and it work for a while when i click configure, but then when i save the configuration, it showing that error again.
So i explore about this problem and found there is a bug that when we enable cache system, the system will showing that error message. So i do this step
- Go to Preferences > Performance, and turn off Caching. I also turn off smarty cache and force to compile.
- And then i configure the modules, and never get that strange message anymore
I think the caching system need to fixed, because this caching system on prestashop often making strange behavior on the interface. If you find case like this just turn of caching system first. If everything has been setup then we can enable the caching system again for better performance on frontend
By default prestashop will not send confirmation email order to sales or admin email. So we need to set first before we can get confirmation email order using prestashop. We know prestashop is quit complex CMS for ecommerce, that make setting much harder than others CMS.
I use this procedure to get confirmation email order send to sales or admin email :
- Install Maill Alerts by Prestashop Module, and then configure. Place target confirmation email address on Send to these e-mail addresses
- Go to Employess > Contacts, set email for Customer Service
- Go to Preferences > E-mail, set email to Customer Service
By using that procedure my prestashop now can send confirmation email order to sales or admin email.