From 19b6e8aabb1654c71d3b5f672069e3a929e94599 Mon Sep 17 00:00:00 2001 From: junedkazi Date: Mon, 30 Jan 2017 17:02:45 -0800 Subject: [PATCH] STENCIL-2461 Check if gift certificates are enabled before rendering. --- templates/components/cart/totals.html | 32 ++++++++++++++------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/templates/components/cart/totals.html b/templates/components/cart/totals.html index 99281c3b7e..236343e598 100644 --- a/templates/components/cart/totals.html +++ b/templates/components/cart/totals.html @@ -71,25 +71,27 @@ {{> components/cart/coupon-input}} {{/if}} - {{#each cart.gift_certificates}} + {{#if settings.gift_certificates_enabled}} + {{#each cart.gift_certificates}} +
  • +
    + {{lang 'cart.gift_certificates.code_label' code=code}} + + {{remaining.formatted}} | {{lang 'cart.gift_certificates.remove'}} + +
    +
    + {{used.formatted}} +
    +
  • + {{/each}}
  • - {{lang 'cart.gift_certificates.code_label' code=code}} - - {{remaining.formatted}} | {{lang 'cart.gift_certificates.remove'}} - -
    -
    - {{used.formatted}} + {{lang 'cart.gift_certificates.gift_certificate'}}:
    + {{> components/cart/gift-certificate-input}}
  • - {{/each}} -
  • -
    - {{lang 'cart.gift_certificates.gift_certificate'}}: -
    - {{> components/cart/gift-certificate-input}} -
  • + {{/if}}
  • {{lang 'cart.checkout.grand_total'}}: