Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing 'State' field from Create account page


msaunders

Recommended Posts

Posted

HI

 

Does anyone know how I can remove the 'State' text box from the create account page nuder the address entries. I only want to sell in one location, so I only want one state listed there.

 

Thanks

martin

Posted

There is a toggle for this in catalog/includes/application_top.php at about line 140 or so:

 

change it to

define('ACCOUNT_STATE', 'false');

 

Set this way, the system will use the state you have set as the local zone in Configuration -> My Store -> Zone.

Posted

Hmm, That didnt seem to change anything Fritzz. nothing at all . The text box is still there for state??

 

any other clues ?

thanks

martin

Posted

I just tried it my site, changed the define of ACCOUNT_STATE to false in catalog/includes/application_top.php, then went to the create account screen and it no longer displayed a State/Province entry item. (It did not, however, display my zone state as I believe the code is supposed to. But the state field was definitely gone.)

 

Are you sure you changed the file on your server? Did you use a text editor locally then upload, or edit online with the file manager tool?

Posted

Hi

 

Yes definately changed it locally and then uploaded it . I tried the create account page and it was still looking for a State entry. I will have another look later on today.

Thanks

martin

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...