+2 votes
45 views
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) | 45 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
202 questions
178 answers
34 comments
115,955 users