OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: How to show full product_name in categories.php?
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Tips and Tricks
Philo2005
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.gif .

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


spooks
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']) . '&nbsp;' . 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>

cool.gif
Philo2005
[quote name='spooks' date='May 26 2008, 02:14 PM' post='1253716']
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']) . '&nbsp;' . 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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.