wpsc_shipping_country_list

Located in: Located in: checkout.class.php
Version Introduced: 3.8

Description: This template tag is used to display the shipping country / region drop down lists used to calculate the users shipping, you would use this on the checkout page as it generates all the correct ID’s and classes for the drop down box that WP-e-Commerce requires to calculate the shipping.

Note: You must wrap this drop down list in a form tag for the shipping form to work correctly, it would be advised to keep the form exactly the same as the default one in WP-e-Commerce to avoid shipping errors.

Code Example:
[php]
<tr class=’wpsc_change_country’>
<td colspan=’5′>
<form name=’change_country’ id=’change_country’ action=” method=’post’>
<?php echo wpsc_shipping_country_list();?>
<input type=’hidden’ name=’wpsc_update_location’ value=’true’ />
<input type=’submit’ name=’wpsc_submit_zipcode’ value=’Calculate’ />
</form>
</td>
</tr>

[/php]