| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Weird States Dropdown Problem | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi All,
I'm having a strange issue with my state dropdown menu on my registration form. It shows the correct states, but then after the last state you can select two strange options.. "forEach" and "array". There's also a bunch of blank spaces after those weird options at the bottom. Here's the link: http://eternitywebdev.com/~klingers/register.php I've checked the database multiple times and definitely don't see either array or foreach in my states table. Any ideas?
__________________
v 4.1.11, v 4.2 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Quote:
Foreach is used to load your options in the first place Post the Code for the page. What's probably happening is that your list isn't ENDING and includes the ending statements as options
__________________
Moo? Quality Door & Hardware Version X-Cart 4.1.108 Add-ons X-AOM (Advanced Order Management) Ad / Banner X-cart Mod (BCSE) DSEFU Dynamic Image Mod Pre-login Shipping Calculator Power Filter Contact Us Form Shipping Carrier Mod Submit Button Send me a message, I can talk about anything. |
|||||||||
#3
|
|||||||
|
|||||||
![]() Here's my register_billing_addres.tpl file which displays the states dropdown (not sure if this is what you are asking for though.. I'm not sure what php file the states stuff is programmed into):
Code:
__________________
v 4.1.11, v 4.2 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Please include these files, I think this is where you'd be able to find the problem
main/states.tpl main/register_states.tpl
__________________
Moo? Quality Door & Hardware Version X-Cart 4.1.108 Add-ons X-AOM (Advanced Order Management) Ad / Banner X-cart Mod (BCSE) DSEFU Dynamic Image Mod Pre-login Shipping Calculator Power Filter Contact Us Form Shipping Carrier Mod Submit Button Send me a message, I can talk about anything. |
|||||||||
#5
|
|||||||
|
|||||||
![]() Here's my states.tpl:
HTML Code:
And here's my register_states.tpl: HTML Code:
I don't think I've touched either of those (although when I installed xcart I did forget to add the states table so I had to add it later to my DB.. perhaps something happened when i created it, but I definitley make the table exactly as it is in my other stores via a mysql import.) Thanks so much for your help on this.
__________________
v 4.1.11, v 4.2 |
|||||||
#6
|
|||||||||
|
|||||||||
![]() Maybe it copied over differently. It doesn't seem to be a problem in any of these files. I would play around with the foreach tags inside of your register_billing_addres.tpl and seeing how it changes your page. If anything changes you'll know what is causing the change.
If nothing changes than this is a dead end ![]()
__________________
Moo? Quality Door & Hardware Version X-Cart 4.1.108 Add-ons X-AOM (Advanced Order Management) Ad / Banner X-cart Mod (BCSE) DSEFU Dynamic Image Mod Pre-login Shipping Calculator Power Filter Contact Us Form Shipping Carrier Mod Submit Button Send me a message, I can talk about anything. |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|