I’ve taken the difference between the actual price and sale
price of items and created a variable to hold the total value to
give me a total discount at my checkout. I am curious if there is a
way to do this with less code though? If I try to show {{
it just
cart.totalDiscount | currency(cart.currency) }}
comes up as $0.00, and this is with promotions -> sales at 10%
off for all products. If there is a simple snippet like the one I
referenced I’d love to know about it. Thanks!
ベストアンサー
うーん、何かがここで遊んでいる。
私が使う:
{% if cart.totalDiscount != 0 or cart.couponCode %}
- {{ cart.totalDiscount | currency(cart.currency) }}
…それは動作します。
プロモーションが実際に適用されていますか?私はそれが割引を計算することができると思います。