• 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

    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.

    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 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Raif D. a11n

    (@rdeari)

    Hi @ideagomedia!

    That’s a cool idea however, I believe you would need to custom-code a solution for this, thus I will leave this open for a while to see if there is someone who can help with that.

    If however, you want to avoid that here is an alternative solution! How about setting up different stores for different countries? You can do that on a network installation and then use Country Based Website Switcher or similar to show the pop-up and redirect customers to the correct site.

    Would something like that work for you?

    Thank you!

    Thread Starter Arian

    (@ideagomedia)

    Hi @rdeari thanks for replying my inquiry.

    The solution you described is interesting and could work, I only have two questions about it.

    1- It is possible to use the same products an orders between stores?

    2- Do the plugin includes a State selector once you are in the right store?

    Thanks in advance!

    Plugin Support Raif D. a11n

    (@rdeari)

    Hi @ideagomedia!

    It is possible to use the same products an orders between stores?

    Yes, it is possible to share orders and products between sites in a WooCommerce WordPress multisite installation. WooCommerce Multisite allows you to manage multiple WooCommerce stores within a single WordPress installation. By enabling the Network mode, you can share products, orders, and customer data across all sites in the network. This enables centralized management and seamless synchronization of orders and products between sites.

    Do the plugin includes a State selector once you are in the right store?

    The plugin I shared will only have a country selector and redirect the customers to the correct country. Would you mind letting me know why is a state selector needed too?

    Thank you!

    Thread Starter Arian

    (@ideagomedia)

    @rdeari Thanks for replying, you are giving light in this topic I’ve been struggling it for a long now

    Would you mind letting me know why is a state selector needed too?

    The store handles local business that can only deliver their products to the states they are. So if you want to buy products in certain state you have only the products available in your state.

    Plugin Support Raif D. a11n

    (@rdeari)

    Hi @ideagomedia!

    The store handles local business that can only deliver their products to the states they are. So if you want to buy products in certain state you have only the products available in your state.

    Thank you for the additional details. To do that you’d have to custom-code a solution.

    Otherwise, you can do what I suggested above and use that plugin to redirect customers to the correct country, after that, just for the US market you can disable the gateway or shipping options using Conditional Shipping and Payments – that will not hide the products but it will make it impossible to purchase specific products/categories from specific states.

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