Hello,
When on the search results page on my website it just shows the products and price and there is no indicator right now if the product is sold out or not, they just all look like they’re in stock until you get to the product page. I would love it if instead of the price it said “SOLD OUT” or the price was crossed out and it said SOLD OUT next to the price. I still want the sold out items displayed in the search result page.
Here is an example of how it looks like it is available and could use some indication that it is sold out.
https://invisiblecityeditions.com/search?q=tonto
I am using the Minimal theme and I’m looking at search-result-grid.liquid, and I feel like I am really close in this section:
{% if item.object_type == ‘product’ %}
{% if item.compare_at_price > item.price %} {{ item.price | money }} {{ 'products.product.compare_at' | t }} {{ item.compare_at_price_max | money }} {% else %} {{ item.price | money }} {% endif %}
{% endif %}I could just use some advice on what to actually write…
Any tips would be really appreciated thanks!