About Prestashop, Tips & Tricks

About prestashop PrestaShop’s technical architecture PrestaShop is based on a 3-tier architecture, using same principle as the Model > View > Controller (MVC) architecture, only in a simpler and more accessible way: Object/data. Database access is controlled through files in the “classes” folder Data control. User-provided content is controlled by files in the root folder. …

How to switch back to old classic editor on WordPress

The latest version of WordPress 5.0, have Gutenberg enabled. Personally, I did not use it the new Gutenberg editor, so I don’t have much to say about it. Because I got used to the old editor, the classic one, in this post I will show solutions to revert back to the previous WordPress editor. Support …

Adwords, how to show location extensions from Google my business

Why to use location extensions in your ads? Locaion extensions are very good to use because will extend your ads with your address, a map to your location, or the distance to your business. Also location extensions will include your phone number or call button so that users can easily call your business. Your ads …

PHP array functions

List of functions that work with php arrays. array_shift() array_shift() – Shifts the first value of the array off and returns it, shortening the array by one element and moving everything down. All numerical array keys will be modified to start counting from zero while literal keys won’t be touched. array_pop() array_pop() – pop the …

PHP Display errors & Debug

To turn on error reporting 1. Set in php.ini 2. In php.code Check error logs on apache server Check errors in log file that is configured in etc/apache2/httpd.conf DEBUG Php useful debugging functions gettype($variable) – Get variable type; var_dump($variable) – Dumps information about a variable; get_defined_vars() – Return an array of all defined variables; debug_backtrace() …

WordPress plugins development

Why we need plugins on wordpress? The plugins are used to extend default WordPress functionality without touching any core files. Changing anything in the WordPress core files is a bad idea because you can break the site. In plus when WordPress is updated, any core modifications will be overwritten and lost. At this moment are …

Enable Debugging in WordPress

Before we start it is indicated to have the debug enabled. To be sure that debug mode is enabled wordpress, go to the wp-config file and add next lines For more information about enabling debug on wordpress, check out the developer docs at wordpress

Limiting upload file size in PHP

Limiting upload file size We can configure upload max file size in php.ini file, but this is a global maximum for all of PHP. If we want to configure max file size in a particular case, we can do that by adding an attribute to HTML form for MAX_FILE_SIZE. PHP will automatically detect that value …