S
S
sergey2015-06-02 13:32:59
PHP
sergey, 2015-06-02 13:32:59

How to make the Proscroller OpenCart module display a different number of products when the screen is reduced?

There is a site on OpenCart, the task is to make it adaptive. And then I ran into the first serious problem: the Proscroller module is installed on the site (in its settings, the visible part of the products is 4). On a 320px adaptive screen, you need to set the view of 1 product. Maybe someone has done this or knows how to do it, there is no need to remove the module and make it up from scratch. Perhaps there are ideas where to dig?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Ineshin, 2015-06-02
@zorro76

0. Check the screen width on loading
1. Listen to the resize event of window
2. In case < 320, for example, call the Update method on the Proscroller module (if it exists)
3. In the case of > 320, call Update again.

S
sergey, 2015-06-02
@zorro76

Is it all in js to do?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question