Jump to content

How to change the order by percentage in specials block module products?


Recommended Posts

How to change the Sort by discount percentage (asc or desc) in special block module products in Home page 



public function hookDisplayHomeTabContent($params)
if (Configuration::get('PS_CATALOG_MODE'))
if (!$this->isCached('blockspecials-home.tpl', $this->getCacheId('blockspecials-home')))
'specials' => BlockSpecials::$cache_specials,
'homeSize' => Image::getSize(ImageType::getFormatedName('home'))
if (BlockSpecials::$cache_specials === false)
return false;
return $this->display(__FILE__, 'blockspecials-home.tpl', $this->getCacheId('blockspecials-home'));
Edited by samprasanna (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...