hello
In my store, I have verrines to pick from and the lowest is £1 and that is only shown to people when they go to my site, how do I change it to the highest price or the price I want it to show as default
check the link and look on the home screen of the products I sell and you will see
is it in custom css that I will need to change to fix this?
https://gamers-delight-online.myshopify.com/
thanks Michael
Hello @jokerman311 ,
You can try to follow these steps:
Go to Online Store → Themes → Actions → Edit code
Go to Sections → collection.liquid file or something similar
Look for the loop code that fetches and displays the products like this
{% for product in collection.products %}
{% endfor %}
To change the price to sort by the highest price first, you can modify the loop as follows:
{% assign sorted_products = collection.products | sort: 'price' | reverse %}
{% for product in sorted_products %}
{% endfor %}
Save and preview
Hope this can help.
Transcy
hello
I’m using the theme “Refresh” and the code seems to be there to only show the lowest price of available variants, so it doesn’t display prices of out-of-stock products if they’re lower in price. However, every product seems to be showing the lowest price even if that item is out of stock. We’ve looked through the code, and it seems to be correct but just isn’t displaying correctly on the website.
thanks, Michael