5 hours ago, Daresh said:If you really need to have it random on each page load, you may try to disable cache use in the module:
public function renderWidget($hookName = null, array $configuration = []) { //if (!$this->isCached($this->templateFile, $this->getCacheId('ps_featuredproducts'))) { $variables = $this->getWidgetVariables($hookName, $configuration); if (empty($variables)) { return false; } $this->smarty->assign($variables); //} return $this->fetch($this->templateFile); //return $this->fetch($this->templateFile, $this->getCacheId('ps_featuredproducts')); }Sorry, I just tried that. It didn't work. It removed the module from the main page.
Edit History
5 hours ago, Daresh said:If you really need to have it random on each page load, you may try to disable cache use in the module:
public function renderWidget($hookName = null, array $configuration = []) { //if (!$this->isCached($this->templateFile, $this->getCacheId('ps_featuredproducts'))) { $variables = $this->getWidgetVariables($hookName, $configuration); if (empty($variables)) { return false; } $this->smarty->assign($variables); //} return $this->fetch($this->templateFile); //return $this->fetch($this->templateFile, $this->getCacheId('ps_featuredproducts')); }Sorry, I just tried that. It didn't work. It removed the module from the main page.