View Full Version : output states with foreach
dreamingdigital
09-08-06, 10:43 PM
How would I use a foreach loop to output the states to the screen?
There is not a variable available to the templates that contains an array of the states, and a module is required to add such a variable.
dreamingdigital
09-09-06, 05:23 AM
That's strange really. Oh well, can't have everything. What module do you suggest? Or would I have to get one specially made? I want to do the same with the countries. That way I can have the shipping state automatically populate the billing state with some javascript as well as the shipping country auto populate the billing country. :) I have the rest of my fields auto-populate eachother if the billing is blank. I want to get around that miva bug with the countries. I also want more control over inserting javascript into those pull down menus.
For some reason a foreach seems how it would be done. But if there is no variable then it cant.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.