2 replies [Last post]
uberuser's picture
Offline
Joined: 03/13/2008
Juice: 50
Was this information Helpful?

How would i go about in order to restrict the zones within a country.

I have a case where the merchant can only ship to one zone within a country, so I want users to be able to select only that zone (either default it) or a message if they select some other zone.

thank you.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Restricting Shipping Zones

This is one of the limitations of the existing international features... right now you have to go remove the extra zones from the DB directly. They'll be in the uc_zones table.

uberuser's picture
Offline
Joined: 03/13/2008
Juice: 50
Re: Re: Restricting Shipping Zones

thanks ryan. On the same note I have another question how do i insert cities within a zone, I think right now it is a text box, I would like to make it a drop down with my allowed list of cities. I am not an expert with mysql so could you give me a few commands that I can type to make this happen. I saw your discussion on this at http://www.ubercart.org/forum/internationalization/2319/cif_files but the actual how to was not there and I was lost with the hook_alter_form() stuff.

thank you.