Hello,
Is any possibility for Brand / Manufacturer name to be displayed in products list (latest.tpl) on homepage and product category list.
I`m not really familiar with OC and PHP. Any kind of help will be appreciated.
Example in attachment.
Thanks!
Welcome to Opencart forum.
In catalog/controller/module/latest.php file,
find:
add above:
Then, find:
add below:
Then, in your catalog/view/theme/<your_theme>/template/module/latest.tpl file,
you can use:
wherever you see fit.
Note: The demonstration above is only for demonstration purposes since Opencart does not recommend to alter core files. I would suggest to read: http://docs.opencart.com for more information. Also, you can visit: http://www.vqmod.com to use XML files and also OCMod extensions usable from the admin - > extensions - > installer and extensions page.
In catalog/controller/module/latest.php file,
find:
Code: Select all
$data['products'][] = array(
Code: Select all
$product_info = $this->model_catalog_product->getProduct($result['product_id']);
Code: Select all
'thumb' => $image,
Code: Select all
'manufacturer' => html_entity_decode($product_info['manufacturer'], ENT_QUOTES, 'UTF-8'),
you can use:
Code: Select all
<?php echo $product['manufacturer']; ?>
Note: The demonstration above is only for demonstration purposes since Opencart does not recommend to alter core files. I would suggest to read: http://docs.opencart.com for more information. Also, you can visit: http://www.vqmod.com to use XML files and also OCMod extensions usable from the admin - > extensions - > installer and extensions page.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 8 guests