I try to implement a customer form and need to implement a functionality where the customer can choose his country and his state. I now ask myself if there is way to configure which countries are used for my shop? And is there a way to save the country/state references in ucommerce? Maybe even some existing functionality?
In the uCommerce backend, you can manage the list of countries for your shop in the Settings -> Orders -> Countries list. (There is a very flexible country filtering function on both the Shipping Method, and Payment Method allowing you to restrict certain combinations).
On both the BillingAddress and ShippingAddress (on the customers order), you can set both the Country (uCommerce Entity) and a State (string).
thanks for your reply. So I have the possibility to configure the Countries in Ucommerce and Ucommerce has a state object which can be used in the addresses of the order and customer. But do I have the possibility to configure a country -> state reference in uCommerce too? I like to save all states and if the user selects his country the states belonging to this country should be selected. Is this something I can implement with uCommerce or do I have to develop it on my own?
Country - States implementation
Hi everyone,
I try to implement a customer form and need to implement a functionality where the customer can choose his country and his state. I now ask myself if there is way to configure which countries are used for my shop? And is there a way to save the country/state references in ucommerce? Maybe even some existing functionality?
Thanks for your help
Cheers,
Stefan
Hey Stefan
In the uCommerce backend, you can manage the list of countries for your shop in the Settings -> Orders -> Countries list. (There is a very flexible country filtering function on both the Shipping Method, and Payment Method allowing you to restrict certain combinations).
On both the BillingAddress and ShippingAddress (on the customers order), you can set both the Country (uCommerce Entity) and a State (string).
Hi Nickolaj,
thanks for your reply. So I have the possibility to configure the Countries in Ucommerce and Ucommerce has a state object which can be used in the addresses of the order and customer. But do I have the possibility to configure a country -> state reference in uCommerce too? I like to save all states and if the user selects his country the states belonging to this country should be selected. Is this something I can implement with uCommerce or do I have to develop it on my own?
Kind regards and thanks!
Stefan
You would have to create a custom database structur, to connect a list of states with the uCommerce Countries for that to happen.
is working on a reply...