Posts

How to test Ocmod extension or module xml file code in Opencart without installing?

Image
Answer : We can simply put our ocmod xml file in ROOT- > SYSTEM(folder) it will work. later on developer can install it in admin Extension->Extensioin Installer

Where we can see Ocmod error, VQmod Error and PHP File Error in Opencart?

Image
1. Ocmod Error can be found here:- Answer : Path: /system/storage/logs File Name:  error.txt or error.log 2. Vqmod Error or PHP Error can be found here:- Answer : Path: / File Name:  error_log

Javascript Error: Uncaught ReferenceError: ga is not defined at HTMLImageElement.onload

Image
Hi, I found this error on my Jquery Page.  Uncaught ReferenceError: ga is not defined     at HTMLImageElement.onload  I added this below script now it has been solved  window['GoogleAnalyticsObject'] = 'ga';   window['ga'] = window['ga'] || function() {     (window['ga'].q = window['ga'].q || []).push(arguments)   };

Creating full width (100% ) container inside fixed width container.

Image
For Making a full width containers (which spans 100% of window) inside a container which has a fixed width and aligned center like below picuture. I used following css now its done .box_short { position: relative; width: 100vw; left: 50%; margin-left: -50vw; } for deep knowledge you can follow this link http://jsfiddle.net/m1L6pfwm/2/

Fatal error: Call to a member function getCimOrderSuccesfulResponse() on a non-object in Opencart Authorize.net CIM payment method error

Hi I was getting error in Authorize.net CIM payment method in Opencart admin in Order View page. so I fixed it by following these two steps 1. In file Admin-> controller-> extension-> authorizenet_cim.php I replaced this line  model_payment_authorizenet_cim to  model_extension_payment_authorizenet_cim 2. In file Admin-> model->extension->payment->authorizenet_cim.php I replaced the class name  ModelPaymentExtensionAuthorizeNetCim to  ModelExtensionPaymentAuthorizeNetCim Now Problem has been fixed.😅😅😅 Happy Coding -------

how to override JavaScript function

REAL FUNCTION compare = {         add: function(t) {             $.ajax({                 url: "index.php?route=product/compare/add",                 type: "post",                 data: "product_id=" + t,                 dataType: "json",                 success: function(t) {                     $(".alert").remove(), t.success && ($.colorbox({                         html: '<div class="cart_notification"><div class="product"><img src="' + t.image + '"/><span>' + t.success + '</span></div><div class="bottom"><a class="btn btn-primary" href="' + t.link_compare + '">' + t.text_compare + "</a></div></div>",                         className: "login",                         initialHeight: 50,                         initialWidth

maximum execution time error when importing sql data file since php.ini has been already set max execution time 3000

I am trying to import a large SQL data file using PHPMyAdmin in localhost This the config file for php.ini  max_exection_time : 30000 already set. but I still getting this problem. so I follow this step and now the problem has been solved. Solution:   There's a configuration variable within the phpMyAdmin directory that I find in  libraries\config.default.php  called  $cfg['ExecTimeLimit']  that I set according to my requirement now it has been fixed.