On the products list page, we can see sort by "Position, name, price" as in default Magento.
How to sort by
- newest products (uploaded recently)
- Discount (highest discount products first)
- Best seller (most sold products first)
- Reviews (high rated products display first)
Please let me know if you need any clarification…
Best Answer
for -> Recently Viewed see here
for ->Sorting by rating
Copy the file
app/code/core/Mage/Catalog/Block/Product/List.php
toapp/code/local/Mage/Catalog/Block/Product/List.php
in
list.php
find for this linewhich will be in around
line no 86
add the following code after thatnow copy
app/code/core/Mage/Catalog/Model/Config.php
toapp/code/local/Mage/Catalog/Model/Config.php
in config.php find for this code
replace with
-->>for
BESTSELLER
follow this procedure create a folder naming
Inchoo
and inside that folder placeCatalog
and inside catalog create 3 foldersBlock
,etc
andModel
InBlock
addProduct
inProduct
addList
and inList
create a file and name it asToolbar.php
and ad this code into itnow in
etc
folder create a file with nameconfig.xml
and add this codeNow in
Model
create a file namingConfig.php
and add this code.also create
Resource
folder inModel
and inResource
folder createProduct
folder and create a file namingCollection.php
and add following code.Now finally activate this module by going to
app/etc/modules
create a fileInchoo_Catalog.xml
add this code.and for
SALE
I suggest you this extension as I cannot find any programmatic way to achieve this.