Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

How can i alter the length of input field


Recommended Posts

how can i alter the length of the products name input field:


<td class="main"><?php echo tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . 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']))); ?></td>


Where do i put the 'size=80 maxlength=70'


Thank you

Link to comment
Share on other sites



When the database is created the default NAME length is 64 characters as seen below:


DROP TABLE IF EXISTS products_description;

CREATE TABLE products_description (

products_id int NOT NULL auto_increment,

language_id int NOT NULL default '1',

products_name varchar(64) NOT NULL default '',

products_description text,

products_url varchar(255) default NULL,

products_viewed int(5) default '0',

PRIMARY KEY (products_id,language_id),

KEY products_name (products_name)




Therefore, if you want the title larger you will need to edit the products_name cell from 64 to 70 (if this is what you want it to be)





Link to comment
Share on other sites

As for the box size itself, it looks like we need to go to the 3 round brackets at the end, to squeeze


,'size="80" maxlength="70"'


in between the 2nd and 3rd - being sure to include the initial comma.


$languages[$i]['id'])),'size="80" maxlength="70"'); ?></td>

Link to comment
Share on other sites

I am not able to configure 2 things in the homepage.

1. the boxes on the left and right sides. The default box is really to small and too narrow for anything.

2. the return and shipping policy on the lower left corner.


Can you please adivse how to do that?


Also, can you please also advise if there is a way to edit any pages with html editors, e.g. Frontpage or Dreamweaver.


Thanks a lot

Link to comment
Share on other sites


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

  • Create New...