As the title says I am trying to change the default product order form Alphabetical to Price - Highest to Lowest. These product pages are not part of any collection. I am looking for the part of the code that names the default Alphabetical in order to change it to Price.
Thank you for reaching out. That is a great question.
To provide the best advice possible, can you please confirm where are these products visible if they don’t belong to any collection. Would they be displayed on the store homepage using All Products link?
If so, the best workaround for this would be to create an “All Products” collection in which you can change the sort order, without it defaulting to alphabetical. To ensure each product is added to this collection automatically, add every ‘product vendor’ within your store via the condition as shown below:
It’s great to see you are using the Dawn theme as there is a lot more flexibility to customize your pages without any coding required! With Dawn, some of the customizations that you’d normally have to request from our Support Team are now available to be done from your end. You can unpack more of Dawn’s features on our Shopify Blog here too.
these products are in linked in the following code that displays all vendors then links to all products each of the 200+ vendors on the site.
{%- for product_vendor in shop.vendors -%}
{{ product_vendor | link_to_vendor }}
{%- endfor -%}
as I stated I am looking for the code that sets the default to Alphabetical so that I can change that code. you proposed solution is not relevant to this situation as I would have done that already