折扣角标显示具体数字
1、打开主题代码编辑->打开product-block.liquid文件->搜索product-label product-label--on-sale global-border-radius->有两处地方需要修改,如图所示
{% comment %}此段为需要添加的代码{% endcomment %}
{% assign discount_rate = product.price | append: ".0" | times: 1 | divided_by:product.compare_at_price | times:100 | round %}
{% comment %}此段为需要替换的代码{% endcomment %}{{ 100 | minus:discount_rate }}% OFF