Post by Street4uv » Mon Mar 05, 2018 10:02 pm

Good day sir.
I how do i display the manufacture name on the product grid view. An example is this
Product name
Manufacturers name
Price.
Or how do i add another field to display on the product grid view. An example is this
Product name
Field 1
Field 2
Price.
Thats all i want. please sir. i have tried all i could but its not displaying. please help. Thanks
My opencart version is 1.5.6.1

Newbie

Posts

Joined
Wed Feb 28, 2018 8:31 pm

Post by straightlight » Mon Mar 05, 2018 10:42 pm

catalog/controller/product/category.php file,

find:

Code: Select all

'name'        => $result['name'],
add below:

Code: Select all

'manufacturer' => html_entity_decode($result['manufacturer'], ENT_QUOTES, 'UTF-8'),
In your catalog/view/theme/<your_theme>/template/product/category.tpl file, you can add:

Code: Select all

<?php echo $product['manufacturer']; ?>
below the line:

Code: Select all

<?php echo $product['name']; ?>

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 19 guests