+2 votes
Hi there how can i display products on my homepage.

I think inherit the controller is the way but i don't unerstand how to do it.
in Website by (8.8k points) | 128 views

1 Answer

0 votes

Hi Boubaker,
You need to inherit website/controllers/main.py ===>'Website' class and define a template to set in return of '/' route controller with filtred products list.
In this template define your products view (you can see "website_sale/views/templates.xml" for example )

by (3.7k points)
edited by
205 questions
180 answers
222,872 users