Skip to content

Commit f0610a2

Browse files
committed
add cart.currency as display attribute missing from docs
1 parent e43a70c commit f0610a2

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

docs/campaign-cart/data-attributes/display.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ The primary attribute for showing dynamic values from cart, campaign, and order
4141
| `cart.discount` | Discount amount | "-$10.00" |
4242
| `cart.totalQuantity` | Total items in cart | "5" |
4343
| `cart.itemCount` | Unique items in cart | "3" |
44+
| `cart.currency` | Active currency for the cart | "USD" |
4445
| `cart.isEmpty` | Cart empty state | "true" or "false" |
4546
| `package.[id].price` | Package price | "$29.99" |
4647
| `package.[id].name` | Package display name | "Premium Bundle" |

docs/campaign-cart/guides/cart-summary-checkout.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Use on elements that should show a live cart value. Value updates when the cart
1717
| `cart.itemCount` | Number of distinct line items | `"3"` |
1818
| `cart.quantity` | Total quantity across all items | `"5"` |
1919
| `cart.count` | Alias for `cart.quantity` | `"5"` |
20+
| `cart.currency` | Active currency for the cart | `"USD"` |
2021
| `cart.discountCode` | First/single discount code | `"SAVE10"` |
2122
| `cart.discountCodes` | All discount codes | `"SAVE10, EXTRA"` |
2223
| `cart.couponCount` | Number of coupons applied | `"1"` |
@@ -260,6 +261,7 @@ Use this example as a starting point for a full checkout/cart summary UI that wi
260261
<p>Item count: <span data-next-display="cart.itemCount" data-format="integer">0</span></p>
261262
<p>Total quantity: <span data-next-display="cart.quantity" data-format="integer">0</span></p>
262263
<p>Count (alias): <span data-next-display="cart.count" data-format="integer">0</span></p>
264+
<p>Currency: <span data-next-display="cart.currency">USD</span></p>
263265
<p>Discount code: <span data-next-display="cart.discountCode">-</span></p>
264266
<p>Discount codes: <span data-next-display="cart.discountCodes">-</span></p>
265267
<p>Coupons applied: <span data-next-display="cart.couponCount" data-format="integer">0</span></p>
@@ -318,7 +320,7 @@ Use this example as a starting point for a full checkout/cart summary UI that wi
318320
<span data-next-display="cart.discounts">-$0.00</span>
319321
</div>
320322
<div class="line-item total">
321-
<span>Total:</span>
323+
<span>Total (<span data-next-display="cart.currency">USD</span>):</span>
322324
<span data-next-display="cart.total" data-format="currency">$0.00</span>
323325
</div>
324326
<div class="line-item">

0 commit comments

Comments
 (0)