 Create Custom canadaonadult sleeveless t-shirt ClickandShirt; sizeprice24mcolorsize1; else dg_product.htmlhtml; alerthtml; dg_product.htmlhtml; checkoutbasket.htmlhtmlbasket; html; htmlbasket; getcolorimagesid,cid; console.logdata; , error: functiondata console.logerror; console.logdata; ; function textsizevalue,id,sizeprice oldtotalpricecheckerparseFloattotalpricechecker; ifvalue1 ifidinput_s ibsparseFloatinputbasket_s.val; var defparseFloatinput_s.val; ifdefibs totalpricecheckeribsdef; input_s.valibs; ifidinputbasket_s isparseFloatinput_s.val; var defparseFloatinputbasket_s.val; ifdefis totalpricecheckerisdef; inputbasket_s.valis; ifvalue2 ifidinput_m ibmparseFloatinputbasket_m.val; var defparseFloatinput_m.val; ifdefibm totalpricecheckeribmdef; input_m.valibm; ifidinputbasket_m imparseFloatinput_m.val; var defparseFloatinputbasket_m.val; ifdefim totalpricecheckerimdef; inputbasket_m.valim; ifvalue3 ifidinput_l iblparseFloatinputbasket_l.val; var defparseFloatinput_l.val; ifdefibl totalpricecheckeribldef; input_l.valibl; ifidinputbasket_l ilparseFloatinput_l.val; var defparseFloatinputbasket_l.val; ifdefil totalpricecheckerildef; inputbasket_l.valil; ifvalue4 ifidinput_xl ibxlparseFloatinputbasket_xl.val; var defparseFloatinput_xl.val; ifdefibxl totalpricecheckeribxldef; input_xl.valibxl; ifidinputbasket_xl ixlparseFloatinput_xl.val; var defparseFloatinputbasket_xl.val; ifdefixl totalpricecheckerixldef; inputbasket_xl.valixl; ifvalue5 ifidinput_xxl ibxxlparseFloatinputbasket_xxl.val; var defparseFloatinput_xxl.val; ifdefibxxl totalpricecheckeribxxldef; input_xxl.valibxxl; ifidinputbasket_xxl ixxlparseFloatinput_xxl.val; var defparseFloatinputbasket_xxl.val; ifdefixxl totalpricecheckerixxldef; inputbasket_ixxl.valixxl; ifvalue6 ifidinput_3xl ib3xlparseFloatinputbasket_3xl.val; var defparseFloatinput_3xl.val; ifdefib3xl totalpricecheckerib3xldef; input_3xl.valib3xl; ifidinputbasket_3xl i3xlparseFloatinput_3xl.val; var defparseFloatinputbasket_3xl.val; ifdefi3xl totalpricecheckeri3xldef; inputbasket_3xl.vali3xl; ifvalue7 ifidinput_5xl ib5xlparseFloatinputbasket_5xl.val; var defparseFloatinput_5xl.val; ifdefib5xl totalpricecheckerib5xldef; input_5xl.valib5xl; ifidinputbasket_5xl i5xlparseFloatinput_5xl.val; var defparseFloatinputbasket_5xl.val; ifdefi5xl totalpricecheckeri5xldef; inputbasket_5xl.vali5xl; ifvalue8 ifidinput_4xl ib4xlparseFloatinputbasket_4xl.val; var defparseFloatinput_4xl.val; ifdefib4xl totalpricecheckerib4xldef; input_4xl.valib4xl; ifidinputbasket_4xl i4xlparseFloatinput_4xl.val; var defparseFloatinputbasket_4xl.val; ifdefi4xl totalpricecheckeri4xldef; inputbasket_4xl.vali4xl; ifvalue9 ifidinput_xs ibxsparseFloatinputbasket_xs.val; var defparseFloatinput_xs.val; ifdefibxs totalpricecheckeribxsdef; input_xs.valibxs; ifidinputbasket_xs ixsparseFloatinput_xs.val; var defparseFloatinputbasket_xs.val; ifdefixs totalpricecheckerixsdef; inputbasket_xs.valixs; ifvalue10 ifidinput_0s ib0sparseFloatinputbasket_0s.val; var defparseFloatinput_0s.val; ifdefib0s totalpricecheckerib0sdef; input_0s.valib0s; ifidinputbasket_0s i0sparseFloatinput_0s.val; var defparseFloatinputbasket_0s.val; ifdefi0s totalpricecheckeri0sdef; inputbasket_0s.vali0s; ifvalue11 ifidinput_6m ib6mparseFloatinputbasket_6m.val; var defparseFloatinput_6m.val; ifdefib6m totalpricecheckerib6mdef; input_6m.valib6m; ifidinputbasket_6m i6mparseFloatinput_6m.val; var defparseFloatinputbasket_6m.val; ifdefi6m totalpricecheckeri6mdef; inputbasket_6m.vali6m; ifvalue12 ifidinput_12m ib12mparseFloatinputbasket_12m.val; var defparseFloatinput_12m.val; ifdefib12m totalpricecheckerib12mdef; input_12m.valib12m; ifidinputbasket_12m i12mparseFloatinput_12m.val; var defparseFloatinputbasket_12m.val; ifdefi12m totalpricecheckeri12mdef; inputbasket_12m.vali12m; ifvalue13 ifidinput_18m ib18mparseFloatinputbasket_18m.val; var defparseFloatinput_18m.val; ifdefib18m totalpricecheckerib18mdef; input_18m.valib18m; ifidinputbasket_18m i18mparseFloatinput_18m.val; var defparseFloatinputbasket_18m.val; ifdefi18m totalpricecheckeri18mdef; inputbasket_18m.vali18m; ifvalue14 ifidinput_24m ib24mparseFloatinputbasket_24m.val; var defparseFloatinput_24m.val; ifdefib24m totalpricecheckerib24mdef; input_24m.valib24m; ifidinputbasket_24m i24mparseFloatinput_24m.val; var defparseFloatinputbasket_24m.val; ifdefi24m totalpricecheckeri24mdef; inputbasket_24m.vali24m; var tsxsinputbasket_xs.val; var tssinputbasket_s.val; var tsminputbasket_m.val; var tslinputbasket_l.val; var tsxlinputbasket_xl.val; var tsxxlinputbasket_xxl.val; var tsxxxlinputbasket_3xl.val; var tsxxxlinputbasket_4xl.val; var tsxxxlinputbasket_5xl.val; var tsosinputbasket_0s.val; var tsm6inputbasket_6m.val; var tsm12inputbasket_12m.val; var tsm18inputbasket_18m.val; var tsm24inputbasket_24m.val; ifisNaNtsxs tsxs xs0; tsxs0; else ibxstsxs; ifisNaNtss tss tss0; ibs0; else ibstss; ifisNaNtsm tsm tsm0; ibm0; else ibmtsm; ifisNaNtsl tsl tsl0; ibl0; else ibltsl; ifisNaNtsxl tsxl tsxl0; ibxl0; else ibxltsxl; ifisNaNtsxxl tsxxl tsxxl0; ibxxl0; else ibxxltsxxl; ifisNaNtsxxxl tsxxxl tsxxxl0; ib3xl0; else ib3xltsxxxl; ifisNaNtsxxxl tsxxxl tsxxxl0; ib4xl0; else ib4xltsxxxl; ifisNaNtsxxxl tsxxxl tsxxxl0; ib5xl0; else ib5xltsxxxl; ifisNaNtsos tsos tsos0; ib0s0; else ib0stsos; ifisNaNtsm6 tsm6 tsm60; ib6m0; else ib6mtsm6; ifisNaNtsm12 tsm12 tsm120; ib12m0; else ib12mtsm12; ifisNaNtsm18 tsm18 tsm180; ib18m0; else ib18mtsm18; ifisNaNtsm24 tsm24 tsm240; ib24m0; else ib24mtsm24; console.logtsxsxs; console.logtsss; console.logtsmm; console.logtsll; console.logtsxlxl; console.logtsxxlxxl; console.logtsxxxlxxxl; console.logtsxxxlxxxl; console.logtsxxxlxxxl; console.logtsosos; console.logtsm6m6; console.logtsm12m12; console.logtsm18m18; console.logtsm24m24; console.loginputbasket_s.valinputbasket_m.valinputbasket_l.val; newtotalpricecheckerparseFloatparseFloattsxsparseFloattssparseFloattsmparseFloattslparseFloattsxlparseFloattsxxlparseFloattsxxxlparseFloattsxxxlparseFloattsxxxlparseFloattsosparseFloattsm6parseFloattsm12parseFloattsm18parseFloattsm24; ifoldtotalpricecheckernewtotalpricechecker totalpricecheckernewtotalpricechecker; discounttotalpricechecker,0,sizeprice,value; sizeincrementvalue,sizeprice; ifoldtotalpricechecker0 else ifinput_s.val isNaNinput_s.val is0; input_s.valis; else isparseFloatinput_s.val-1; input_s.valis; ifinputbasket_s.val0 else ifinputbasket_s.val isNaNinputbasket_s.val ibs0; inputbasket_s.valibs; else ibsparseFloatinputbasket_s.val-1; inputbasket_s.valibs; ifvalue2 ifinput_m.val0 else ifinput_m.val isNaNinput_m.val im0; input_m.valim; else imparseFloatinput_m.val-1; input_m.valim; ifinputbasket_m.val0 else ifinputbasket_m.val isNaNinputbasket_m.val ibm0; inputbasket_m.valibm; else ibmparseFloatinputbasket_m.val-1; inputbasket_m.valibm; ifvalue3 ifinput_l.val0 else ifinput_l.val isNaNinput_l.val il0; input_l.valil; else ilparseFloatinput_l.val-1; input_l.valil; ifinputbasket_l.val0 else ifinputbasket_l.val isNaNinputbasket_l.val ibl0; inputbasket_l.valibl; else iblparseFloatinputbasket_l.val-1; inputbasket_l.valibl; ifvalue4 ifinput_xl.val0 else ifinput_xl.val isNaNinput_xl.val ixl0; input_xl.valixl; else ixlparseFloatinput_xl.val-1; input_xl.valixl; ifinputbasket_xl.val0 else ifinputbasket_xl.val isNaNinputbasket_xl.val ibxl0; inputbasket_xl.valibxl; else ibxlparseFloatinputbasket_xl.val-1; inputbasket_xl.valibxl; ifvalue5 ifinput_xxl.val0 else ifinput_xxl.val isNaNinput_xxl.val ixxl0; input_xxl.valixxl; else ixxlparseFloatinput_xxl.val-1; input_xxl.valixxl; ifinputbasket_xxl.val0 else ifinputbasket_xxl.val isNaNinputbasket_xxl.val ibxxl0; inputbasket_xxl.valibxxl; else ibxxlparseFloatinputbasket_xxl.val-1; inputbasket_xxl.valibxxl; ifvalue6 ifinput_3xl.val0 else ifinput_3xl.val isNaNinput_3xl.val i3xl0; input_3xl.vali3xl; else i3xlparseFloatinput_3xl.val-1; input_3xl.vali3xl; ifinputbasket_3xl.val0 else ifinputbasket_3xl.val isNaNinputbasket_3xl.val ib3xl0; inputbasket_3xl.valib3xl; else ib3xlparseFloatinputbasket_3xl.val-1; inputbasket_3xl.valib3xl; ifvalue7 ifinput_5xl.val0 else ifinput_5xl.val isNaNinput_5xl.val i5xl0; input_5xl.vali5xl; else i5xlparseFloatinput_5xl.val-1; input_5xl.vali5xl; ifinputbasket_5xl.val0 else ifinputbasket_5xl.val isNaNinputbasket_5xl.val ib5xl0; inputbasket_5xl.valib5xl; else ib5xlparseFloatinputbasket_5xl.val-1; inputbasket_5xl.valib5xl; ifvalue8 ifinput_4xl.val0 else ifinput_4xl.val isNaNinput_4xl.val i4xl0; input_4xl.vali4xl; else i4xlparseFloatinput_4xl.val-1; input_4xl.vali4xl; ifinputbasket_4xl.val0 else ifinputbasket_4xl.val isNaNinputbasket_4xl.val ib4xl0; inputbasket_4xl.valib4xl; else ib4xlparseFloatinputbasket_4xl.val-1; inputbasket_4xl.valib4xl; ifvalue9 ifinput_xs.val0 else ifinput_xs.val isNaNinput_xs.val ixs0; input_xs.valixs; else ixsparseFloatinput_xs.val-1; input_xs.valixs; ifinputbasket_xs.val0 else ifinputbasket_xs.val isNaNinputbasket_xs.val ibxs0; inputbasket_xs.valibxs; else ibxsparseFloatinputbasket_xs.val-1; inputbasket_xs.valibxs; ifvalue10 ifinput_0s.val0 else ifinput_0s.val isNaNinput_0s.val i0s0; input_0s.vali0s; else i0sparseFloatinput_0s.val-1; input_0s.vali0s; ifinputbasket_0s.val0 else ifinputbasket_0s.val isNaNinputbasket_0s.val ib0s0; inputbasket_0s.valib0s; else ib0sparseFloatinputbasket_0s.val-1; inputbasket_0s.valib0s; ifvalue11 ifinput_6m.val0 else ifinput_6m.val isNaNinput_6m.val i6m0; input_6m.valim; else i6mparseFloatinput_6m.val-1; input_6m.vali6m; ifinputbasket_6m.val0 else ifinputbasket_6m.val isNaNinputbasket_6m.val ib6m0; inputbasket_6m.valib6m; else ib6mparseFloatinputbasket_6m.val-1; inputbasket_6m.valib6m; ifvalue12 ifinput_12m.val0 else ifinput_12m.val isNaNinput_12m.val i12m0; input_12m.vali12m; else i12mparseFloatinput_12m.val-1; input_12m.vali12m; ifinputbasket_12m.val0 else ifinputbasket_12m.val isNaNinputbasket_12m.val ib12m0; inputbasket_12m.valib12m; else ib12mparseFloatinputbasket_12m.val-1; inputbasket_12m.valib12m; ifvalue13 ifinput_18m.val0 else ifinput_18m.val isNaNinput_18m.val i18m0; input_18m.vali18m; else i18mparseFloatinput_18m.val-1; input_18m.vali18m; ifinputbasket_18m.val0 else ifinputbasket_18m.val isNaNinputbasket_18m.val ib18m0; inputbasket_18m.valib18m; else ib18mparseFloatinputbasket_18m.val-1; inputbasket_18m.valib18m; ifvalue14 ifinput_24m.val0 else ifinput_24m.val isNaNinput_24m.val i24m0; input_24m.vali24m; else i24mparseFloatinput_24m.val-1; input_24m.vali24m; ifinputbasket_24m.val0 else ifinputbasket_24m.val isNaNinputbasket_24m.val ib24m0; inputbasket_24m.valib24m; else ib24mparseFloatinputbasket_24m.val-1; inputbasket_24m.valib24m; totalpricecheckerparseFloatibsparseFloatibmparseFloatiblparseFloatibxlparseFloatibxxlparseFloatib3xlparseFloatib4xlparseFloatib5xlparseFloatibxsparseFloatib0sparseFloatib6mparseFloatib12mparseFloatib18mparseFloatib24m; totalpricecheckerparseFloatisparseFloatimparseFloatilparseFloatixlparseFloatixxlparseFloati3xlparseFloati4xlparseFloati5xlparseFloatixsparseFloati0sparseFloati6mparseFloati12mparseFloati18mparseFloati24m; alerttotalpricechecker; discounttotalpricechecker,0,sizeprice,value; var actualdiscount0; var discountamount0; function discountsizequantity,num,sizeprice,value var actualpriceparseFloattotal.text; var quantity parseFloatsizequantity; var basepriceparseFloatbaseprice.text; ifsizeprice0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizeprice; else var calculatebasepricediffparseFloatparseFloatsizeprice-parseFloatbaseprice; var sumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; ifvalue1 ifsizeprices0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizeprices; else var calculatebasepricediffparseFloatparseFloatsizeprices-parseFloatbaseprice; smallsumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; spriceparseFloatparseFloatibsparseFloatsmallsumupprice; ifvalue2 ifsizepricem0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizepricem; else var calculatebasepricediffparseFloatparseFloatsizepricem-parseFloatbaseprice; mediumsumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; mpriceparseFloatparseFloatibmparseFloatmediumsumupprice; ifvalue3 ifsizepricel0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizepricel; else var calculatebasepricediffparseFloatparseFloatsizepricel-parseFloatbaseprice; largesumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; lpriceparseFloatparseFloatiblparseFloatlargesumupprice; ifvalue4 ifsizepricexl0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizepricexl; else var calculatebasepricediffparseFloatparseFloatsizepricexl-parseFloatbaseprice; xlsumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; xlpriceparseFloatparseFloatibxlparseFloatxlsumupprice; ifvalue5 ifsizepricexxl0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizepricexxl; else var calculatebasepricediffparseFloatparseFloatsizepricexxl-parseFloatbaseprice; xxlsumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; xxlpriceparseFloatparseFloatibxxlparseFloatxxlsumupprice; ifvalue6 ifsizepricexxxl0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizepricexxxl; else var calculatebasepricediffparseFloatparseFloatsizepricexxxl-parseFloatbaseprice; xxxlsumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; price3xlparseFloatparseFloatib3xlparseFloatxxxlsumupprice; ifvalue7 ifsizepricexxxl0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizepricexxxl; else var calculatebasepricediffparseFloatparseFloatsizepricexxxl-parseFloatbaseprice; xxxlsumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; price5xlparseFloatparseFloatib5xlparseFloatxxxlsumupprice; ifvalue8 ifsizepricexxxl0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizepricexxxl; else var calculatebasepricediffparseFloatparseFloatsizepricexxxl-parseFloatbaseprice; xxxlsumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; price4xlparseFloatparseFloatib4xlparseFloatxxxlsumupprice; ifvalue9 ifsizepricexs0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizepricexs; else var calculatebasepricediffparseFloatparseFloatsizepricexs-parseFloatbaseprice; exssumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; xspriceparseFloatparseFloatibxsparseFloatexssumupprice; ifvalue10 ifsizeprice0s0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizeprice0s; else var calculatebasepricediffparseFloatparseFloatsizeprice0s-parseFloatbaseprice; ossumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; price0sparseFloatparseFloatib0sparseFloatossumupprice; ifvalue11 ifsizeprice6m0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizeprice6m; else var calculatebasepricediffparseFloatparseFloatsizeprice6m-parseFloatbaseprice; sixmsumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; price6mparseFloatparseFloatib6mparseFloatsixmsumupprice; ifvalue12 ifsizeprice12m0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizeprice12m; else var calculatebasepricediffparseFloatparseFloatsizeprice12m-parseFloatbaseprice; tmsumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; price12mparseFloatparseFloatib12mparseFloattmsumupprice; ifvalue13 ifsizeprice18m0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizeprice18m; else var calculatebasepricediffparseFloatparseFloatsizeprice18m-parseFloatbaseprice; emsumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; price18mparseFloatparseFloatib18mparseFloatemsumupprice; ifvalue14 ifsizeprice24m0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizeprice24m; else var calculatebasepricediffparseFloatparseFloatsizeprice24m-parseFloatbaseprice; tfmsumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; price24mparseFloatparseFloatib24mparseFloattfmsumupprice; salepriceparseFloatspriceparseFloatmpriceparseFloatlpriceparseFloatxlpriceparseFloatxxlpriceparseFloatprice3xlparseFloatprice5xlparseFloatprice4xlparseFloatxspriceparseFloatprice0sparseFloatprice6mparseFloatprice12mparseFloatprice18mparseFloatprice24m; .ajax type:GET, url: data:quantity: quantity,saleprice:saleprice,actualprice:actualprice, success:functiondata var discountdataJSON.parsedata; var basequantitydiscountdata.basequantity; ifdiscountdata.productpricediscount else actualdiscountdiscountdata.productpricediscount; ifdiscountdata.modaldata else discountamountdiscountdata.modaldata; var discountcalculateparseFloatsaleprice.toFixed2parseFloatdiscountamount100; ifquantity discountdata.basequantity designcheckouttotal.textparseFloattotal.text.toFixed2.csstext-decoration, none; crosstotal.text; discountlabel.text; discounttotallabel.text; basiccrosstotal.text; remainingdiscountstatement.html; checkouttotal.textparseFloatsaleprice.toFixed2.csstext-decoration, none; discountstatement.htmldiscountdata.message; else discountlabel.textDiscount Price: ; discounttotallabel.text; basiccrosstotal.textparseFloatactualdiscount.toFixed2; designcheckouttotal.textparseFloattotal.text.toFixed2.csstext-decoration, line-through; checkouttotal.textparseFloatsaleprice.toFixed2.csstext-decoration, line-through; crosstotal.textparseFloatsaleprice-parseFloatdiscountcalculate.toFixed2; crosstotal.textparseFloatdiscountdata.totaldiscount.toFixed2; ifdiscountamount0 discountstatement.html; discountlabel.text; basiccrosstotal.text; checkouttotal.text; else discountstatement.htmldiscountamount for quantity items; discountstatement.htmldiscountdata.message; ifdiscountdata.productpricediscount 0 remainingdiscountstatement.html; ifnum 0 cartstatement.html; else cartstatement.htmlnum items are already in cart; , error: functiondata ; function sizevalueupdate ifinputbasket_s.val0 var actualpriceparseFloattotal.text; var basepriceparseFloatbaseprice.text; ifsizeprices0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizeprices; else var calculatebasepricediffparseFloatparseFloatsizeprices-parseFloatbaseprice; smallsumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; spriceparseFloatparseFloatibsparseFloatsmallsumupprice; ifinputbasket_m.val0 var actualpriceparseFloattotal.text; var basepriceparseFloatbaseprice.text; ifsizepricem0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizepricem; else var calculatebasepricediffparseFloatparseFloatsizepricem-parseFloatbaseprice; mediumsumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; mpriceparseFloatparseFloatibmparseFloatmediumsumupprice; ifinputbasket_l.val0 var actualpriceparseFloattotal.text; var basepriceparseFloatbaseprice.text; ifsizepricel0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizepricel; else var calculatebasepricediffparseFloatparseFloatsizepricel-parseFloatbaseprice; largesumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; lpriceparseFloatparseFloatiblparseFloatlargesumupprice; ifinputbasket_xl.val0 var actualpriceparseFloattotal.text; var basepriceparseFloatbaseprice.text; ifsizepricexl0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizepricexl; else var calculatebasepricediffparseFloatparseFloatsizepricexl-parseFloatbaseprice; xlsumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; xlpriceparseFloatparseFloatibxlparseFloatxlsumupprice; ifinputbasket_xxl.val0 var actualpriceparseFloattotal.text; var basepriceparseFloatbaseprice.text; ifsizepricexxl0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizepricexxl; else var calculatebasepricediffparseFloatparseFloatsizepricexxl-parseFloatbaseprice; xxlsumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; xxlpriceparseFloatparseFloatibxxlparseFloatxxlsumupprice; ifinputbasket_3xl.val0 var actualpriceparseFloattotal.text; var basepriceparseFloatbaseprice.text; ifsizepricexxxl0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizepricexxxl; else var calculatebasepricediffparseFloatparseFloatsizepricexxxl-parseFloatbaseprice; xxxlsumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; price3xlparseFloatparseFloatib3xlparseFloatxxxlsumupprice; ifinputbasket_5xl.val0 var actualpriceparseFloattotal.text; var basepriceparseFloatbaseprice.text; ifsizepricexxxl0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizepricexxxl; else var calculatebasepricediffparseFloatparseFloatsizepricexxxl-parseFloatbaseprice; xxxlsumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; price5xlparseFloatparseFloatib5xlparseFloatxxxlsumupprice; ifinputbasket_4xl.val0 var actualpriceparseFloattotal.text; var basepriceparseFloatbaseprice.text; ifsizepricexxxl0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizepricexxxl; else var calculatebasepricediffparseFloatparseFloatsizepricexxxl-parseFloatbaseprice; xxxlsumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; price4xlparseFloatparseFloatib4xlparseFloatxxxlsumupprice; ifinputbasket_xs.val0 var actualpriceparseFloattotal.text; var basepriceparseFloatbaseprice.text; ifsizepricexs0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizepricexs; else var calculatebasepricediffparseFloatparseFloatsizepricexs-parseFloatbaseprice; exssumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; xspriceparseFloatparseFloatibxsparseFloatexssumupprice; ifinputbasket_0s.val0 var actualpriceparseFloattotal.text; var basepriceparseFloatbaseprice.text; ifsizeprice0s0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizeprice0s; else var calculatebasepricediffparseFloatparseFloatsizeprice0s-parseFloatbaseprice; ossumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; price0sparseFloatparseFloatib0sparseFloatossumupprice; ifinputbasket_6m.val0 var actualpriceparseFloattotal.text; var basepriceparseFloatbaseprice.text; ifsizeprice6m0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizeprice6m; else var calculatebasepricediffparseFloatparseFloatsizeprice6m-parseFloatbaseprice; sixmsumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; price6mparseFloatparseFloatib6mparseFloatsixmsumupprice; ifinputbasket_12m.val0 var actualpriceparseFloattotal.text; var basepriceparseFloatbaseprice.text; ifsizeprice12m0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizeprice12m; else var calculatebasepricediffparseFloatparseFloatsizeprice12m-parseFloatbaseprice; tmsumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; price12mparseFloatparseFloatib12mparseFloattmsumupprice; ifinputbasket_18m.val0 var actualpriceparseFloattotal.text; var basepriceparseFloatbaseprice.text; ifsizeprice18m0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizeprice18m; else var calculatebasepricediffparseFloatparseFloatsizeprice18m-parseFloatbaseprice; emsumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; price18mparseFloatparseFloatib18mparseFloatemsumupprice; ifinputbasket_24m.val0 var actualpriceparseFloattotal.text; var basepriceparseFloatbaseprice.text; ifsizeprice24m0 var calculatebasepricediffparseFloatparseFloatbaseprice-parseFloatsizeprice24m; else var calculatebasepricediffparseFloatparseFloatsizeprice24m-parseFloatbaseprice; tfmsumuppriceparseFloatparseFloattotal.textparseFloatcalculatebasepricediff; price24mparseFloatparseFloatib24mparseFloattfmsumupprice; salepriceparseFloatspriceparseFloatmpriceparseFloatlpriceparseFloatxlpriceparseFloatxxlpriceparseFloatprice3xlparseFloatprice5xlparseFloatprice4xlparseFloatxspriceparseFloatprice0sparseFloatprice6mparseFloatprice12mparseFloatprice18mparseFloatprice24m; function defaultartproductchangeid,cid,type .ajax type:GET, url: data:id: id,cid:cid, success:functiondata console.logsuccess; changeproductpropertiesdata,0,type; artcreation529; console.logdata; , error: functiondata console.logerror; console.logdata; ; function defaultproductchangeid,type .ajax type:GET, url: data:id: id, success:functiondata console.logsuccess; changeproductpropertiesdata,0,type; artcreation529; console.logdata; , error: functiondata console.logerror; console.logdata; ; function defaultproductinfoid .ajax type:GET, url: data:id: id, success:functiondata var dataJSON.parsedata; ifdata.productimage modal_info_img.attrsrc,; else modal_info_img.attrsrc, ifdata.chartimage modal_info_chart.attrsrc,; else modal_info_chart.attrsrc,data.chartimage; ifdata.measurement modal_info_measurement.attrsrc,; else modal_info_measurement.attrsrc,data.measurement; modal_info_title.textdata.productname; modal_info_desc.textdata.productdesc; ifdata.productgender.trim! modal_info_gender.html 