Post by wandotshop » Sun Nov 21, 2010 4:00 am

hai all...
Due to subject matter...
::Seperate Box Random Product at Mindle Front Page::
hopefully that everybody can understand what i want.. i really2 need your help due to my online shop got more space under latest product Box...

its anybody out there can teach me or give me how to make Seperate Box with tittle "Random Products" which can put under or above "Latest Products" box...at the Middle of Front page...
Hopefully that my request on the module is clearly enough...

plz.. i appreciate that if any guys can help me on this matter module... for ur information i am using 1.4.9.1V...
TQ for your help ..

p/s: i am looking forward time to time on this posting..plz give me good news for this..

New member

Posts

Joined
Wed Oct 06, 2010 12:15 am

Post by Qphoria » Sun Nov 21, 2010 4:10 am

You can easily change the latest or featured sidebox to be random. Just set it to the "home" position and follow this:
http://forum.opencart.com/viewtopic.php ... 550#p93169

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by wandotshop » Sun Nov 21, 2010 4:12 am

the tread u give for me look like current box latest product convert to random product..
but what i means i want another box same as box latest product under current latest product box going be Random product and fully function...any ideal? correct me if wrong...still blank :(

New member

Posts

Joined
Wed Oct 06, 2010 12:15 am

Post by wandotshop » Sun Nov 21, 2010 4:16 am

Qphoria wrote:You can easily change the latest or featured sidebox to be random. Just set it to the "home" position and follow this:
http://forum.opencart.com/viewtopic.php ... 550#p93169
its there any way i can make latest product clone...and change it to another box to be random product...therefore.. at home front page... at the upper is latest product..and at the lower is random product... plz guide me..

New member

Posts

Joined
Wed Oct 06, 2010 12:15 am

Post by Qphoria » Sun Nov 21, 2010 4:20 am

Well since you are only using the latest and don't seem to be using the featured, then just use the featured like i explained in that link

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by wandotshop » Sun Nov 21, 2010 4:23 am

oh..ok i got what u means..:) under trying..:) which one need to follow? the last at the tread?

New member

Posts

Joined
Wed Oct 06, 2010 12:15 am

Post by wandotshop » Sun Nov 21, 2010 4:36 am

Postby Qphoria » Mon Aug 23, 2010 7:57 pm
There is a much better way I found using PHP instead of straining the database.

1. EDIT: catalog/controller/module/latest.php (or featured.php)

2. FIND:
$results = $this->model_catalog_product->getLatestProducts($this->config->get('latest_limit'));

3. AFTER, ADD:

Code: Select all
srand((float)microtime() * 1000000);
shuffle($results);


That's it! You can leave the model file alone.

___
i follow above with featured.php... but not meet on my expectation which i need random all product..but the result around a few product after refresh afew time :( ... any ways?

New member

Posts

Joined
Wed Oct 06, 2010 12:15 am
Who is online

Users browsing this forum: Majestic-12 [Bot] and 4 guests