A
A
Andrey Bely2020-02-26 15:56:24
1C-Bitrix
Andrey Bely, 2020-02-26 15:56:24

How to implement options for displaying a list of products in catalog.section on button click?

Need a joke like this. What is this functionality called? And how to implement?

5e566aef977b5029418966.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
serginhold, 2020-02-26
@serginhold

as a rule, layout in terms of html is one common, and css styles are completely different, several options, i.e. when you click on the button, the class of the list output block simply changes and the browser will redraw everything itself

Y
Yaroslav Alexandrov, 2020-02-26
@alexyarik

You get cookies of the display type, compare, set the parameter value

if($cookie_view_ind == 'table')
{
$arParams['LIST_PRODUCT_ROW_VARIANTS']
}

link has href="?view=table"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question