- 17 Mar 2011, 13:02
#3776
COMO RANDOMIZAR, ou seja, mostrar a cada sessão da página principal, os produtos em disposições diferentes!
FAÇA BACKUP (por garantia)
TESTADO, APLICADO E FUNCIONAL EM LOJAS DE CLIENTES
1. ACESSE A PASTA: catalog/controller/module/
2. ABRA O ARQUIVO: latest.php (ou featured.php)
3. PROCURE o código:
That´s All Folks!!!
FAÇA BACKUP (por garantia)
TESTADO, APLICADO E FUNCIONAL EM LOJAS DE CLIENTES
1. ACESSE A PASTA: catalog/controller/module/
2. ABRA O ARQUIVO: latest.php (ou featured.php)
3. PROCURE o código:
Código: Selecionar todos
4. TROQUE POR:$results = $this->model_catalog_product->getLatestProducts($this->config->get('latest_limit'));
Código: Selecionar todos
5. SALVE$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 All Folks!!!
Flávio Pavanelli
Aulas de instalação do sistema Opencart?
http://www.youtube.com/lojaopencart
Visite meu blog de Marketing Digital
http://www.flaviopavanelli.com.br
Visite : http://www.lojaopencart.com.br e baixe gratuitamente o módulos e extensões
Aulas de instalação do sistema Opencart?
http://www.youtube.com/lojaopencart
Visite meu blog de Marketing Digital
http://www.flaviopavanelli.com.br
Visite : http://www.lojaopencart.com.br e baixe gratuitamente o módulos e extensões