Is it possible to use a code like this $product['price'] in the featured products template (featured.tpl) so that it displays the description along with the price and title of the product.
I've tried using this function but it comes up with a fatal error. I'm sure that there must be a simple solution to my problem.
Helps much appreciated.
liamteystee
Yes it is. But first you need to to modify the controller of the featured products.
Open catalog/controller/module/featured.php
After the line:
Open catalog/controller/module/featured.php
After the line:
Add the following line'name' => $product_info['name'],
You can modify it's size by raisng the number of characters (as you see now is 100).'description' => substr(strip_tags(html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',
Who is online
Users browsing this forum: Bing [Bot], Semrush [Bot] and 94 guests