Menu Close

Get Support From ShopWired Close

All Systems Operational

Subscribe To Updates
Prefer To Live Chat? Chat directly with ShopWired support Quickest response time

Prefer To Phone?

Call us on 0330 111 2024 (free from landlines and mobiles)

Available 9.30am to 5.30pm Monday to Friday

Send A Message
Response within 24 hours

Menu Close


Sort by best selling option

Your theme will come with some built in 'sort by' options which a visitor can use when viewing a category/search results page.

The default sort by options are:

  • Price (high to low)
  • Price (low to high)
  • Alphabetically (a to z)
  • Alphabetically (z to a)
  • Custom sort order
Your search results page, by default, will return products according to their relevance to the search terms used by the website visitor.

A further sort order option is available 'sort by best selling' which enables users to sort by the best selling products (most frequently purchased at the top).

This can be achieved by adding the line of code, shown below, to the twig file that contains the product sort options (usually called product_filters.twig).

<option value="best_selling" {{ sort_option == 'best_selling' ? ' selected="selected"' : '' }}>Best Selling</option>