wpsc_allow_free_cart_checkout

Allows users to checkout with a free cart.

Description

wpsc_allow_free_cart_checkout(); 

If developers or users would rather inhibit this functionality, as it was prior to 3.9.0, they can add the following code (prior to init,, priority 2) to a theme or plugin: add_filter( wpsc_allow_free_cart_checkout , __return_false );


Usage

  1. if ( !function_exists( 'wpsc_allow_free_cart_checkout' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'wp-ecommerce/wpsc-includes/cart-template-api.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wpsc_allow_free_cart_checkout(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wpsc-includes/cart-template-api.php