Add code in card-product.liquid file

PHOTO EMBED

Tue Apr 12 2022 18:26:40 GMT+0000 (Coordinated Universal Time)

Saved by @websensepro #shopify #dawntheme #discount

<span class="badge price__badge-sale color-{{ settings.sale_badge_color_scheme }}">
      -{{ card_product.compare_at_price | minus: card_product.price | times: 100 | divided_by: card_product.compare_at_price }}% OFF
    </span>
content_copyCOPY