Why does my price not update twice?

alams
New Member
1 0 0

I am using the debut theme. Below is the div tag that updates price for the product variant. What I want is that the price to show up at 2 places on the website. When i simply copy the div tag right below itself, the price only updates for 1st Div tag when selecting variants. 


<div class="product__price">
{% include 'product-price', variant: current_variant, show_vendor: section.settings.show_vendor %}
</div>

<div class="product__price">
{% include 'product-price', variant: current_variant, show_vendor: section.settings.show_vendor %}
</div>

How do I force the price to update for both div tags? I tried creating the new snippet as well but still no luck. The price only updates for the 1st snippet/div tag in the code. The 2nd div tag shows static price of the default selected SKU at the time of page load. 

0 Likes