{"id":39,"date":"2023-02-09T19:11:42","date_gmt":"2023-02-09T19:11:42","guid":{"rendered":"https:\/\/decorativepaintersacademy.com\/certification\/?page_id=39"},"modified":"2023-02-28T00:15:54","modified_gmt":"2023-02-28T00:15:54","slug":"cart","status":"publish","type":"page","link":"https:\/\/decorativepaintersacademy.com\/certification\/cart\/","title":{"rendered":"View Your Cart"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"39\" class=\"elementor elementor-39\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c8aac51 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c8aac51\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1d4cba0\" data-id=\"1d4cba0\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-eca0a90 elementor-widget elementor-widget-shortcode\" data-id=\"eca0a90\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\t<script>\n<!--\n\/\/ This comment stops wordpress escaping the ampersands\n\/* <![CDATA[ *\/\nvar ectinwhichlist='';\nvar currqs='';\nfunction checkchecked(){\n\tischecked=false\n\tvar inputs=document.getElementsByTagName('input');\n\tfor(var i=0; i < inputs.length; i++)\n\t\tif(inputs[i].type=='checkbox'){\n\t\t\tif(inputs[i].checked&&inputs[i].name.substr(0,5)=='delet') ischecked=true;\n\t\t}\n\tif(! ischecked) alert(\"You haven't selected any items.\");\n\treturn(ischecked);\n}\nfunction dodelete(cid,inlist){\nectinwhichlist=inlist;\nvar ECinput=document.createElement(\"input\");\nECinput.setAttribute(\"type\", \"hidden\");\nECinput.setAttribute(\"name\", \"delet\"+cid);\nECinput.setAttribute(\"value\", \"ON\");\ndocument.forms.checkoutform.appendChild(ECinput);\nreturn doupdate(document.forms.checkoutform);\n}\nfunction setestimatorwarn(tobjt,showalert,tmsg){\n\tvar tobj=document.getElementById(tobjt);\n\tif(tobj)ectaddclass(tobj,'ectwarning');\n\tif(showalert)alert(tmsg);\n\treturn false;\n}\nfunction revealestimatorgo(){\nif(document.getElementById('state')&&(document.getElementById('state').disabled||document.getElementById('state').selectedIndex!=0))ectremoveclass(document.getElementById('state'),'ectwarning');\nif(document.getElementById('zip'))ectremoveclass(document.getElementById('zip'),'ectwarning');\nif(document.getElementById('country'))ectremoveclass(document.getElementById('country'),'ectwarning');\ndocument.getElementById('updateestimator').style.display='';\n}\nfunction updateestimator(inlist,showalert){\nectinwhichlist=inlist;\n\treturn doupdate(document.forms.checkoutform);\n}\nfunction doupdate(tform){\n\ttform.mode.value='update';\n\ttform.action='cart\/'+(currqs+(ectinwhichlist!=''?'&lid='+ectinwhichlist+'#oc':'')).replace('&','?');\n\ttform.onsubmit='';\n\ttform.submit();\n\treturn false;\n}\nfunction dosaveitem(lid){\n\tvar ECinput=document.createElement(\"input\");\n\tECinput.setAttribute(\"type\", \"hidden\");\n\tECinput.setAttribute(\"name\", \"delet\"+whichcartid);\n\tECinput.setAttribute(\"value\", \"ON\");\n\tdocument.forms.checkoutform.appendChild(ECinput);\n\tdocument.forms.checkoutform.mode.value=lid=='x'?'movetocart':'savecart';\n\tdocument.forms.checkoutform.listid.value=lid;\n\tdocument.forms.checkoutform.action='cart\/'+(currqs+(ectById('savelistremain')&&ectById('savelistremain').checked?'&rem=true':'')+(ectinwhichlist!=''?'&lid='+ectinwhichlist+'#oc':'')).replace('&','?');\n\tdocument.forms.checkoutform.onsubmit='';\n\tdocument.forms.checkoutform.submit();\n\treturn(false);\n}\nvar cartoversldiv,whichcartid;\nfunction cartdispsavelist(clid,inlist,el){\n\tectinwhichlist=inlist;\n\twhichcartid=clid;\n\tcartoversldiv=false;\n\tvar sld=document.getElementById('savecartlist');\n\tvar parentdiv=el.parentNode;\n\tparentdiv.insertBefore(sld,parentdiv.firstChild);\n\tfor(var sldindex=0;sldindex<sld.childNodes.length;sldindex++){\n\t\tif(sld.childNodes[sldindex].id=='savecartlist'+inlist)\n\t\t\tsld.childNodes[sldindex].style.display='none';\n\t\telse if(sld.childNodes[sldindex].style)\n\t\t\tsld.childNodes[sldindex].style.display='';\n\t}\n\tsld.style.visibility=\"visible\";\n\tsldivtimeout=setTimeout('cartchecksldiv()',2000);\n\treturn(false);\n}\nfunction cartchecksldiv(){\n\tvar sld=document.getElementById('savecartlist');\n\tif(! cartoversldiv)\n\t\tsld.style.visibility='hidden';\n}\nfunction selaltrate(id){\n\tdocument.forms.checkoutform.altrates.value=id;\n\tdoupdate(document.forms.checkoutform);\n}\nfunction applycertcallback(){\n\tif(ajaxobj.readyState==4){\n\t\tvar retvals=ajaxobj.responseText.split('&');\n\t\talert(retvals[1].replace(\/<\\\/?[^>]+(>|$)\/g, \"\"));\n\t\tif(retvals[0]=='success'){\n\t\t\tdocument.getElementById(\"cpncode\").value='';\n\t\t\tdocument.location.reload();\n\t\t}\n\t}\n}\nfunction applycert(){\n\tvar cpncode=document.getElementById(\"cpncode\").value;\n\tif(cpncode!=\"\"){\n\t\tajaxobj=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject(\"MSXML2.XMLHTTP\");\n\t\tajaxobj.onreadystatechange=applycertcallback;\n\t\tajaxobj.open(\"GET\", \"vsadmin\/ajaxservice.php?action=applycert&stg1=1&cpncode=\"+cpncode, true);\n\t\tajaxobj.send(null);\n\t}\n}\nfunction removecert(cpncode){\n\tif(cpncode!=''){\n\t\tajaxobj=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject(\"MSXML2.XMLHTTP\");\n\t\tajaxobj.onreadystatechange=applycertcallback;\n\t\tajaxobj.open(\"GET\", \"vsadmin\/ajaxservice.php?action=applycert&stg1=1&act=delete&cpncode=\"+cpncode, true);\n\t\tajaxobj.send(null);\n\t}\n\treturn false;\n}\nfunction actionupdate(cid,tform,listid){\nectinwhichlist=listid;\ndocument.getElementById('quant'+cid).name=document.getElementById('quant'+cid).id;\ndoupdate(tform);\n}\nfunction acceptstock(){\n\tdocument.forms.checkoutform.mode.value='acceptstock';\n\tdocument.forms.checkoutform.submit();\n}\nfunction showupdatebutton(cid,cartlineunique,listid){\ndocument.getElementById('cartlinetot'+cartlineunique).innerHTML='<input type=\"button\" class=\"ectbutton cartlineupdate\" value=\"Update\" onclick=\"actionupdate('+cid+',this.form,\\''+listid+'\\')\" \/>';\n}\n\/* ]]> *\/\n-->\n<\/script>\n<div class=\"cart1details cartlists\"><div class=\"cartlistdiv cartlistshop\"><div class=\"ectdivhead cartlistname cartlistcart\" id=\"oc\" style=\"cursor:pointer\" onclick=\"document.getElementById('cartlistid0').style.display==''?document.getElementById('cartlistimgid0').src='images\/arrow-down.png':document.getElementById('cartlistimgid0').src='images\/arrow-up.png';document.getElementById('cartlistid0').style.display=(document.getElementById('cartlistid0').style.display==''?'none':'')\"><div class=\"checkoutstep\">&nbsp;<\/div><div class=\"cartname\">Shopping Cart (0)<\/div><div class=\"cartlistimg\"><img decoding=\"async\" src=\"images\/arrow-up.png\" id=\"cartlistimgid0\" alt=\"Show \/ Hide Cart\" \/><\/div><\/div>\r\n<div class=\"cartlistcontents\" id=\"cartlistid0\"><form method=\"post\" name=\"checkoutform\" onkeydown=\"return preventreturn(this,event)\" action=\"https:\/\/decorativepaintersacademy.com\/certification\/cart\/\"><input type=\"hidden\" name=\"mode\" value=\"checkout\">\n<input type=\"hidden\" name=\"sessionid\" value=\"8p3021mftncshl11bcgs2thqnl\">\n<input type=\"hidden\" name=\"PARTNER\" value=\"\">\n<input type=\"hidden\" name=\"cart\" value=\"\">\n<input type=\"hidden\" name=\"listid\" value=\"\">\n<div class=\"cartcontentsdiv\"><div class=\"emptycart\"><div class=\"sorrycartempty\">There are currently no items in your shopping cart.<\/div><div class=\"cartemptyclickhere\">If you would like to get started browsing our store please <a class=\"ectlink\" href=\"categories\/\"><strong>click here<\/strong><\/a><\/div><script>\n<!--\n\/\/ This comment stops wordpress escaping the ampersands\n\/* <![CDATA[ *\/\nvar ectvalue=Math.floor(Math.random()*10000 + 1);\ndocument.cookie=\"ECTTESTCART=\" + ectvalue + \"; path=\/; secure\";\nif((document.cookie+\";\").indexOf(\"ECTTESTCART=\" + ectvalue + \";\") < 0) document.write(\"Cookies seem to be currently disabled in your browser. This could mean that this shopping site will not function correctly. If you experience problems, please check that your browsers security settings are not set to too high a level and that you don't have a firewall blocking cookies or javascript.\");\n\/* ]]> *\/\n-->\n<\/script>\n<noscript><div class=\"ectwarning\">Javascript seems to be currently disabled in your browser. This could mean that this shopping site will not function correctly. If you experience problems, please check that your browsers security settings are not set to too high a level and that you don't have a firewall blocking cookies or javascript.<\/div><\/noscript>\n<div class=\"emptycartcontinue\"><button type=\"button\" class=\"ectbutton\" onclick=\"ectgonoabs('categories\/')\">Continue Shopping<\/button><\/div><\/div><\/div><\/form><\/div><\/div>\r\n<\/div><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-39","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/decorativepaintersacademy.com\/certification\/wp-json\/wp\/v2\/pages\/39","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/decorativepaintersacademy.com\/certification\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/decorativepaintersacademy.com\/certification\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/decorativepaintersacademy.com\/certification\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/decorativepaintersacademy.com\/certification\/wp-json\/wp\/v2\/comments?post=39"}],"version-history":[{"count":5,"href":"https:\/\/decorativepaintersacademy.com\/certification\/wp-json\/wp\/v2\/pages\/39\/revisions"}],"predecessor-version":[{"id":125,"href":"https:\/\/decorativepaintersacademy.com\/certification\/wp-json\/wp\/v2\/pages\/39\/revisions\/125"}],"wp:attachment":[{"href":"https:\/\/decorativepaintersacademy.com\/certification\/wp-json\/wp\/v2\/media?parent=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}