I
I
iamvavilon2016-02-15 07:48:59
PHP
iamvavilon, 2016-02-15 07:48:59

How to implement category view switching?

It is necessary to implement switching the category view from grid to tile using buttons. Styles and js are ready, but how to make sure that the tile view is saved when the page is refreshed? (I implemented it on js by adding a class to the category) p.s. cms 1C-Bitrix.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
look2009, 2016-02-15
@iamvavilon

Use cookies, or write to the database session, and there 1 or 0. i.e. database structure id(AI) | session | grab(int 1)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question