Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Increasing text field?


OmarC

Recommended Posts

Posted

I can't seem to find an answer to this question:

 

How can I increase the size of the text field when a customer goes to create an account?

 

It's apparently set to a length of 32 but I'd like to make it 50.

 

Thanks for your help....

Posted
Does anyone know how to make the textfields longer when you signup for an account?

 

If you want to increase the text field then access your database via phpmyadmin and find the field you want to change, click on edit and make your changes.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Posted

I've actually tried that but am not sure if I am changing the right things. I've tried going into address_book, customers, customer_info and changed them all to a length of 255 but am not seeing any changes when I go to the "create account page".

 

Which one should I change via phpmyadmin?

Posted
I've actually tried that but am not sure if I am changing the right things.  I've tried going into address_book, customers, customer_info and changed them all to a length of 255 but am not seeing any changes when I go to the "create account page".

 

Which one should I change via phpmyadmin?

 

Which fields do you want to be longer? You need to change each one seperatly. If you want to allow for a longer first name then you need to change the customers_firstname field.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Posted

I'd like to make them all a bit longer...

 

Here is what I have set in my customers table:

 

customers_id int(11)

purchased_without_account tinyint(1) -- I installed PWA v0.82

customers_firstname varchar(60)

customers_lastname varchar(60)

customers_email_address varchar(60)

.

.

.

.

 

I've basically set every varchar to a length of 60 (as opposed to the original 32) but am not seeing any changes in the length of the text fields when I try to create an account.

 

Do you think this is something I need to hardcode or am I just missing something? Am I changing the info in the wrong table?

Posted

I basically want to make the boxes where people enter their info wider. I just can't seem to get those darned text fields longer.

Posted
I basically want to make the boxes where people enter their info wider.  I just can't seem to get those darned text fields longer.

 

Are you wanting to change the amount of charcaters that a customer can type in or how wide the boxes on the page are? These are two different things.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Posted

I am wanting to do the later...

 

make the boxes on the page wider.

 

How do you do that?

  • 1 month later...
Posted
I am wanting to do the later...

 

make the boxes on the page wider.

 

How do you do that?

 

 

Yea i would also like to make the textboxes wider... How??? Any idea?

Posted

Works like a charm!

--------------------------------------

If all you are trying to do is change the width of the input fields, find this code in includes/functions/html_output.php

 

// Output a form input field 
function tep_draw_input_field($name, $value = '', $parameters = '', $type = 'text', $reinsert_value = true) {

 

The next line is:

$field = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"';

 

Change it to:

$field = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '" size="XX"';

 

where XX is the desired width.

 

Jack

Archived

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

×
×
  • Create New...