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 😅.
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024