Documentation Index
Fetch the complete documentation index at: https://docs.khaime.com/llms.txt
Use this file to discover all available pages before exploring further.
Khaime Cart Page
The[khaime_cart] shortcode renders a full Khaime-powered cart page. It shares the same cart state as the storefront’s slide-out drawer, so items stay in sync across both.
This shortcode ships inside the Khaime Storefront plugin (v2.0.0+). No separate install.
When you need this
By default the storefront uses an overlay drawer for the cart. Use the cart page when you want:- A standalone
/cartpage that shoppers can bookmark or link to. - A pre-checkout review step instead of the drawer.
Basic Usage
Wiring it to the storefront
The cart page only becomes the destination of the cart icon when the storefront is configured to use it. Set Cart display in Settings → Khaime (or passcart_display on [khaime_storefront]) to one of:
| Mode | What happens |
|---|---|
drawer (default) | Cart icon opens the slide-out drawer. Cart page unused. |
page | Cart icon navigates to the Cart Page URL. No drawer. |
The legacy
both mode was retired in v2.0.0. Stores still set to both are automatically mapped to page on save.Setup
- Create a WordPress page with slug
cart(URL:/cart). - Paste
[khaime_cart]into the page content. - In Settings → Khaime, set Cart display to
page. - Ensure Cart Page URL matches the page slug (default
/cart).
Full Example
Attributes
| Attribute | Description | Default |
|---|---|---|
continue_url | ”Continue shopping” destination shown in the empty state | (from settings → Store Page URL) |
empty_message | Text shown when the cart has no items | Your cart is empty. |
Theme is inherited from your merchant bootstrap config. There’s no per-shortcode theme override — styling stays consistent with the storefront.
Behavior
- Live sync — items added/removed anywhere (drawer, storefront product cards, cart page) update everywhere the cart is visible.
- Empty state — shows the
empty_messagewith a “Continue shopping” link routing tocontinue_url. - Checkout — “Proceed to checkout” opens the same checkout modal used by the drawer.
CSS Customization
Cart surfaces useks-cart-* class names:
