Show Final Price after Discount with Product Variants and Compare Price

New Member
1 0 0

Hi, I use the {{ current_variant.price | times: 0.8 | money }} to display the final price of my products (with compare price and price) after 20% off discount on the product page.

It works well when the product has no variants or with variants at same price (Plus & Gray and Plus & Midnight have same price, and the final price is 479.90 * 0.8=383.92 works).


However, it does not work with the variants with different price (The Short & Gray has a price at 449.90, and the final price should be 449.90*0.8=359.92, which does not work).


Anyone kowns how to fix it. Thanks