• Resolved Arian

    (@ideagomedia)


    Hi. I’ve been struggling with this for months. I want to create a dropdown so the clients of several of my websites have to pre-select their countries and cities as they do in https://alawao.com

    Base on that selection I have to hide the products that are not available in their cities

    I’ve found really good plugins that allow me to:

    • Hide products from countries.
    • Create Countries OR cities dropdown(NOT both)
    • Restrict products from categories

    I’ve also tried PHP customizations.

    I always fail to achieve:

    Client pick a country > States of that country shows > Client pick state > Products that are not in that state hide > The address of the client change to the one they selected

    I am open to any suggestion either a plugin or an article or post.

    Thanks in advance and I hope something else use this thread.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi there @ideagomedia ??

    Thank you for contacting Woo support!

    I’ve been struggling with this for months. I want to create a dropdown so the clients of several of my websites have to pre-select their countries and cities as they do in https://alawao.com

    Could you elaborate further on the brief for this, please? Why is the city selection needed? Due to shipping limitations, for example, or otherwise?

    From what I gather, you are referring to the Seleccione su Destino pop-up, on https://alawao.com, that runs a custom script as it appears. Correct? There is a country selector only, from what I can tell.

    Thread Starter Arian

    (@ideagomedia)

    Hi Pepé. Thanks for replying.

    Actually, city selection is not necessary only Country and State are needed. If you check the link I shared alawao.com they show you a Country selector and once you choose a country and a currency a State dropdown appears.

    Shaw

    (@shawplesk20)

    OMG i just created a profile to reply this thread, i can not believe there is not a single plugin out there to achieve this. Please help! I have the same issue!

    Thread Starter Arian

    (@ideagomedia)

    @shawplesk20 any thoughts?

    Thread Starter Arian

    (@ideagomedia)

    Anything please?

    Thread Starter Arian

    (@ideagomedia)

    Should I create a new topic? it seems like nobody is getting this info

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @ideagomedia

    From what you’ve described, it seems like you need a solution that allows customers to select their country and state, and then only shows them products available in their selected location.

    While there may not be a single plugin that does exactly this, you can achieve it by combining a few different plugins and customizations.

    First, you need to add a custom function that creates a dropdown for country selection before accessing your shop. Or you could use a plugin like the Country Based Website Switcher plugin.

    Afterward, you could use the Country Restrictions for WooCommerce plugin to hide products based on the selected location. This plugin allows you to restrict products by country, and with some customization, you could extend it to restrict by state as well.

    Finally, you could use a plugin like WooCommerce – Country Based Payments, which allows you to set up different payment gateways for different countries.

    Please note that this is a bit of a complicated topic that would need some customization to address. I recommend asking development questions on the #developers or #community channel of the WooCommerce Community Slack. Many of our developers and Woo Experts hang out there and will be able to offer insights into your question. You could also seek help from the following:

    I hope this provides some clarity on the matter. If you have any other questions or need further assistance, please don’t hesitate to ask.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Country + State DropDown’ is closed to new replies.