How to Display Zones DropDown in Checkout

Phoca Cart - complex e-commerce extension
User avatar
David-Spring
Phoca Member
Phoca Member
Posts: 33
Joined: 15 Dec 2020, 11:21

Re: How to Display Zones DropDown in Checkout

Post by David-Spring »

Thank you. That would really help all of us!

If I figure out something between now and then, I will also post it. I plan on taking a closer look at this in January.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to Display Zones DropDown in Checkout

Post by Jan »

One possible solution for adding own list could be "predefined values" feature. Of course it has limits.

I have added this feature to 3.5.5 Beta, so it can be tested there

See:
Image

You will be able to define own simple list of simple values plus first option text title.

In frontend, this list will be displayed and user can select the value. Such value will be stored:

Image

Limits
- there is no connection to other form fields (like there is for country and region - dynamically generated regions based on country)
- the selected and stored values are not more tied to the predefined values list (the values are just stored as static values, so they don't change if this list will be changed) - It is not stored reference to this value but value itself (based on type)
- all values set in predefined values form field must match the type selected in Type form field.
- the list cannot be used as a rule in payment or shipping methods, etc.

Jan
If you find Phoca extensions useful, please support the project
jmiller_meaewellness
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 20 Dec 2020, 06:39

Re: How to Display Zones DropDown in Checkout

Post by jmiller_meaewellness »

For my case use this is perfect...we are only shipping in one state where the counties definition is needed, and I can add an option "Outside of State" if we ever need to setup shipping for other categories to other states.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to Display Zones DropDown in Checkout

Post by Jan »

Another way could be even use "country" as state, "region" as county and the country which e.g. can be only one add to this select box. :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply