A
A
Alexey Moloko2019-01-11 07:19:38
opencart
Alexey Moloko, 2019-01-11 07:19:38

How to display similar products by model in the product card?

DD!
There are several products with the same article or model, as when entering the card of a certain product, the products with the corresponding article or model will be automatically displayed next to each other. Roughly speaking analogs.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
prostovlad, 2019-01-11
@prostovlad

take the output of the product to the category as a basis, write an additional request in the product model the same as in the category, but instead of the category id, make a selection by the article, and, accordingly, send this array to the product card template through the controller.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question