Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Contribution-Writing Guidelines / How to show futured/new/special product´s description on the first page

How to show futured/new/special product´s description on the first page

Locked

Started by neboztik on 9 Nov 2009, 9:53 PM · Views: 2,377

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
9 Nov 2009, 9:53 PM
#1
neboztik avatar

neboztik

New Zenner

Join Date:
Jan 2009
Location:
Czech Republic
Posts:
59
Plugin Contributions:
0

Post #1 by neboztik

Hi, I need to show excatly same description as on product listning page does for featured/new/special product on the main page. I figured out how to show on the main page description which is limited by number of letters but I need both letters and word limitation as in product listing page. Thx for ur help!

$products_desc = substr(strip_tags($new_products->fields['products_description']), 0, 100) . '...';
11 Nov 2009, 4:32 PM
#2
neboztik avatar

neboztik

New Zenner

Join Date:
Jan 2009
Location:
Czech Republic
Posts:
59
Plugin Contributions:
0

Post #2 by neboztik

Problem solved, maybe smb would be interest:

$products_desc = zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($featured_products->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION)

change $featured_products to $new_products for new_products.php