Trending

Bonsai Trees | Herons Bonsai Trees Online


Bonsai Trees | Herons Bonsai Trees Online – Indoor Bonsai and Outdoor Bonsai – UK Next Day Delivery 0){ var quant = jQuery(“#”+Formid+Prodid+” #Quant”+Prodid).val(); } else{ var quant = 1; } if(var_allow_order==1){ hasErrored = false; } else if(var_allow_order==3){ jQuery(“#”+Formid+Prodid+” #variant_alert”+Prodid).show(); var msg = “Sorry, the item is not manufactured in this combination”; jQuery(“#”+Formid+Prodid+” #variant_alert”+Prodid).css(“visibility”,”visible”); jQuery(“#”+Formid+Prodid+” #variant_alert”+Prodid).html(“”+msg+””); return false; } else if(var_allow_order==0 && var_stock<=0 && GlobalStockVar=="No"){ hasErrored = true; var productid = jQuery("#"+Formid+Prodid+" #productid").val(); var allow_stock_url = 'AllowStock.php'; jQuery.post( allow_stock_url, { productid:productid }, function(data) { jQuery("#"+Formid+Prodid+" #variant_alert"+Prodid).css("visibility","visible"); jQuery("#"+Formid+Prodid+" #variant_alert"+Prodid).html(""+data+""); return false; }) } else if(var_allow_order==0 && parseInt(quant)>parseInt(var_stock) && GlobalStockVar==”No”){ hasErrored = true; var productid = jQuery(“#”+Formid+Prodid+” #productid”).val(); var allow_stock_url = ‘AllowStock.php’; jQuery.post( allow_stock_url, { productid:productid }, function(data) { jQuery(“#”+Formid+Prodid+” #variant_alert”+Prodid).show(); jQuery(“#”+Formid+Prodid+” #variant_alert”+Prodid).css(“visibility”,”visible”); jQuery(“#”+Formid+Prodid+” #variant_alert”+Prodid).html(“”+data+””); return false; }) } else if(var_allow_order==0 && parseInt(quant)==parseInt(var_stock) && GlobalStockVar==”No”){ var cartid = “”; if(cartid!=””) { var productid = jQuery(“#”+Formid+Prodid+” #productid”).val(); var stock_quant = 0; if(stock_quant>=parseInt(var_stock)){ hasErrored = true; jQuery.post(“StockInCart.php”, { productid:productid }, function(data) { var dd = data.split(“-“); jQuery(“#”+Formid+Prodid+” #variant_alert”+Prodid).css(“visibility”,”visible”); jQuery(“#”+Formid+Prodid+” #variant_alert”+Prodid).html(“”+dd[1]+””); return false; }) return false; } } } if ((hasErrored==true)) { return false; } else if ((hasErrored==false)) { jQuery(“#”+Formid+Prodid+” #variant_alert”+Prodid).html(”); if(cartopensettings==”cartpage”){ jQuery(“.QtyAdded”).html(quant+” Item(s) Added To Your Basket”); jQuery.fancybox({ ‘width’ : 400, ‘content’ : jQuery(“#FancyBoxContainer”).html(), ‘afterClose’: function() { jQuery(“#FancyBoxContainer”).css(“display”,”none”); } }); jQuery.post(‘https://www.herons.co.uk/AddToCart.php’, jQuery(“#”+Formid+Prodid).serialize(), function(data) { }); return false; } } } ]]>

Source

Leave a Reply