wpsc_add_to_cart

Add_to_cart function, used through ajax and in normal page loading.

Description

wpsc_add_to_cart(); 

No parameters, returns nothing


Usage

  1. if ( !function_exists( 'wpsc_add_to_cart' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'wp-ecommerce/wpsc-components/theme-engine-v1/helpers/ajax.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wpsc_add_to_cart(); 
  7.  

Defined (1)

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

/wpsc-components/theme-engine-v1/helpers/ajax.php