Ajeh:
One of these days I need to make those user definable lengths ... but not today ... :cool:
Here's a quick way to make it configurable...
Edit this line of code (113) in tpl_modules_products_featured_listing.php
$display_products_description = stripslashes(zen_trunc_string($disp_text, 150, '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '"> ' . MORE_INFO_TEXT . '</a>'));
change that 150 to PRODUCT_FEATURED_LIST_DESCRIPTION so you have
$display_products_description = stripslashes(zen_trunc_string($disp_text, PRODUCT_FEATURED_LIST_DESCRIPTION, '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '"> ' . MORE_INFO_TEXT . '</a>'));
and run an sql patch to modify the configuration key:
UPDATE configuration SET `configuration_value` = '150',
`configuration_description` = 'Do you want to display the Product Description? <br /><br />Enter how many characters of the description you wish to display (0= off, default=150) ',
`use_function` = NULL ,
`set_function` = '' WHERE `configuration_key` ='PRODUCT_FEATURED_LIST_DESCRIPTION';
Now you can set the character length from Admin :yes:
Similar process can be followed for New Products listing