- Posts: 14116
- Thank you received: 1639
"item was added to your cart" pop up
-
ivan.milic
Support Staff - Moderator
Less
More
12 years 11 months ago #14767
by ivan.milic
Replied by ivan.milic on topic Re: "item was added to your cart" pop up
Open components/com_virtuemart/assets/js/vmprices.js
Find this:
Insert this:
jQuery('#facebox').delay(3000).fadeOut(200);
before last bracket like this:
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.
Time to create page: 0.070 seconds