"item was added to your cart" pop up

More
12 years 3 months ago #14767 by ivan.milic
Open components/com_virtuemart/assets/js/vmprices.js

Find this:
Code:
$.fn.productUpdate = function() { mod = $(this); $.getJSON(siteurl+"index.php?option=com_virtuemart&nosef=1&view=cart&task=viewJS&format=json", function(datas, textStatus) { if (datas.totalProduct >0) { mod.find(".vm_cart_products").html(""); $.each(datas.products, function(key, val) { $("#hiddencontainer .container").clone().appendTo(".vmCartModule .vm_cart_products"); $.each(val, function(key, val) { if ($("#hiddencontainer .container ."+key)) mod.find(".vm_cart_products ."+key+":last").html(val) ; }); }); mod.find(".total").html(datas.billTotal); mod.find(".show_cart").html(datas.cart_show); } mod.find(".total_products").html(datas.totalProductTxt); } ); }

Insert this:

jQuery('#facebox').delay(3000).fadeOut(200);

before last bracket like this:
Code:
$.fn.productUpdate = function() { mod = $(this); $.getJSON(siteurl+"index.php?option=com_virtuemart&nosef=1&view=cart&task=viewJS&format=json", function(datas, textStatus) { if (datas.totalProduct >0) { mod.find(".vm_cart_products").html(""); $.each(datas.products, function(key, val) { $("#hiddencontainer .container").clone().appendTo(".vmCartModule .vm_cart_products"); $.each(val, function(key, val) { if ($("#hiddencontainer .container ."+key)) mod.find(".vm_cart_products ."+key+":last").html(val) ; }); }); mod.find(".total").html(datas.billTotal); mod.find(".show_cart").html(datas.cart_show); } mod.find(".total_products").html(datas.totalProductTxt); } ); jQuery('#facebox').delay(3000).fadeOut(200); }

Please Log in to join the conversation.

  • vitali
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
12 years 3 months ago #14779 by vitali
Thanks ! It works now.

Please Log in to join the conversation.

Time to create page: 0.297 seconds
Powered by Kunena Forum