X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Other in states field (https://forum.x-cart.com/showthread.php?t=15414)

Light Speed 07-23-2005 10:45 PM

Other in states field
 
Alright I am stymied :)

How can I change the word "Other" that appears in the state value on the registration page when a user selects a country with no states?

I want to change it to - as Other looks pretty stupid on a shipping label.

I have looked in:
the languages table
change_states_js.tpl
states.tpl
register_states.tpl
register_billing_address.tpl

and my eyes are starting to cross >.< :)

Better yet is there any way to actually have it be empty when there is no state rather than - and still have a successful registration without the required field error?

Light Speed 07-28-2005 09:23 AM

Anybody?


Where is this Other? :(

wm3508 08-15-2005 10:11 AM

Login as admin. Follow the link 'Languages' in the 'Administration' box. Then select language to edit, i.e. English, etc. In the 'Select topic' box select 'Labels'. In the field next to it type Other and press button 'Go'.
You will see that variable 'lbl_other' defines 'Other'. You can either completely remove word 'Other' in the value field for this variable, so it would not appear at all in the state field for countries without states, or type something else you would like to appear instead of 'Other'. The same procedure should be done for each language in your store if it is multilingual.

Hope it helps. :wink:

Light Speed 08-15-2005 11:29 AM

Thanks for helping :)

The problem is changing the lng value does not affect what appears on the register page when a user selects a country with no states.

No matter what I still get Other. Even if I hard code what I want in the states.tpl file I still get other 8O

I went another way and in the countries table I turned off states for the countries that don't have states and now when a user selects a country with no states the states filed changes to a message that says "there are no states available for this country" and the correct value that I have in the lang table now is what is given to the customers state value :) :)

So it's working now!

wm3508 08-15-2005 02:52 PM

Sure. That would be another solution, which I was going to offer you, but it appears that you managed to solve it yourself. The reason I didn't mention turning off the states in admin panel is because you told in your post that you wanted to write something else instead of 'Other'.

Well, either way I am glad that we were able to solve at least something in X-Cart, because there are a lot of things in this shopping cart, which do not make sense.

Take care. 8)

syndicatelabs 07-07-2006 02:02 PM

Remove Other from State
 
anybody knows how to remove other. I tried editing states.tpl and languages but Other still pops up.

Please help. We need it so that customer can enter different states when selecting different countries not for it to display a message that says states does not exist

Thanks
v4.0.8


All times are GMT -8. The time now is 12:39 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.