Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / How to reduce length of product name on featured product?

How to reduce length of product name on featured product?

Started by sungmo on 16 Oct 2011, 9:03 AM · Views: 484

Results 1 to 1 of 1
16 Oct 2011, 9:03 AM
#1
sungmo avatar

sungmo

New Zenner

Join Date:
Jan 2010
Posts:
79
Plugin Contributions:
0

Post #1 by sungmo

I do not want to change database...

I just want to reduce length of product name on featured product in main page...

so I added bottom codes in fetured_product.php

								<div class="indent">' . ( strlen($products_name) < 160 ? $products_name : substr($products_name, 0, 157) . "...") . ' 

it works.. however if I click F5.. it does not work...

does someone can help me?