How to display the model in a list of products or modules
How to display the model in a list of products or modules
πŸ’Ό Creation of modern websites of any complexity. | πŸ‘Œ WEB-UKRAINE.COM

How to display the model in a list of products or modules

5/56 ratings

Good day, today, one of the customers in the store on the engine, opencart required to bring the field model in the general list of products in the category as well as in modules recommended, news, stocks, and others ....

It makes it all very simple and takes only a few minutes, and in this article I will try to describe it all!

And so to bring the field model in a list of categories open file catalogcontrollerproductcategory.php and after variable :

Add the following line:

Then open the file catalogviewthemedefaulttemplateproductcategory.tpl and in it we find the code:

After which add:

That's basically all that was required to do, we now have in the model displays the list of categories, if you want to display this field in modules all do similar, only this time in the files of the module you require.

Use, will be very happy if this article will be helpful.

You may also like

No Comment

You can post first response comment.

Leave a Reply

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