Next Commerce
Data AttributesCheckout ReviewReference

Attributes

Container

AttributeRequiredDescription
data-next-enhancer="checkout-review"yesMarks the container. All review fields inside it are activated by the same enhancer instance

Review Field

AttributeRequiredDescription
data-next-checkout-review="<fieldName>"yesDisplay the value of <fieldName> from the checkout store
data-next-formatnoFormat the value. See format types below
data-next-fallbacknoText to display when the field is empty. Adds the next-review-empty CSS class

Available Field Names

FieldDescription
emailCustomer email
fnameFirst name
lnameLast name
phonePhone number (raw digits)
address1Street address
address2Apartment / suite / unit
cityCity
provinceState / province
postalZIP / postal code
countryCountry code (e.g. US)

Nested fields can be accessed with dot notation, e.g. data-next-checkout-review="shippingMethod.price".


Format Types

FormatField usedWhat it doesExample output
(default)AnyRenders the raw value as text[email protected]
textAnySame as default[email protected]
namefnameCombines fname + lnameJohn Doe
addressaddress1Combines address1, address2, city, province, postal, and the country (code converted to full name)123 Main St, Apt 4B, Springfield IL 62701, United States
phonephoneFormats raw digits as (NNN) NNN-NNNN(555) 123-4567
currencyAny numericFormats as currency$9.99

For name and address, point the field at the anchor (fname or address1) — the enhancer pulls the related fields automatically.


CSS Classes

ClassApplied when
next-review-emptyThe field is empty or rendering its data-next-fallback value
.next-review-empty {
  color: #999;
  font-style: italic;
}

Notes

  • The enhancer subscribes to checkoutStore. Review fields update live when the underlying data changes.
  • Country codes are auto-converted to full country names in the address format (e.g. USUnited States).
  • The address2 line is omitted from the address format when empty.

On this page