Hi all, does anyone know how i can add a loading image to the json below ... thanks.
function submitgiftproduct(gift_product_id) {
$.ajax({
url: 'index.php?route={{ giftprod_modpath }}/applygiftprod',
type: 'post',
data: 'gift_product_id=' + encodeURIComponent(gift_product_id),
dataType: 'json',
success: function(json) {
if (json['redirect']) {
setTimeout(function () { location.reload(); }, 1000);
}
}
});
}
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Who is online
Users browsing this forum: JessiesBoutique and 518 guests