News:

Looking for documentation? Take a look on our wiki

Main Menu

How to customise the product ordering in the back end?

Started by sincera, February 06, 2012, 06:46:07 AM

Previous topic - Next topic

sincera

Hi,

When I click con Product SKU (Click to sort by this column), it will sort all product by its SKU.

However, is there anyway I can customise this sort by the last 2 digit of the product SKU instead of the whole product SKU.

I notice that if I use Firebug and change the javascript attached to this button:
<a title="undefined" href="javascript:tableOrdering('product_sku','desc','');">Product SKU<img alt="" src="/media/system/images/sort_asc.png"></a>

to
<a title="undefined" href="javascript:tableOrdering('product_sku'.substring(2,2),'desc','');">Product SKU<img alt="" src="/media/system/images/sort_asc.png"></a>


so the different is 'product_sku'.substring(2,2)

then it work, but I don't know how to adjust it permanently.

Please help.
Thanks

sincera

Hi, does any one have any solution for this issue?
Please help