function nzshpcrt_checkout($content = '') { $nzshpcrt = new wp_shopping_cart(); $output = $nzshpcrt->checkout(); //exit($output) //$output = "fart"; return preg_replace("/\\[checkout\\]/", $output, $content); }
function nzshpcrt_editvariations() { $nzshpcrt = new wp_shopping_cart(); $nzshpcrt->editvariations(); //$GLOBALS['nzshpcrt_activateshpcrt'] = true; }