Craft Commerceでチェックアウト時にすべての割引を表示

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 {{
cart.totalDiscount | currency(cart.currency) }}
it just
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) }}




メールアドレスが公開されることはありません。 * が付いている欄は必須項目です