- 03 Abr 2012, 11:37
#19106
estou usando a versão 1.5.3.1 do opencart ,fiz essas motificações para mostra produtos aleatoriamente -
catalog/model/catalog/product.php
2 - PROCURE POR:
Código:
--------------------------------------------------------------------------------
ORDER BY p.date_added DESC LIMIT " . (int)$limit);
--------------------------------------------------------------------------------
3 - SUBSTITUA COM:
Código:
--------------------------------------------------------------------------------
ORDER BY rand() DESC LIMIT " . (int)$limit);
--------------------------------------------------------------------------------
--
4 - PROCURE POR:
Código:
--------------------------------------------------------------------------------
$product_data = $this->cache->get('product.latest.' . $this->config->get('config_language_id') . '.' .
(int)$this->config->get('config_store_id') . '.' . $limit);
--------------------------------------------------------------------------------
5 - SUBSTITUA COM:
Código:
--------------------------------------------------------------------------------
$product_data = '';
--------------------------------------------------------------------------------
porem não esta funcionando por favor tenho que alterar mais alguma coisa
catalog/model/catalog/product.php
2 - PROCURE POR:
Código:
--------------------------------------------------------------------------------
ORDER BY p.date_added DESC LIMIT " . (int)$limit);
--------------------------------------------------------------------------------
3 - SUBSTITUA COM:
Código:
--------------------------------------------------------------------------------
ORDER BY rand() DESC LIMIT " . (int)$limit);
--------------------------------------------------------------------------------
--
4 - PROCURE POR:
Código:
--------------------------------------------------------------------------------
$product_data = $this->cache->get('product.latest.' . $this->config->get('config_language_id') . '.' .
(int)$this->config->get('config_store_id') . '.' . $limit);
--------------------------------------------------------------------------------
5 - SUBSTITUA COM:
Código:
--------------------------------------------------------------------------------
$product_data = '';
--------------------------------------------------------------------------------
porem não esta funcionando por favor tenho que alterar mais alguma coisa



