Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New Product entry box with


ajsinopoli

Recommended Posts

This is for adding a new product. When you enter the Product name into the box next to the British flag it has a limit of only about 25 visible character but it actually lets you enter alot more. We would like to see our entire product name and not have to scroll down the line to make sure we got it all. That is why we want to widen the box.

 

Thanks,

Tony

Link to comment
Share on other sites

In admin/categories.php, look for code like

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

and change it to something like

tep_draw_input_field('products_name[' . $languages[$i]['id'] . ']', (isset($products_name[$languages[$i]['id']]) ? stripslashes($products_name[$languages[$i]['id']]) : tep_get_products_name($pInfo->products_id, $languages[$i]['id'])), 'style="width:64em"')

and see if that helps. Note that you may need to play with the number to get the effect correct. You could also use a class="product_name" and put the width in the stylesheet, which would be cleaner.

Always back up before making changes.

Link to comment
Share on other sites

In admin/categories.php, look for code like

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

and change it to something like

tep_draw_input_field('products_name[' . $languages[$i]['id'] . ']', (isset($products_name[$languages[$i]['id']]) ? stripslashes($products_name[$languages[$i]['id']]) : tep_get_products_name($pInfo->products_id, $languages[$i]['id'])), 'style="width:64em"')

and see if that helps. Note that you may need to play with the number to get the effect correct. You could also use a class="product_name" and put the width in the stylesheet, which would be cleaner.

Matt,

 

I have this in my file:

tep_draw_input_field('products_name[' . $languages[$i]['id'] . ']', (isset($products_name[$languages[$i]['id']]) ? stripslashes($products_name[$languages[$i]['id']]) : tep_get_products_name($pInfo->products_id, $languages[$i]['id'])), 'size="50"'); ?></td>

 

It has been awhile since I added that code, but I seem to remember that putting in width did not work. Quite possibly because I did not use style=

As I said, it was awhile ago.

 

Tim

Link to comment
Share on other sites

Matt,

 

I have this in my file:

tep_draw_input_field('products_name[' . $languages[$i]['id'] . ']', (isset($products_name[$languages[$i]['id']]) ? stripslashes($products_name[$languages[$i]['id']]) : tep_get_products_name($pInfo->products_id, $languages[$i]['id'])), 'size="50"'); ?></td>

 

It has been awhile since I added that code, but I seem to remember that putting in width did not work. Quite possibly because I did not use style=

As I said, it was awhile ago.

 

Tim

 

 

 

Thanks everyone this worked great!!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...