_wpsc_acceptable_shipping_countries_into_checkout_page

On the checkout page create a hidden element holding the acceptable shipping countries.

Description

_wpsc_acceptable_shipping_countries_into_checkout_page(); 

This let's the wp-e-commerce javascript process any dependency rules even if the store has configured the checkout forms so that some fields are hidden. The most important of these fields are the country, region and state fields. But it's just as easy to include all of them and not worry about what various parts of WPeC, themes or plugs may be doing.


Usage

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

Defined (2)

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

/wpsc-components/theme-engine-v1/classes/checkout-localization.php  
/wpsc-includes/wpsc-checkout-localization.php