wpsc_also_bought

Displays products that were bought along with the product defined by $product_id.

Description

wpsc_also_bought( $product_id ); 

This functionality will be deprecated and be provided by a plugin in a future version.

Parameters (1)

0. $product_id
The product id.

Usage

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

Defined (1)

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

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