Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

box size for text input on create account page


sheepiedog

Recommended Posts

I find the input boxes (where people type their name and address) too small in length on my create an account page (create_account.php).

 

I have looked at the php file, and the style sheet and I must be missing something.

 

Where can I adjust the length of the input box ?

Link to comment
Share on other sites

You would have to hard code it, basically there are two ways to do this:

 

1) in create account change the line

 

tep_draw_input_field('firstname')

 

to

tep_draw_input_field('firstname','','size=80')

 

2) in create account change the line

 

tep_draw_input_field('firstname')

 

to

tep_draw_input_field('firstname','','class="account"')

 

and in stylesheet.css add:

 

input.account { width: 300px; }

 

Change the values 80 or 300 to your desires...

Link to comment
Share on other sites

  • 1 year later...
You would have to hard code it, basically there are two ways to do this:

 

1) in create account change the line

 

tep_draw_input_field('firstname')

 

to

tep_draw_input_field('firstname','','size=80')

 

2) in create account change the line

 

tep_draw_input_field('firstname')

 

to

tep_draw_input_field('firstname','','class="account"')

 

and in stylesheet.css add:

 

input.account { width: 300px; }

 

Change the values 80 or 300 to your desires...

 

Is there perhaps a way to change the size of all input boxes to a larger size in the stylesheet ?

Link to comment
Share on other sites

Is there perhaps a way to change the size of all input boxes to a larger size in the stylesheet ?

 

The response is in the code sheepiedog gave you.

look at the code!!!

but you mus change lot´s of stuff...

 

you have to create a imput.(class)******** in the stylesheet

input.account { width: ***px; }

Change the values *** to your desires...

and then alter

 

all the tep_draw_input_field('#####') in all oscommerce

to tep_draw_input_field('',''#####,'class="********"')

 

you should create a class for every with...

Link to comment
Share on other sites

  • 4 months later...

Thanks oschellas - hard coding worked wonderfully !

 

Change tep_draw_input_field('firstname')

to tep_draw_input_field('firstname','','size=80')

-----

I have been trying to apply your hard coding solution to enlarge the input fields to the product input page (categories.php) and also the admin/customers.php but those fields are slightly different as they have added parameters and I havent had any success.

 

Ex:

tep_draw_input_field('products_name[' . $languages[$i]['id'] . ']', (isset($products_name[$languages[$i]['id']]) ? $products_name[$languages[$i]['id']] : tep_get_products_name($pInfo->products_id, $languages[$i]['id']))); ?

 

I would like to make the input field larger for Product Name and Product Model

 

and also all fields on admin/customers.php

 

Ex:

echo tep_draw_input_field('customers_firstname', $cInfo->customers_firstname, 'maxlength="32"')

 

Can anyone advise how to hard code larger input fields on these pages with the added parameters ?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...