1. EDIT: catalog/controller/module/latest.php (or featured.php)
2. FIND:
Code: Select all
$results = $this->model_catalog_product->getLatestProducts($this->config->get('latest_limit'));
Code: Select all
$results = $this->model_catalog_product->getLatestProducts(10 * (int)$this->config->get('latest_limit'));
srand((float)microtime() * 1000000);
shuffle($results);
$results = array_slice($results, 0, $this->config->get('latest_limit'));
That's it! You can leave the model file alone.
I've also created vQmods for randomizng latest, featured, special, and bestsellers here:
http://forum.opencart.com/viewtopic.php?f=131&t=32570