anna.morris's blog

Just another FSFE Fellowship Blogs site

How to edit order by drop down list in Prestashop

In a Pretsashop store there is a “sort by” drop down menu where customers can sort products by, for example, price or stocking levels. In my instance I wished to remove price and stocking levels, as neither were appropriate to my store, but did not wish to remove the whole menu, because sorting by name might be useful.

To achive this, I opened my file /public_html/themes/mytheme/product-sort.tpl using ftp (I use file zilla) and removed some of the options.

For example, I removed the line below which starts <option> and ends </option> and refers to price:asc (price ascending)

screenshot1

Here you can see I removed three lines of code in total:

screenshot 2

the options for quantity:desc, price:desc and price:asc

Hope that helps

Anna

ps: sorry I cant post the code properly, the <code></code> tags dont seem to be working properly as the code seems to become active in some way and half of it vanishes, no idea what that is about!!