Shipping not available until town and postcode completed
-
Hi,
I recently noticed that the shipping costs arent showing until the customers completes the town and postcode which is not going to work for me really, as all my shipping rates are based on country only.So I did some research and it seems there was a fix, and it came in the form of updating class-wc-shipping.php until a patch was made. It seems in an update that has been fixed, as the code below seems to reflect what Im needing.
public function is_package_shippable( $package ) { // Packages are shippable until proven otherwise. if ( empty( $package['destination']['country'] ) ) { return true; } $allowed = array_keys( WC()->countries->get_shipping_countries() ); return in_array( $package['destination']['country'], $allowed, true ); }But Im still having the issue. The issue is I want the shipping to show on selection of the country only, not only after they select a town and postcode.
The page I need help with: [log in to see the link]
The topic ‘Shipping not available until town and postcode completed’ is closed to new replies.