Related (related) products in Opencart
Professional web sites design and development, quality quickly and inexpensively!
πŸ’Ό Creation of modern websites of any complexity. | πŸ‘Œ WEB-UKRAINE.COM

Related (related) products in Opencart

5/53 ratings

In the online stores on the engine, opencart have such a good property as related products, which when added to the current product-related items are automatically added and selected, for example, if we added to the sink faucet is a companion product to product is automatically added to the mixer and sink. etc

But sometimes this feature is not quite appropriate since we add accessories but as not contrary to most goods.

So in this tutorial I would like to talk about how to fix it.
All the changes we will be carried out in a single file and it is here /admin/model/catalog/product.php
So we find and open the above file and find in it the following code:

In this code, we remove or comment on some lines to get as in the example below:

Next we need to find the code:

And it will also remove or comment on how to get in the code below:

Well, this latest find and comment the following line:

Well, in principle, all goods are now made to be added specifically as related products, and feedback will not work, but there is a small flaw, all previously added items will need to add the new ...

You may also like

No Comment

You can post first response comment.

Leave a Reply

Π’ΠΈΠ±Π΅Ρ€Ρ–Ρ‚ΡŒ спосіб спілкування
Звязатися Π· Π½Π°ΠΌΠΈ!
Ми Π³ΠΎΡ‚ΠΎΠ²Ρ– Π΄ΠΎ Π΄Ρ–Π°Π»ΠΎΠ³Ρƒ.