E-Commerce
Cart Summary / Order Totals
Order totals block listing subtotal, shipping, tax and discount rows that only render when passed, plus a grand total.
$ velocityx add cart-summary Built for astro.
Full docs for Cart Summary / Order Totals →
Needs a licence key —
subscribe here, then
velocityx loginonce.
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| subtotal | number | Yes | ||
| shipping | number | null | No | null | |
| tax | number | No | ||
| discount | number | No | ||
| total | number | Yes | ||
| currency | string | No | 'AUD' | |
| locale | string | No | 'en-AU' | |
| className | string | No | '' |
File this creates
The CLI writes this path into your project, relative to its root — nothing else moves.
components/velocity/cart-summary/CartSummary.astro Using the Cart Summary / Order Totals component
Install it with velocityx add cart-summary.
The CLI writes the source straight into your project — no runtime dependency, no registry
lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.
Related components
More from E-Commerce.
Responsive image-and-label tile grid linking into catalogue categories, with an optional item count.
astroCentred placeholder for an empty cart with icon, copy and a continue-shopping CTA.
astroPost-checkout success panel with order number, delivery estimate, line items and total paid.
astroHorizontal (vertical on mobile) step tracker for order lifecycle stages, with a dedicated cancelled-order state.
astro