I know this question has been asked a million times but I can’t get it to work from the solutions I’ve found. I have one collection that has prices ranging from $4.00 to $45.00. Instead of the price showing “From $4.00”, I just want it to say “$4.00 - $45.00”
This is the code I have now:
</style>
{%- liquid
assign selected_variant = product.selected_or_first_available_variant
if use_variant
assign target = selected_variant
else
assign target = product
endif
assign compare_at_price = target.compare_at_price
assign price = target.price | default: 1999
if is_product_card and settings.pcard_show_lowest_prices
assign price = product.price
assign compare_at_price = product.compare_at_price
endif
assign available = target.available | default: false
assign money_price = price | money
if settings.currency_code_enabled
assign money_price = price | money_with_currency
endif
if target == product and product.price_varies and settings.pcard_show_lowest_prices
assign money_price = 'products.product.from_text_html' | t: price: money_price
endif
-%}
Any help would be greatly, greatly appreciated. Thank you in advance!