// add hack for blockcart cache and back button

This commit is contained in:
Rémi Gaillard committed 2013-05-20 17:30:04 +02:00
1 parent 3fd3ad2919
commit 7d5830af94
3 files changed
+4 -1

No files matched your search

+2 -1
View File
@@ -670,8 +670,9 @@ $(document).ready(function(){
ajaxCart.overrideButtonsInThePage();
var cart_qty = 0;
var current_timestamp = parseInt(new Date().getTime() / 1000);
if (typeof $('.ajax_cart_quantity').html() == 'undefined')
if (typeof $('.ajax_cart_quantity').html() == 'undefined' || (generated_date != null && (parseInt(generated_date) + 30) < current_timestamp))
ajaxCart.refresh();
else
cart_qty = parseInt($('.ajax_cart_quantity').html());