R.ACE Posted February 9, 2019 Share Posted February 9, 2019 Hi all.I tried to make shuffle () to the list of products, but the only thing I have achieved is to mix on each page.I want you to mix them all.I already saw that in classes / category.php in the function getProducts () the variable $ random, but even changing it to true does not make any change. I am using version 1.7.4.2. Thanks in advance for your reply Link to comment Share on other sites More sharing options...
Rolige Posted February 11, 2019 Share Posted February 11, 2019 Hi, You need edit the php which is generating the content, most of this modules validate first if the tpl is cached and you need remove it, thats way the suffle will doesnt works in every load. Regards! Link to comment Share on other sites More sharing options...
R.ACE Posted February 11, 2019 Author Share Posted February 11, 2019 13 hours ago, Rolige said: Hi, You need edit the php which is generating the content, most of this modules validate first if the tpl is cached and you need remove it, thats way the suffle will doesnt works in every load. Regards! Sorry, Do you know what is the file that creates the variable $ listing.products? When I shuffle that variable, just mix the page of the catalog that is being viewed at that moment. I'm not using any addon Link to comment Share on other sites More sharing options...
Rolige Posted February 11, 2019 Share Posted February 11, 2019 You have not specified which module of the natives is where you want to do the shuffle. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now