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



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.


  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'; 
  5. // NOTICE! Understand what this does before running. 
  6. $result = _wpsc_acceptable_shipping_countries_into_checkout_page(); 

Defined (2)

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