'),myGallery.close();var t=parseFloat(20),a=parseFloat($(this).attr("data-prodval"));gtag("event","add_to_cart",{currency:"GBP",value:t+a,items:[{item_id:$(this).attr("data-prod"),item_name:$(this).attr("data-prod"),price:$(this).attr("data-prodval")},{item_id:"FLOWERING HOUSE PLANT",item_name:"FLOWERING HOUSE PLANT",price:20}]}),$(this).attr("data-prodval"),productSubmit()})),$("#continueToCart").click((function(e){$("#addcr1").remove(),$("#addcr2").remove(),$("#addcr3").remove(),myGallery.close(),productSubmit()})),$("#designDetail").validate({errorClass:"errorMessage",errorElement:"span",highlight:function(e,t,a){$(e).parent("div").parent("div").addClass("highlight")},unhighlight:function(e,t,a){$(e).parent("div").parent("div").removeClass("highlight")},errorPlacement:function(e,t){e.appendTo(t.parent())},submitHandler:function(e,t){"radio"==$('*[name="price"]').attr("type")?document.getElementById("label").value=$("input[name=price]:checked").attr("data-label"):$("#price").is("select")&&(document.getElementById("label").value=$("#price").find("option:selected").attr("data-label")),"1"==$("#crossSaleComplete").val()?($("#crossSaleComplete").val("0"),e.submit()):($("#crossSaleComplete").val("1"),t.preventDefault(),myGallery.open())}}),$(document).on("keydown","form",(function(e){return"Enter"!=e.key}));