M
M
Mikhail Zavalko2017-09-29 13:25:47
PHP
Mikhail Zavalko, 2017-09-29 13:25:47

Manufacturer in recommended opencart 2.3?

Hey! I'm trying to display the manufacturer in the recommended products, under the name of the product. In the course of googling, I found a lot of solutions for later versions of opencart, but such solutions do not want to work for me. So I understand you need to edit catalog\controller\extension\module\featured.php and catalog\view\theme\themename\template\extension\module\featured.tpl
In featured.php into the array $data['products'][] = array added and naturally after these manipulations a bunch of errors in featured.tpl , what am I doing wrong or maybe where I haven’t finished it yet to make it work?
'manufacturer'=> $result['manufacturer'],
<p><?php echo $product['manufacturer'];?></p>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Sanych, 2017-09-29
@Mixa_007

Your campaign variable is not the same https://github.com/opencart/opencart/blob/2.3.x/up... replace with
$product_info['manufacturer'];

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question