Hello,
I’m trying to show the price of my variants in a custom liquid section. I am using Dawn 13.0.1.
I have the following code:
{%- liquid
assign current_variant = product.selected_or_first_available_variant
-%}
<div class="product-price" id="ProductPrice">
<span class="money">{{ current_variant.price | money }}</span>
</div>
I’m trying to add javascript in order to update the price dynamically when a different variant is selected, exactly like the price block does in the main product section, but I just can’t make it work.
Does somebody have an idea ? It would be greatly appreciated.
Thanks for reading me and have a nice day.