RasdyCute Posted April 15, 2015 Share Posted April 15, 2015 Hello Guys, We have made a webstore that contains a thousand of products per category, and we are afraid that the customers might not browse or reach all the products on a certain category... is there a certain way to radomize product arrangement in a product listing so that every time she refresh the page random product on that certain category will show. Thank in advance Link to comment Share on other sites More sharing options...
NemoPS Posted April 15, 2015 Share Posted April 15, 2015 I usually discourage this as pagination will become weird, and people might not be shown certain products. If you really want to do it, edit the category controller $this->cat_products = $this->category->getProducts($this->context->language->id, (int)$this->p, (int)$this->n, $this->orderBy, $this->orderWay); to $this->cat_products = $this->category->getProducts($this->context->language->id, (int)$this->p, (int)$this->n, $this->orderBy, $this->orderWay,false, true, true); Link to comment Share on other sites More sharing options...
RasdyCute Posted April 15, 2015 Author Share Posted April 15, 2015 I have applied on the Category Controller but still it not works... Link to comment Share on other sites More sharing options...
NemoPS Posted April 15, 2015 Share Posted April 15, 2015 Try clearing cache as well, from performance options in the bo Link to comment Share on other sites More sharing options...
RasdyCute Posted April 15, 2015 Author Share Posted April 15, 2015 Yup! I have already done that thing everytime I change any front-end and back-end changes but it doesnt affect any changes on my system Link to comment Share on other sites More sharing options...
NemoPS Posted April 15, 2015 Share Posted April 15, 2015 None? Are you using any specific caching system? CDN? Cloudflare? Link to comment Share on other sites More sharing options...
RasdyCute Posted April 15, 2015 Author Share Posted April 15, 2015 No im just developing on my local system and I am using force compilation and cache is "OFF" I try the code you gave me on other of my projects put it still not work. Link to comment Share on other sites More sharing options...
NemoPS Posted April 17, 2015 Share Posted April 17, 2015 Add this die('test); To the categorycontroller's initContent() method, see if it dies. If not...somehow you are not modifying the proper files Link to comment Share on other sites More sharing options...
RasdyCute Posted April 17, 2015 Author Share Posted April 17, 2015 It shows 'test' word it means I am working on the proper controller... dont know what still happen Link to comment Share on other sites More sharing options...
NemoPS Posted April 18, 2015 Share Posted April 18, 2015 Wait, are you using the layered navigation block? Disable it for a test if so, that reloads the product list as well Link to comment Share on other sites More sharing options...
RasdyCute Posted May 18, 2015 Author Share Posted May 18, 2015 Tnx Nemo on your help it works really fine.. I wil put this now as SOLVED Link to comment Share on other sites More sharing options...
Recommended Posts