• Resolved istria

    (@istria)


    Im using two shipping zones and different methods in each zone. When i add products to the cart and then go to cart it selects a shipping zone automatically AND shows a text Shipping to “KE30” together with a pulldown to change the address. Im shipping in Kenya and only to two counties so with a snippet i have limited that pulloown to show the two relevant counties only. And in each of my two shipping zones i have selected one of two counties. I would like one of the two: Either for the Text Shipping to To change the text to Selected County AND the county NAME instead of id to show (It shows the correct text when i manually select, ie KE30 which is the default equals to county Nairobi) so if i set in address the county to Nairobi it shows that text. ALternatively i would like NO default selection so that user will have to open the pulldown and actively choose one county before the cost is calculated. Any help?
    Screenshots:
    card without any adress selection on default:

    View post on imgur.com


    Card after manual selection of Nairobi:

    View post on imgur.com

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support abwaita a11n

    (@abwaita)

    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?

    Plugin Support abwaita a11n

    (@abwaita)

    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 …

    Plugin Support abwaita a11n

    (@abwaita)

    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!

    Plugin Support abwaita a11n

    (@abwaita)

    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!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Issue with Shipping Zone default on card page’ is closed to new replies.