Posts

Showing posts from June, 2017

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