I am showing 4 Featured Items in JM Product Slider.
Can I show them in the order I want?
I don’t mind showing them alphabetized by Product name.
Or even better sort them by some hidden value like "New From Date".
What code will I need to change if any?
Thanks
1 answer
To order featured product, please open the file \app\design\frontend\default\jm_monsieurtemplate\ joomlart\jmproductsslider\list.phtml
On line 7, after this code:
Code:
$_collectionSize = 0;
Please add this code:
Code:
$listall = $listall->setOrder('price', 'ASC');
Note: you can order by any attribute you want by replacing ‘price’. Eg: name:
Code:
$listall = $listall->setOrder('name', 'ASC');