Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding options to Maximum Values section???


Richard Lee

Recommended Posts

Posted

Hi guys and girls,

 

in the admin panel I can set minimum values for the user account fields, but there doesn't seem to be anywhere to set maximum values! Is this a limitation in osCommerce? If so, how can I edit it so that I can setup maximum values for the account form inputs.

 

For example, presently I have postcode Minimum Value set to 4, BUT I would also like to set a Maximum Value of 4, since Australian postcodes only consist of 4 digits.

 

Thanks in advance!

Posted

You need to add the "maxlength" html attribute in the parameters list of the control involved, for example:

 

echo tep_draw_password_field('password', '', 'size="20" maxlength="20"')

Posted
You need to add the "maxlength" html attribute in the parameters list of the control involved, for example:

 

echo tep_draw_password_field('password', '', 'size="20" maxlength="20"')

 

Thanks for replying..

 

Ok, so the only option is to hardcode it ? There's no way to edit the Maximum Values page in the admin page then so it appears as an option??

Posted

There's always a way...

 

I don't know what page you are referring to, but for something as trivial as this, I don't really see the need to clutter the Admin up even more.

 

Remember - every admin value = another row in the database = your site running a bit slower. :rolleyes:

Archived

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

×
×
  • Create New...