Y
Y
Yastr2016-10-30 23:37:52
CMS
Yastr, 2016-10-30 23:37:52

How to get and display a list of manufacturers in the product card of opencart 2?

It is necessary to get an array of all manufacturers on the product page and, depending on a certain attribute, form a price table, although in fact this is not important, I have already thought of everything there, but it is not possible to get the same cherished array with all information about manufacturers. It seems like it's all simple, but I can't figure out the controllers for the second day.
Can anyone help or at least point me in the right direction?
oc 2.3

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Suntsev, 2016-10-31
@Yastr

Make a request to the database in the model, where you get all the manufacturers.
You send this data to the controller or to the view.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question