Removing the auto-refresh when state is changed on checkout

From ECSQuest Knowledge Bank
Jump to: navigation, search

One of the most common gripe I get with the cart is that the checkout automatically refreshes when someone changes the shipping region/state.

Below is an example of how to remove this : Go to : wp-e-commerce/wpsc-includes/checkout.class.php

Find the wpsc_shipping_region_list function.

Replace the following line:

$js = "onchange='submit_change_country();'";


// $js = "onchange='submit_change_country();'"; 

Do not make this change for the wpsc_shipping_country_list function! This is needed to fill the region list !