Pages

Friday, July 5, 2013

Magento : 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