l=settings.url;if(current_url.indexOf("cart/add")>1){$.ajax({url:'index.php?route=checkout/cart/checkGifts',type:'POST',dataType:'json',success:function(json){if(json['gifts_with_options']){$.fancybox.open({href:'index.php?route=checkout/cart/giftTeaserOptions&product_id='+json['gifts_with_options'],type:'ajax',width:'40%',height:'50%',openEffect:'elastic',openSpeed:150,fitToView:true,closeBtn:true,});}}});}});$(document).ajaxComplete(function(event,request,settings){var current_url=settings.url;if(current_url.indexOf("checkout/cart/remove")>-1){location.reload();}});$(document).ajaxComplete(function(event,request,settings){var current_url=settings.url;if(current_url.indexOf("checkout/cart/GiftAdd")>-1){location.reload();}});