View Single Post
  #1  
Old 03-22-2016, 09:28 PM
 
iallouise iallouise is offline
 

Newbie
  
Join Date: Mar 2016
Posts: 8
 

Default Sorting by Products by SKU

Hello I managed to make it work on my localhost.
1.) Option for SKU sort
2.) Auto sort all by sku alpha

using idecorator here's the code

public function __construct(array $params = array())
{
parent::__construct($params);

$this->sortByModes = array(
'p.sku' => 'Part Number',
) + $this->sortByModes;
}

/**
* getSortByModeDefault
*
* @return string
*/
protected function getSortByModeDefault()
{
return static::SORT_BY_MODE_SKU;
}


It's working in my localhost but it doesn't in my live site....

maybe because my localhost has older modules than my live site?

I have Simple CMS 5.2.12 in localhost
and Simple CMS 5.2.14 in live site

Could this be causing it not to work, I even changed the core file to SORT_BY_MODE_SKU to testbut same outcome not working
__________________
X-Cart
Business 5.2.13
Reply With Quote