Troubleshooting AMP Collections Sorting

Written By Stephen Gardner (Super Administrator)

Updated at April 2nd, 2020

AMP Collection pages are able to show filters for products, so that they can be sorted such as "Sort by price descending", "Sort by featured", etc.

By default, when a user activates a new sorting method, they are taken to your non-AMP site for full sorting controls.

AMP offers sorting for the following options:

  • Featured
  • Best selling
  • Alphabetically, A-Z
  • Alphabetically, Z-A
  • Price, low to high
  • Price, high to low
  • Date, old to new
  • Date, new to old

When a user selects a sorting method, they will go to your non-AMP page and a URL parameter will be appended to the page, such as ?sort_by=price-ascending this format is a Shopify standard, and most Shopify themes support sorting using this kind of URL parameter.

If you are using a custom filter app on your non-AMP pages, be sure that the custom filter app is able to support such query parameters as sort values.  If they aren't, or if your theme doesn't support this, but they support other ways to pass a predictable sort value via the URL, let us know, and it's likely that we can customize your search functionality to incorporate this.   Please note that the theme or filter app must be able to support passing query parameters via the URL, as is the standard with Shopify themes.  In the event that they aren't able to do this, if you need to remove the sort functionality from AMP, you can also do that easily from within your AMP theme editor.

Was this article helpful?