Hi guys
Im wondering how to limit the name of the product to for example 20 charachters and show ... at the end of the name.
how do I recode this to do the above for example:
<div class="productname_custom"><?php echo $product['name']; ?></div >
Thank you in advance
Hey,
In catalog / controller / product / category.php
Find:
Replace With:
Cheers,
Joel.
In catalog / controller / product / category.php
Find:
Code: Select all
'name' => $result['name'],
Code: Select all
'name' => substr($result['name'],0,20) . '…',
Cheers,
Joel.
for the product's name of latest,featured,special,bestseller module
go to /public_html/catalog/controller/extension/module/latest.php,featured.php,special.php,bestseller.php
find
'name' => $result['name'],
and change to
//'name' => $result['name'],
'name' => substr($result['name'],0,50) . '…',
go to /public_html/catalog/controller/extension/module/latest.php,featured.php,special.php,bestseller.php
find
'name' => $result['name'],
and change to
//'name' => $result['name'],
'name' => substr($result['name'],0,50) . '…',
my extension:https://www.opencart.com/index.php?rout ... estshop24h
email :support@bestshop24h.com
site:http://www.bestshop24h.com
Who is online
Users browsing this forum: No registered users and 21 guests