Answer the question
In order to leave comments, you need to log in
How to pass the parameter responsible for displaying the list when sorting?
I have two display options in the product catalog, blocks and a list. The default option is blocks with pictures. The page has the ability to sort by price and name, as well as the choice of the number of displayed products by 6 12 24 48 products. If you switch to the list view and then do the squaring, the page reloads in block mode. How to pass a parameter responsible for displaying the list to the link generation function so that the view does not change when sorting?
I did the output of the quantity according to this instruction http://dev.1c-bitrix.ru/community/forums/messages/...
And sorting by price and name by this www.thisis-blog.ru/bitriks-sortirovka-tovarov-po -s...
Catalog page torg54.ru/katalog.php
Answer the question
In order to leave comments, you need to log in
Store the directory output type in a cookie (or session) of the user.
+ No need to transfer anything. Set a cookie and reload the page.
+ There is no need to "remember" this anywhere when the user walks through the directory, it is especially convenient if there are several directories and are used in conjunction with the filter.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question