Shopify themes, liquid, logos, and UX
Hello, I am using debutify theme on my store, plantykenya.com . I want to be able to display price ranges for products with variants that have different prices from the cheapest to most expensive (lowestprice - highestprice) . I need help with the code to implement that, Please come through with any help or feedback, thank you.
Hi @dev-myk
Because your theme is not a free theme. So I don't know theme's structure to suggest the position to add code. So I suggest add code below to the position that you would like to show
{% if product.price_min != product.price_max %}
<div class="price-range">
{% if settings.currency_code_enabled %}
{{ product.price_min | money_with_currency }} - {{ product.price_max | money_with_currency }}
{% else %}
{{ product.price_min | money }} - {{ product.price_max | money }}
{% endif %}
</div>
{% endif %}
Hi; I have the same question, I am using a free theme: Minimal.
This is the page I would like the prices to be displayed for different options/variants
Could you tell me where to add the code? Thank you so much!
Hi!
this code worked as a charm in my shop, but it still displays the lowest price above the price range.
I have products both with and without variants so I need the variant-products to show only the price range and the non variant products to just show price as usual. Do you have any solution for this? Been trying all morning here with no results 😅.
User | RANK |
---|---|
206 | |
175 | |
63 | |
52 | |
47 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023