While you may have now posted in the right forum section, I do have a Bestseller with Customer Search on my namespace but is only for the master branch version on Github Opencart. Take a look at this post: viewtopic.php?f=24&t=210586#p749515 .
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I found a possible solution on the internet that I want to share here.
In the controller file catalog/controller/extension/module/featured.php
After:
Add:
After:
Add:
After:
Add:
In the template file catalog/view/theme/YOUR-THEME/template/extension/module/featured.tpl
After:
Add:
In the controller file catalog/controller/extension/module/featured.php
After:
Code: Select all
$this->load->model('catalog/product');
Code: Select all
$this->load->model('catalog/category');
Code: Select all
$product_info = $this->model_catalog_product->getProduct($product_id);
Code: Select all
$category = $this->model_catalog_product->getCategories($product_id);
if ($category) {
$category_array = $this->model_catalog_category->getCategory(end($category)['category_id']);
}
Code: Select all
'name' => $product_info['name'],
Code: Select all
'category' => $category_array['name'],
After:
Code: Select all
<div class="caption">
Code: Select all
<p><?php echo $product['category']; ?></p>
Who is online
Users browsing this forum: No registered users and 45 guests