• Hi

    We are shipping in only one country. Shipping costs depends on the zip code.

    Is it possible to customize shipping-calculator so that it doesn’t ask for country but instead the country is pre chosen (because we ship only in one country) and the shipping-calculator form only ask’s for zip code?

    How can it be done?

    We use latest WP and Woo.

    https://www.ads-software.com/plugins/woocommerce/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Go to WooCommerce > Settings > General and pick the country you ship to: https://cld.wthms.co/oTFE/4navt5t7

    Then you can hide the country select with some CSS:

    .shipping-calculator-form #calc_shipping_country_field {
    	display: none;
    }
    Thread Starter donglejungle

    (@donglejungle)

    If I just hide the country selector, there is no pre-chosen country. Just hiding the selector dont work, country should also be pre-chosen somehow.

    I have chosen the only country we ship to from the settings. Still users have to select country from a list of one country.

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Hmm, the country was pre-chosen for me. Try also using the default customer location to “shop page address” option. It’s also in the above screenshot in my last reply.

    Thread Starter donglejungle

    (@donglejungle)

    YES! That actually works! Thank you a LOT!!

    May I ask what css you used to hide the selector?

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    May I ask what css you used to hide the selector?

    Posted it above ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Customizing shipping-calculator to not ask for country’ is closed to new replies.