Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5380 Widoki

  Hello,

  I want to know about all over the process of Website Product Attribute's Filters. When any user selects any attributes on the shop page at that time how that form will submit and from where (which code) it got the appropriate results. I just check the code from the 'website_sale' module. In that, only write the code to submit the form but from where it will get the results. 

  Can anyone help me to explain this process?

 


Awatar
Odrzuć
Najlepsza odpowiedź

when you change the product attribute filter it changes the query string of the url and the browser requests a new page with a selected attribute by query string.  
website sale controller create render the page with provided attribute and return it to browser 
ref:  https://github.com/odoo/odoo/blob/12.0/addons/website_sale/controllers/main.py#L214

Awatar
Odrzuć
Autor

Thanks, I understood that. Can you please tell me from which specific code it create a query string of URL according to the selected attribute.

Powiązane posty Odpowiedzi Widoki Czynność
2
lip 25
1520
1
maj 25
982
2
maj 25
1633
1
lip 24
3389
0
sie 24
341