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..
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..
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
http://forum.opencart.com/viewtopic.php ... 550#p93169
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
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

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..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
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?
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

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