Pages

Friday, July 5, 2013

How to define lenth of product name in Magento

<?php if(strlen($pname) > 28) {echo substr($pname,0,25);}else {echo $pname;}?>

No comments:

Post a Comment