Mark C Posted August 9, 2022 Share Posted August 9, 2022 May I know where can i found the template of Address form on Checkout? I am using Prestashop 1.7.6.4. thanks Link to comment Share on other sites More sharing options...
Ali Samie Posted August 9, 2022 Share Posted August 9, 2022 53 minutes ago, Mark C said: May I know where can i found the template of Address form on Checkout? I am using Prestashop 1.7.6.4. thanks search for address-form.tpl Link to comment Share on other sites More sharing options...
Mark C Posted August 9, 2022 Author Share Posted August 9, 2022 sorry. i think my question is wrong. specifically, how can i make the city field a dropdown? and adding a zone field. thanks Link to comment Share on other sites More sharing options...
Ali Samie Posted August 9, 2022 Share Posted August 9, 2022 20 minutes ago, Mark C said: sorry. i think my question is wrong. specifically, how can i make the city field a dropdown? and adding a zone field. thanks You can not do it in BO because there is no table for city in prestashop by default. You have to add the functionality your self or use a module for that. If you want to add a city table just take a look at the country table and forms. It is a new object model that has id_country and id_state where it blongs to. And you need to modify some other files both in BO and FO to get to this. Link to comment Share on other sites More sharing options...
Mark C Posted August 9, 2022 Author Share Posted August 9, 2022 10 minutes ago, stifler97 said: You can not do it in BO because there is no table for city in prestashop by default. You have to add the functionality your self or use a module for that. If you want to add a city table just take a look at the country table and forms. It is a new object model that has id_country and id_state where it blongs to. And you need to modify some other files both in BO and FO to get to this. sorry . i mean states. i need the states field to be a dropdown Link to comment Share on other sites More sharing options...
Ali Samie Posted August 9, 2022 Share Posted August 9, 2022 States are presented in a drop down by default Link to comment Share on other sites More sharing options...
Ali Samie Posted August 9, 2022 Share Posted August 9, 2022 If you do not see any states to choose from in your address form for a desired country, then you might not have defined any states for that country. Check BO and the states config list, look for those states and verify their country Link to comment Share on other sites More sharing options...
Mark C Posted August 9, 2022 Author Share Posted August 9, 2022 (edited) 59 minutes ago, stifler97 said: If you do not see any states to choose from in your address form for a desired country, then you might not have defined any states for that country. Check BO and the states config list, look for those states and verify their country i saw it, and done on configuration. But it appears duplicate on dropdown because there are multiple zones on every state. Edited August 9, 2022 by Mark C (see edit history) Link to comment Share on other sites More sharing options...
Ali Samie Posted August 9, 2022 Share Posted August 9, 2022 24 minutes ago, Mark C said: i saw it, and done on configuration. But it appears duplicate on dropdown because there are multiple zones on every state. So there is some thing wrong logically. Its obvious that each state must belong to one and only one zone. Duplication does not make sense. Link to comment Share on other sites More sharing options...
Mark C Posted August 9, 2022 Author Share Posted August 9, 2022 28 minutes ago, stifler97 said: So there is some thing wrong logically. Its obvious that each state must belong to one and only one zone. Duplication does not make sense. yes. my client mistakenly interchange the name and zone when they encode it. Link to comment Share on other sites More sharing options...
Mark C Posted August 9, 2022 Author Share Posted August 9, 2022 how about zones? is it possible to make it also a dropdown? Link to comment Share on other sites More sharing options...
alexis_gyf Posted August 25, 2022 Share Posted August 25, 2022 On 8/9/2022 at 2:00 PM, Mark C said: how about zones? is it possible to make it also a dropdown? Same here. Does anyone have a solution? Link to comment Share on other sites More sharing options...
Ali Samie Posted August 25, 2022 Share Posted August 25, 2022 (edited) On 8/9/2022 at 7:00 AM, Mark C said: how about zones? is it possible to make it also a dropdown? I have not seen such a thing in any shop yet. I do not understand the business need behind this drop down. So that might be the reason why there is no such option. Anyway, you can check this in BO for any country you wish to sell products and modify their address form. This is all you have by default and no more is provided as this must work in a general purpose. You need to ask a developer to add custom functionalities if you are in a need for any. Edited August 25, 2022 by stifler97 (see edit history) Link to comment Share on other sites More sharing options...
alexis_gyf Posted August 25, 2022 Share Posted August 25, 2022 18 minutes ago, stifler97 said: I have not seen such a thing in any shop yet. I do not understand the business need behind this drop down. So that might be the reason why there is no such option. Anyway, you can check this in BO for any country you wish to sell products and modify their address form. This is all you have by default and no more is provided as this must work in a general purpose. You need to ask a developer to add custom functionalities if you are in a need for any. Thanks for your reply. The reason that i want the zones dropdown is that i create custom states for My Country. Now these states are on the same list with all others states. So i want these custom states to be filtering if i choose one specific zone. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now