Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to show full product_name in categories.php?


Philo2005

Recommended Posts

Posted

Hello

i am new here in this forum. I am using osc since 2 years as administrator and user, but i do not know "php" :blink: .

 

Here my problem:

when i add a new product with categories.php

the field "products_name" (language) shows only the first 20 characters,

but in the database table product tables "product_description" it is defined as varchar(64).

 

How can i show on categories.php the full size of this field?

 

Thanks for hints...

regards Philo

Posted

You need to add a size & maxlength function to the input, like:

 

<td class="main"><?php if ($i == 0) echo TEXT_PRODUCTS_NAME; ?></td>

<td class="main" colspan="3"><?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'])), 'size="64" maxlength="64"', true); ?></td>

 

B)

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted

You need to add a size & maxlength function to the input, like:

 

<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'])), 'size="64" maxlength="64"', false); ?></td>

 

 

wow you understood my problem exactly - thank you - works fine and i am very happy

greetings philo

  • 6 months later...
Posted
You need to add a size & maxlength function to the input, like:

 

<td class="main"><?php if ($i == 0) echo TEXT_PRODUCTS_NAME; ?></td>

<td class="main" colspan="3"><?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'])), 'size="64" maxlength="64"', true); ?></td>

 

B)

 

Can you show me where to put these codes? what php files? Thanks

Archived

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

×
×
  • Create New...