Hi @istria,
You could opt to set the Default customer location
to No location by default
at WooCommerce ā Settings ā General. This should require customers to manually select their shipping location before the shipping options/costs are shown.
Try setting that up and let us know how it goes.
Thanks.
Thread Starter
istria
(@istria)
this works but brings another issue … i had blocked the country from showing via css as we only deliver in one country. If its not set the county/City field is just a textfield not a pull down. Is there a way to preselect the country automatically so that user does not have to select it?
Thanks for getting back.
There’s an option to limit the countries you sell or ship to from WooCommerce -> Settings -> General
.
However, if you limit it to one country, the country will be auto-selected on the checkout page, not the cart page.
To make it a default on the cart page, try setting your WooCommerce country/state at WooCommerce -> Settings -> General to Kenya - Nairobi County
then changing the Default Customer Location to Shop base address.
Let us know how it goes.
Thanks.
Thread Starter
istria
(@istria)
…. that is how it was default customer location = Shop base address
that comes with the issue that many customers dont understand that they can change the adress on the card because the preselection uses the ID or shortcode of a county ie KE30 and NOT the name so its not clear to the customer … š IF that could be changed to show the name OR if the pulldown for address change could show and not only open through the arrow that would also be ok …
Hi @istria,
> the preselection uses the ID or shortcode of a county ie KE30 and NOT the name so its not clear to the customer
Normally, it should display the name, not an ID. I tried setting up the same address (Country/State) on a testing site and this is how the shipping section on the cart page is displayed with the auto-selected shipping address: https://snipboard.io/MoaNc2.jpg
Maybe you have some custom code or a plugin/theme conflict causing the ID to be displayed instead. You could try conflict testing to see if you can identify the cause (remember to comment out any custom code during the test).
*Just another suggestion, if possible, you could deactivate shipping calculations on the cart page altogether at WooCommerce ā Settings ā Shipping > Shipping Options
. This way, shipping calculations will be done on the checkout page where the buyer will enter more refined billing/shipping details that’ll be used for shipping calculations.
Hope this helps.
Thanks.
Thread Starter
istria
(@istria)
Hi, i checked on this and remembered that i used a snippet to only show the two zones relevant to me …
I removed the snippet and when putting it back in place i think I wrote the KE in capital insteat small letters 2530 vs KE30 it shows correct now – when i havent selected anything it writes Nairobi now … not sure if that was the issue, or if i accidentally corrected anything else …
$states[‘KE’] = array(
‘KE30’ => __( ‘Nairobi’, ‘woocommerce’ ),
‘KE13’ => __( ‘Kiambu’, ‘woocommerce’ ),
Thank you!
Glad to hear that it’s working now with the modifications you’ve made to your snippet – thanks for the update.
Please feel free to create a new thread if you have other questions.
Cheers!