' + '
' + json['items'][0]['price'] + ' '; $("#pav-modalbox .modal-body").html(html); $("#pav-modalbox").modal('show'); setTimeout(function() { $("#pav-modalbox").modal('hide'); },3000); /* Need to set timeout otherwise it wont update the total */ var number = json['total'].split('-'); var count = number[0].split(' ', 2); setTimeout(function() { $('#cart > button').html('' + "" + count[0] + ""); $('#cart-total-2').html(json['number']); }, 100); $('html, body').animate({ scrollTop: 0 }, 'slow'); $('#cart ul.cart-view').load('/common/cart/info ul li'); } }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); }); $('#button-buy-this').on('click', function() { $('#button-cart').trigger('click'); setTimeout(function() { window.location.href = "https://acbow.vn/checkout/checkout"; }, 100); }); © Copyright 2022-2025 ACBOW. Thiết kế bởi
Zozo