Add "Sort by discount" option to Sort Dropdown menu
Here's how to add a "Sort by discount" option to the sorting drop down menu.
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/561684acc69791720c8fdb63/images/5ae1dc412c7d3a5063b4e728/file-9lvq9hr08J.png)
- 1
-
Create a custom plugin
If you haven't done so already, create a custom plugin.
- 2
-
Add the following code to your custom plugin:
- 3
-
Save
Save your changes.
More information about customizing the sorting menu can be found here: http://docs.woothemes.com/document/custom-sorting-options-ascdesc/