// add hack for blockcart cache and back button
This commit is contained in:
1 parent
3fd3ad2919
commit
7d5830af94
3 files changed
+4
-1
No files matched your search
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user