The latest versions of WP e-Commerce no longer default the shipping country when a customer first arrives at checkout. If you want to reproduce this behaviour you can still do so by adding a small snippet of code to your theme’s functions.php file, or by using a functionality plugin. Here’s a snippet that defaults the country to the store base country.

function lw_wpsc_get_visitor_meta( $value, $key ) {
    if ( $key == 'shippingcountry' && empty( $value ) ) {
        $value = get_option( 'base_country', TRUE);
    return $value;
add_filter( 'wpsc_get_visitor_meta', 'lw_wpsc_get_visitor_meta', 10, 2 );

This entry was posted in .
Bookmark the permalink.