Jump to content

Random Product Arrangement in Product Listing in 1.6


Recommended Posts

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

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

  • 5 weeks later...
×
×
  • Create New...