Display price ranges for products with variants of different prices - Debutify theme

Display price ranges for products with variants of different prices - Debutify theme

dev-myk
Tourist
6 0 0

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.

Replies 3 (3)

EBOOST
Shopify Partner
1189 310 349

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 %}

 

 

- Hope can help. If you find my reply helpful, please hit Like and Mark as Solution
- Need a Shopify developer? Contact email: eboost10@gmail.com
- Visit our site: https://www.eboosttech.net to view and download shopify themes and magento2 extensions free
- ❤❤DONATE ❤❤Coffee tips
shapedbymyjourn
Tourist
7 0 0

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

 

https://shapedbymyjourney.ca/products/copy-of-this-is-us-familily-with-dangling-feet-shoes-sitting-o...

 

 

 Could you tell me where to add the code?  Thank you so much!

Swedenshop
Visitor
1 0 0

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 😅