function wpsc_st_demo_store() { $demo_store = wpsc_st_get_option('demo_store', 0); if ($demo_store) { $message = wpsc_st_get_option('demo_store_text', __('This is a demo store for testing purposes - no orders shall be fulfilled.', 'wpsc_st')); $output = '<p class="demo_store">' . $message . '</p>'; echo $output; } }
function wpsc_st_override_max_cart_quantity($quantity, $product_id) { $quantity = wpsc_st_get_option('maximum_cart_quantity', 10000); return $quantity; }
function wpsc_st_print_scripts() { global $wpsc_st; $output = ''; $addtocart = wpsc_st_get_option('addtocart_label', __('Add To Cart', 'wpsc')); if ($addtocart != __('Add To Cart', 'wpsc')) { $output = ' <!-- Store Toolkit: Add To Cart --> <script type="text/javascript"> var $j = jQuery.noConflict(); $j(function(){ $j(\'.wpsc_buy_button_container input.wpsc_buy_button\').each(function() { if( $j(this).attr(\'onclick\') == undefined ) { $j(this).val( \'' . $addtocart . '\' ); } }); }); </script> '; } echo $output; }