Product Name Character Limit in Grid View

Is there a way to increase the character limit for product names in grid view? Thank you!

1 answer

Profile photo of Sherlock 0.00 $tone March 19, 2014

Hope this can help.

Go to the app\design\frontend\default\jm_sportsgeartemplate \catalog\product\list.phtml file and find:

HTML Code:

   <a title="<?php echo $this->htmlEscape($_product->getName()) ?>" href="<?php echo $_product->getProductUrl() ?>">  
									if (strlen($_product->getName()) > 25) :
									  echo strip_tags(substr($_product->getName(), 0, 20)).'...';
									else : 
									  echo $_product->getName();

You could replace those 20 and 25 number with greater values at your choice.


Please login or Register to Submit Answer

Written By