MARGARET’S AWESOME NEW CLASS NAME
with Margaret Rode, PDQ, XXOO
Class description here. This first version is easier to implement but still takes the buyer off-site to AmeriCommerce. They DO have a way to return to the site…but would they? Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dictum metus a consectetur fringilla. Curabitur diam metus, tincidunt a orci vitae, posuere sollicitudin sapien. Praesent accumsan viverra orci ut faucibus.
Required reading: The Heart Aroused by David Whyte
CEUs are available
– – – – – – – – –
window.acOnReady = function() { AC.init({ storeDomain: "b5847.americommerce.com" });
$(".add-to-cart").click(function(e) { var $el = $(this), $form = $("input, select, textarea"), item = {};
e.preventDefault();
item.itemName = $form.filter("[name=itemname]").val(); item.itemNumber = $form.filter("[name=itemnr]").val(); item.quantity = parseInt($form.filter("[name=qty]").val()); item.price = parseFloat($form.filter("[name=price]").val()); item.itemUrl = $form.filter("[name=itemurl]").val(); item.noTax = true;
AC.cart.add(item, function(response) { alert("Item added to cart!"); });
}); };
// ==== BEGIN AC SYSTEM CODE ==== (function(a){var d,c,b;a.acReadyEvents=a.acReadyEvents||[];if(a.acOnReady){d=a.acOnReady;a.acReadyEvents.push(d);a.acOnReady=undefined}if(a.postScriptLoad){a.postScriptLoad();return}a.jqReady=false;a.acReady=false;a.loadScript=function(e,i){var g,h=a.document,f=h.getElementsByTagName("head")[0];g=h.createElement("script");g.async=true;g.src=e;if(i){g.onload=i;g.onreadystatechange=function(){if(!this.readyState||this.readyState=="loaded"||this.readyState=="complete"){i();g.onload=g.onreadystatechange=null;f.removeChild(g)}}}f.appendChild(g)};a.postScriptLoad=function(){if(!a.jqReady||!a.acReady){setTimeout(a.postScriptLoad,60);return}while(a.acReadyEvents.length>0){var e=a.acReadyEvents.pop();e()}};c=a.jQuery;if(c){a.jqReady=true}else{a.loadScript("https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js",function(){a.jqReady=true})}b=a.AC;if(b){a.acReady=true}else{a.loadScript("https://b5847.americommerce.com/store/inc/clientapi/ac-client-api.min.js",function(){a.acReady=true})}a.postScriptLoad()}(window)); // ==== END AC SYSTEM CODE ====