Show a fixed discount 50% deposit when changing variant

Show a fixed discount 50% deposit when changing variant

wq_IntDev
Shopify Partner
12 0 1

We have a product with multiple variants that when changing affects the price. I want to display on the Product Details Page a 50% deposit price based on the product price.

 

As normal the price changes when selecting other variants, but the 50% deposit stays the same. Its not changing dynamically. 

 

I've used this but its not working

 

{%- assign current_variant_price = product.selected_or_first_available_variant.price -%}
<ul>
  <li>{{current_variant_price | times: 0.5  | money   }} 50% Deposit</li>
</ul> 

 

Cheers.

Replies 0 (0)