Adding a 'From' to the price on a listing in a collection where there are variants in price in Debut theme

LBnailartist
Tourist
5 0 1

OMG thank you so much!!! I've been searching for this for the past 2 hours. 

0 Likes
dhodgson
New Member
1 0 0

 


@John_Cowan1 wrote:

Dear Mike, thank you very much for taking the time to write out these instructions. I am afraid I have gone over your instructions, and checked again in case I have made some error, but the 'from' again appears on ALL my products when I do this, similar to before.

Thank you for leting me know I am not alone with this issue, I was quite surprised at having this issue with this theme.

 

Best wishes, John


Use this:

 

{% if product.variants.size > 1 %}
{% include 'product-price-from', variant: product %}
{% else %}
{% include 'product-price', variant: product %}
{% endif %}

0 Likes
BenKenny
New Member
1 0 0

Why not just use an if statement and the 'product.price_varies'?

 

{% if product.price_varies %}from{% endif %}

 

This will look to see if the product has more than price, and if so, it will show the word 'from'.

0 Likes
lucyorrinterior
New Member
1 0 0

Hi Mike

Thank you for explaining how to add a 'from' price to my production on the online shop. I followed your instructions and it worked.

However, I didn't want to add a 'from' price to all of my products, is there a way of just adding a 'from' price for a selection of products?

Many thanks

0 Likes