Return to Previous Page
' + titleForBox + ' was successfully added to your shopping cart.
Continue shopping View cart & checkout
';
}else{
msgHtml = '
';
}
setTimeout(function(){
windowOver.show();
windowBox.show().html(msgHtml);
windowOver.one('click',function(){
hidewindow(windowBox,windowOver);
});
jQuery('#hidewindow').click(function(){
hidewindow(windowBox,windowOver);
});
},300 )
}
}
}
function setLocationAjax(url,id){
url += 'isAjax/1';
url = url.replace("checkout/cart","ajax/index");
var msgHtml;
var productImg = jQuery('#productimgover' + id).html();
var windowOver = jQuery('#addedoverlay');
var windowBox = jQuery('#added');
var titleForBox = jQuery('#productname' + id).text();
windowOver.show();
windowBox.show().css({
backgroundImage: "url('http://www.therealalecompany.co.uk/skin/frontend/default/blanco/images/loading.gif')"
});
try {
jQuery.ajax( {
url : url,
dataType : 'json',
success : function(data) {
if(data.status == 'SUCCESS'){
msgHtml = 'Brown Ale
' + productImg + '
' + titleForBox + ' was successfully added to your shopping cart.Continue shopping View cart & checkout