Country, city and town - prestashop

I want that the form shown to the user for specifying the address contains several drop down menus for countries, cities and towns. Right now, there are drop down menus for countries and states. In my prestashop, the drop down menu for states contains the cities of the selected country.
is there any good way to do it without having to include a module with charge?
I've searched too much and I don't find a solution for this.
Thanks in advance!!

You can just add the towns in the cities dropdown (and to be managed as states). A separate dropdown for the towns will require additional programming, which mean - paid module. I doubt if such module exists (separate dropdowns for cities and towns).

Related

how can I populate state/province according to a selected specific country

how can I populate searchable state/provincedropdown according to a selected specific country. Is there any easy way without using any third party library? also state/province will be disable unless I select a country.
I tried but all I could do is a simple dropdown with country names

Posting Panels Twice (Understanding pre-init)

I have a page that dynamically builds a group of Panels based on a SQL call.
Here is an example of what I am trying to accomplish.
When the page is first loaded several Panels are dynamically built. Lets say there is one panel for each State: CA, NJ, FL, etc.
If a user clicks on one of the panels (ie. one of the states) a SQL call is made and brings back a list of cities within that state. The page then dynamically builds the panels only this time listing the cities within the state clicked. When the user clicks on of the cities it calls SQL and find all of the schools listed in that city and displays them in panels (again one school per panel).
What's Happening
When the states are loaded they display fine. Though when the user clicks a particular state the page reloads and then displays all of states and all of the cities after listing all of the states instead of just listing the cities.
The proper cities are being listed so the SQL call is working.
Solution
I know several things.
ViewState is remembering the panels previously created and loading them
or
When I step through the code it's loading both the states and then the cities.
Dynamic controls are handed during the pre-init stage of the life-cycle.
Question
How can I solve this problem? I didn't post any relevant code because there is a decent amount of it to sift though. If parts of it are needed / wanted ask and I can edit this post.
I have already searched though Microsoft's documentation and the like so please don't post links to those unless you are fairly certain they will help with the issue.

OpenERP multi company Chart of accounts selected company charts not listed

In Accounting main menu, when I click chart of accounts as admin, the criteria popup will come. I have selected Company C's fiscal period among A, B and C. But when I click open charts by default the company A's charts will be listed (Alphabetical order of companies names). I can change the company drop down and see C's charts.
But I want to open C's charts by default, since I selected C's fiscal year and periods in Criteria.
Also I want to know if the charts (P & L and Balance sheet) can be by default unfolded. If so please guide me.
You have to create a custom module to do this functionality. In the chart of account tree xml remove the toolbar="1". Now you can view the all companies in tree view instead of dropdown. Now you have to apply domain filter through your custom module to restrict companies.
Also check the account module wizard directory to view the popup python code.

How to select multiple entries in address book using ABPeoplePickerNavigationController

I need to allow the user to select multiple entries from the iPhone address book before proceeding to the next action.
Currently if I use the ABPeopleNavigationController, it only allows me to pick one entry at a time. Is there any way to allow multiple selections i.e. add a checkmark beside all the names I want to select before clicking on 'done' button
This is not possible with the standard ABPeopleNavigationController.
You'll have to use a UITableView to provide the list of people to select and enable multiple selection - basically you have to do it all yourself. It isn't that hard. Just write a custom table data source on your list of people.

Indicating a user default value - flex

This was just what I was thinking for this solution and I would like to know if there's a better approach I could take?
I'm creating a simple desktop contacts application.
Users have the ability to enter in peoples contact information. I've add a combo box containing city name. The user has the ability to add city to this list and then when entering in a new contact they are able to just select the city form the drop down.
Now I'm trying to add a default city feature so if someone is constantly adding contacts from the same city when they add a new contact the combo box would show the default city automatically. In the settings mode user can view the all cities via a datagrid.
I'm trying to figure out the best way to do this. I was think I could add a default_city field to the database when user selects a city and indicates it as the desired default city it would add the info to the database. Then i could just run a separate query to input the default city into the combo box's prompt.
I know I could indicate the default city by just adding another column to the dg but I was wondering if there's a way to indicate it as being the default with a icon, or bold text instead?
Thanks for the advice!
You'll want to use item renderers to display custom info in your data grid. There's a good tutorial here:
http://www.switchonthecode.com/tutorials/flex-using-item-renderers