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