Answer the question
In order to leave comments, you need to log in
How to change catalog display priorities?
Good afternoon. In the avilontrade.ru project, the developers have twisted the code in such a way that it is not an easy task to understand it.
In this case,
http://avilontrade.ru/catalog/?PRICE_FROM=&PRICE_T...
the catalog has 2 states for displaying cars, in the form of a list and in the form of cards. Now, after filtering, the results are displayed in a list, and then the user can switch to cards. What needs to be corrected so that they are displayed first in the form of cards? (grid)
Answer the question
In order to leave comments, you need to log in
Well, for starters, the url needs the type=grid parameter:
http://avilontrade.ru/catalog/?type=grid&PRICE_FRO...
Therefore, I recommend changing the behavior on the server side (a request without a type parameter should return a grid, not a list) . How to do it - you know better there.
You don't need to tinker with the page's code - just code it even more. The server gives different html for the grid and the list, if you switch to the grid, it loads the html with ajax. So look at the server side.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question