How to display products randomly?


1. Switch to development mode.

2. Open the 'js/products/views/categorySliderView.js' file.

3. Go to line 41 and add the line below right before the if statement, like shown in the screenshot

list = _.shuffle(list);

 

Tags: products, random

Last update:
2015-11-23 19:34
Author:
Vlad Sargu
Revision:
1.1
Average rating:0 (0 Votes)