OCMOD modification is not working in OpenCart 3.0.3.6

There is a bug in OpenCart 3.0.3.6 where the OCMOD modification is partially working or not working at all. To fix this issue, you need to access the file system/modification.xml Edit the file and copy-paste code as mentioned below or you can get the code from https://github.com/opencart/opencart/blob/3.0.x.x_Maintenance/upload/system/modification.xml After editing and saving the updated changes, click […]

How to find Fatal Error / Error 500 / Server error in opencart

To find what is causing the error 500/ internal server error / this page isn’t working, try the following The issue could be related to htaccess file or some broken code in the program Try adding this code to your index.php file, just after the opening php tag <?php ini_set(‘display_errors’, 1);ini_set(‘display_startup_errors’, 1);error_reporting(E_ALL); Now you should […]

Passing decoded Cyrillic Characters in json_encode

To decode the encoded cyrillic characters like \u041D in an array and to pass it to json_encode, follow the below technique json_encode($array, JSON_UNESCAPED_UNICODE); or $json = defined(‘JSON_UNESCAPED_UNICODE’) ? json_encode($array, JSON_UNESCAPED_UNICODE) : json_encode($str); or if PHP 5.4 and below preg_replace_callback(‘/\\\u([01-9a-fA-F]{4})/’, ‘prepareUTF8’, json_encode($array))

Using OpenCart Effectively

Do not rename admin folder Do not install 1.5.x.x or any lower opencart version. Use 2.3.0.2 or the latest stable version Do not install vqmod Do not install too many SEO extensions. Always use SEO extension from one particular developer Avoid using Nitro Cache if your website is frequently updated with products or price or […]