Post by Treat Your Mobile » Thu Dec 08, 2011 10:42 pm

Hello,

Are there any FREE modules or extensions to enable the products in categories to be listed at random each time it's accessed?

Thanks in advance
Last edited by Treat Your Mobile on Mon Dec 12, 2011 6:02 pm, edited 1 time in total.

Regards,

Mobile Phone and Apple Generic Accessories - http://www.treatyourmobile.co.uk


New member

Posts

Joined
Mon May 23, 2011 4:41 am


Post by OpenCart Addons » Fri Dec 09, 2011 10:56 pm

Your best bet is to search through the free contributions section on this forum. Also try searching through the extensions section of the site and set "License" to free in the search.

Joel.

Canada's Leading Expert In OpenCart Development & Certified OpenCart Development Partner Image


User avatar
Active Member

Posts

Joined
Thu Nov 24, 2011 10:51 am
Location - Canada

Post by Qphoria » Sun Dec 11, 2011 5:33 am

1. EDIT: catalog/controller/product/category.php

2. FIND:

Code: Select all

$pagination = new Pagination();
3. BEFORE, ADD:

Code: Select all

shuffle($this->data['products']);

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Treat Your Mobile » Mon Dec 12, 2011 5:52 pm

Thanks thats great! :)

Regards,

Mobile Phone and Apple Generic Accessories - http://www.treatyourmobile.co.uk


New member

Posts

Joined
Mon May 23, 2011 4:41 am


Post by devplus » Thu Jul 05, 2012 10:38 pm

This mod shuffles the products no matter what kind of ordering you select. Is there any way to randomly sort the products only for the first time the category is accessed?

New member

Posts

Joined
Fri May 18, 2012 11:43 pm
Who is online

Users browsing this forum: No registered users and 3 guests