![]() |
Address Fields
Hi,
I've searched but can't find anyone else with the same issue. When customers go to register on our store, they have to fill in the following details: Address * City * State * Pull Down Menu Country * Pull Down Menu Post Code * I've edited Zip Code to read Post Code. In New Zealand we use Suburbs on the postal addresses, and it's not practical to add every single suburb in New Zealand to the menu. Is there some way I can make the State field free format, as opposed to a pull down menu? Thanks in advance |
just delete all the states that you have and it will become a text box
|
i am trying to disable the state and the country from showing up in the
Registration form, so i wrote the fallowing if Code:
{if $store_language ne "FL"} but when i try to register the display is ok(no state and no country) but the submit give me an error that i have mistakes in my form. any idea ? and another thing, why "register.php" won't recognize the variable "$store_language" |
in include/register.php find and comment out this code:
(!empty($states) && empty($b_state)) || empty($b_country) || Original $fillerror = (empty($uname) || !empty($error) || empty($passwd1) || empty($passwd2) || ($passwd1 != $passwd2) || empty($firstname) || empty($lastname) || empty($b_address) || empty($b_city) || (!empty($states) && empty($b_state)) || empty($b_country) || empty($b_zipcode) || empty($phone) || empty($email)); Modified $fillerror = (empty($uname) || !empty($error) || empty($passwd1) || empty($passwd2) || ($passwd1 != $passwd2) || empty($firstname) || empty($lastname) || empty($b_address) || empty($b_city) ||/* (!empty($states) && empty($b_state)) || empty($b_country) || */empty($b_zipcode) || empty($phone) || empty($email)); This code validates if you've selected or not state and/or country in your register form. So if you disable anything in register.tpl file you also have to disable validation checks in register.php because if you disable the state and the country from showing up in the Registration form, for register.php it means you didn't select anything and it won't let you complete registration process. :idea: try this out, it should work |
Quote:
Hrm, I tried that but then got to the point of shipping and my customers would then be able to select all shipping options, and the prices vary based on whether they're in a given city, we don't want users picking the cheapest option, paying then getting grumpy when we tell them that they can't do that. Is there an easier way to get two address fields? I tried a tutorial I found in another forum here but it seems too patchy. |
All times are GMT -8. The time now is 08:47 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.