Restricting Shipping Zones

Posts: 23
Joined: 03/13/2008

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.

Posts: 4700
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

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.

Posts: 23
Joined: 03/13/2008

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.