Skip to content

Commit

Permalink
feat(storefront): BCTHEME-116 move tax field after grand total when t…
Browse files Browse the repository at this point in the history
…ax inclusive (#1903)
  • Loading branch information
bc-alexsaiannyi committed Nov 17, 2020
1 parent 339ce39 commit 9686174
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## Draft
- Move Tax Field under Grand Total on Cart when Tax inclusive. [#1903](https://github.com/bigcommerce/cornerstone/pull/1903)
- Added styling config for the PayPal SPB on checkout page [#1866](https://github.com/bigcommerce/cornerstone/pull/1866)

## 4.12.1 (11-10-2020)
Expand Down
1 change: 1 addition & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"coupon_code": "Coupon Code",
"discount": "Discount",
"gift_certificate": "Gift Certificate",
"included_in_total": " Included in Total",
"remove_file": "Remove this file",
"freeshipping": "Free Shipping",
"reconfigure_product": "Configure '{name}'",
Expand Down
30 changes: 22 additions & 8 deletions templates/components/cart/totals.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@
</li>
{{/if}}
{{#each cart.taxes}}
<li class="cart-total">
<div class="cart-total-label">
<strong>{{name}}:</strong>
</div>
<div class="cart-total-value">
<span>{{cost.formatted}}</span>
</div>
</li>
{{#unless included}}
<li class="cart-total">
<div class="cart-total-label">
<strong>{{name}}:</strong>
</div>
<div class="cart-total-value">
<span>{{cost.formatted}}</span>
</div>
</li>
{{/unless}}
{{/each}}
{{#if cart.discount }}
<li class="cart-total">
Expand Down Expand Up @@ -104,4 +106,16 @@
{{/or}}
</div>
</li>
{{#each cart.taxes}}
{{#if included}}
<li class="cart-total">
<div class="cart-total-label">
<strong>{{concat name (lang 'cart.included_in_total')}}:</strong>
</div>
<div class="cart-total-value">
<span>{{cost.formatted}}</span>
</div>
</li>
{{/if}}
{{/each}}
</ul>

0 comments on commit 9686174

Please sign in to comment.