Props should be passed as attributes to the component element.
string
The path to the checkout page.Defaults to /checkout
string
The message to display when the cart is empty.Defaults to You have nothing in your cart.
string
The path to the shop page.Defaults to /shop
Features
Free Shipping Notification
The cart can display a progress message showing how much more a customer needs to spend to qualify for free shipping. This is configured in your web component settings, with a display threshold and a message for each market. Use {amount} in the message for what’s left to spend.The amount remaining is measured on the goods total after discounts, matching how the shipping method’s minimum order value is applied. The banner is hidden once there’s nothing left to add, so it never tells a customer they’re £0.00 away.
Checkout Requirements
If you’ve set a minimum item count or full-case requirement, the cart tells the customer what’s missing and won’t let them continue until it’s met. A customer who reaches checkout below the minimum is sent back to the cart.
Quantities
Each line has a quantity stepper. It stops at a product’s per-customer limit and says Max followed by the number per customer once it gets there.A Fixed package is one line in the cart, and its stepper changes how many bottles it holds, between the package’s minimum and maximum. Those bottles count towards the cart’s item total and any checkout requirements.
Items Removed by a Market Change
When a shopper switches market and something in their basket isn’t sold in the new one, it’s taken out, and both the market switcher and the cart say what went (see how a customer’s market is chosen). The cart’s note stays until the basket changes. The wording is yours to set under Item Removed on Market Change.
Related Products
Display product recommendations within the cart to encourage additional purchases. Configure the section title, number of products, and toggle visibility from your web component settings.
Container Styling
The cart component supports optional background colour and border styling, configurable from your web component settings.
Styling
The following parts are available to style the cart component:
The containing <div> around the cart.
The checkout button element.
The <img> element that contains the product image.
The containing <div> around the product image.
The “continue shopping” link element.
The quantity stepper on a line.
The stepper’s minus button.
The stepper’s plus button.
The quantity shown between the stepper’s buttons.
How often a subscription line is billed.
The free shipping notification.
The <div> that contains the empty cart message.
The pulsating loading elements that are shown when the cart is loading.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Marzipan Docs","colors":{"primary":"#000000","light":"#000000","dark":"#000000"},"logo":{"light":"https://cdn.marzipan.cloud/0/docs/logo.png","dark":"https://cdn.marzipan.cloud/0/docs/logo-white.png"},"favicon":"https://mintcdn.com/marzipan/WRvsvA73Q8TiYFFy/favicon.svg?fit=max\u0026auto=format\u0026n=WRvsvA73Q8TiYFFy\u0026q=85\u0026s=54cf837e03c64dd8f8ce6c8d427ca436","appearance":{"default":"light"},"navbar":{"links":[],"primary":{"type":"button","label":"Login","href":"https://app.marzipan.co/login"}},"footer":{"socials":{"website":"https://marzipan.co","linkedin":"https://linkedin.com/company/marzipan"}},"fonts":{"heading":{"family":"Inter","weight":600,"source":"https://marzipan-cloud.b-cdn.net/0/fonts/Inter/InterVariable.woff2","format":"woff2"},"body":{"family":"Inter","weight":400,"source":"https://marzipan-cloud.b-cdn.net/0/fonts/Inter/InterVariable.woff2","format":"woff2"}},"icons":{"library":"lucide"},"integrations":{"fathom":{"siteId":"MVCBOLNH"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"marzipan","hasAudioNarration":false,"actualSubdomain":"marzipan","customDomains":["docs.marzipan.co"],"gitSource":{"type":"github","owner":"usemarzipan","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae9e5a6599afdae0f29e49b","clientVersion":"0.0.4160","searchFilterCounts":[{"language":"default","tag":"Documentation","count":82},{"language":"default","tag":"API Reference","count":74},{"language":"default","tag":"Account","count":26},{"language":"default","tag":"Subscriptions","count":20},{"language":"default","tag":"Events","count":17},{"language":"default","tag":"Settings","count":13},{"language":"default","tag":"Web Components","count":12},{"language":"default","tag":"CMS","count":10},{"language":"default","tag":"Orders","count":9},{"language":"default","tag":"Products","count":9}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"web-components/cart","slug":"/web-components/cart","pageMetadata":{"title":"Cart","description":"The Cart component displays the shopper's cart.","href":"/web-components/cart"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"The Cart component displays the shopper’s cart.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`3`,id:`code`,children:`Code`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`marzipan-cart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`marzipan-cart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`props`,children:`Props`}),`\n`,_jsx(_components.p,{children:`Props should be passed as attributes to the component element.`}),`\n`,_jsxs(ResponseField,{name:`checkout-path`,type:`string`,id:`param-checkout-path`,children:[_jsx(_components.p,{children:`The path to the checkout page.`}),_jsxs(_components.p,{children:[`Defaults to `,_jsx(_components.code,{children:`/checkout`})]})]}),`\n`,_jsxs(ResponseField,{name:`empty-cart-message`,type:`string`,id:`param-empty-cart-message`,children:[_jsx(_components.p,{children:`The message to display when the cart is empty.`}),_jsxs(_components.p,{children:[`Defaults to `,_jsx(_components.code,{children:`You have nothing in your cart.`})]})]}),`\n`,_jsxs(ResponseField,{name:`shop-path`,type:`string`,id:`param-shop-path`,children:[_jsx(_components.p,{children:`The path to the shop page.`}),_jsxs(_components.p,{children:[`Defaults to `,_jsx(_components.code,{children:`/shop`})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`features`,children:`Features`}),`\n`,_jsx(Heading,{level:`4`,id:`free-shipping-notification`,children:`Free Shipping Notification`}),`\n`,_jsxs(_components.p,{children:[`The cart can display a progress message showing how much more a customer needs to spend to qualify for free shipping. This is configured in your `,_jsx(_components.a,{href:`/web-components/customisation#free-shipping-notification`,children:`web component settings`}),`, with a display threshold and a message for each market. Use `,_jsx(_components.code,{children:`{amount}`}),` in the message for what’s left to spend.`]}),`\n`,_jsxs(_components.p,{children:[`The amount remaining is measured on the goods total after discounts, matching how the `,_jsx(_components.a,{href:`/settings/shipping#conditions`,children:`shipping method’s minimum order value`}),` is applied. The banner is hidden once there’s nothing left to add, so it never tells a customer they’re £0.00 away.`]}),`\n`,_jsx(Heading,{level:`4`,id:`checkout-requirements`,children:`Checkout Requirements`}),`\n`,_jsxs(_components.p,{children:[`If you’ve set a `,_jsx(_components.a,{href:`/settings/cart-and-checkout#checkout-requirements`,children:`minimum item count or full-case requirement`}),`, the cart tells the customer what’s missing and won’t let them continue until it’s met. A customer who reaches checkout below the minimum is sent back to the cart.`]}),`\n`,_jsx(Heading,{level:`4`,id:`quantities`,children:`Quantities`}),`\n`,_jsxs(_components.p,{children:[`Each line has a quantity stepper. It stops at a product’s per-customer limit and says `,_jsx(_components.strong,{children:`Max`}),` followed by the number `,_jsx(_components.strong,{children:`per customer`}),` once it gets there.`]}),`\n`,_jsxs(_components.p,{children:[`A Fixed `,_jsx(_components.a,{href:`/subscriptions/packages`,children:`package`}),` is one line in the cart, and its stepper changes how many bottles it holds, between the package’s minimum and maximum. Those bottles count towards the cart’s item total and any `,_jsx(_components.a,{href:`#checkout-requirements`,children:`checkout requirements`}),`.`]}),`\n`,_jsx(Heading,{level:`4`,id:`items-removed-by-a-market-change`,children:`Items Removed by a Market Change`}),`\n`,_jsxs(_components.p,{children:[`When a shopper switches market and something in their basket isn’t sold in the new one, it’s taken out, and both the market switcher and the cart say what went (see `,_jsx(_components.a,{href:`/settings/markets#how-a-customers-market-is-chosen`,children:`how a customer’s market is chosen`}),`). The cart’s note stays until the basket changes. The wording is yours to set under `,_jsx(_components.a,{href:`/web-components/customisation#item-removed-on-market-change`,children:`Item Removed on Market Change`}),`.`]}),`\n`,_jsx(Heading,{level:`4`,id:`related-products`,children:`Related Products`}),`\n`,_jsxs(_components.p,{children:[`Display product recommendations within the cart to encourage additional purchases. Configure the section title, number of products, and toggle visibility from your `,_jsx(_components.a,{href:`/web-components/customisation#related-products`,children:`web component settings`}),`.`]}),`\n`,_jsx(Heading,{level:`4`,id:`container-styling`,children:`Container Styling`}),`\n`,_jsxs(_components.p,{children:[`The cart component supports optional background colour and border styling, configurable from your `,_jsx(_components.a,{href:`/web-components/customisation#container-styling`,children:`web component settings`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`styling`,children:`Styling`}),`\n`,_jsx(_components.p,{children:`The following parts are available to style the cart component:`}),`\n`,_jsx(ResponseField,{name:`--cart-container`,id:`param-cart-container`,children:_jsxs(_components.p,{children:[`The containing `,_jsx(_components.code,{children:`\u003cdiv>`}),` around the cart.`]})}),`\n`,_jsx(ResponseField,{name:`--cart-checkout-button`,id:`param-cart-checkout-button`,children:_jsx(_components.p,{children:`The checkout button element.`})}),`\n`,_jsx(ResponseField,{name:`--cart-image`,id:`param-cart-image`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`\u003cimg>`}),` element that contains the product image.`]})}),`\n`,_jsx(ResponseField,{name:`--cart-image-container`,id:`param-cart-image-container`,children:_jsxs(_components.p,{children:[`The containing `,_jsx(_components.code,{children:`\u003cdiv>`}),` around the product image.`]})}),`\n`,_jsx(ResponseField,{name:`--cart-shopping-link`,id:`param-cart-shopping-link`,children:_jsx(_components.p,{children:`The “continue shopping” link element.`})}),`\n`,_jsx(ResponseField,{name:`--cart-quantity-container`,id:`param-cart-quantity-container`,children:_jsx(_components.p,{children:`The quantity stepper on a line.`})}),`\n`,_jsx(ResponseField,{name:`--cart-quantity-minus`,id:`param-cart-quantity-minus`,children:_jsx(_components.p,{children:`The stepper’s minus button.`})}),`\n`,_jsx(ResponseField,{name:`--cart-quantity-plus`,id:`param-cart-quantity-plus`,children:_jsx(_components.p,{children:`The stepper’s plus button.`})}),`\n`,_jsx(ResponseField,{name:`--cart-quantity-value`,id:`param-cart-quantity-value`,children:_jsx(_components.p,{children:`The quantity shown between the stepper’s buttons.`})}),`\n`,_jsx(ResponseField,{name:`--cart-item-billing-frequency`,id:`param-cart-item-billing-frequency`,children:_jsx(_components.p,{children:`How often a subscription line is billed.`})}),`\n`,_jsx(ResponseField,{name:`--free-shipping-banner`,id:`param-free-shipping-banner`,children:_jsx(_components.p,{children:`The free shipping notification.`})}),`\n`,_jsx(ResponseField,{name:`--empty-cart-message`,id:`param-empty-cart-message-1`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`\u003cdiv>`}),` that contains the empty cart message.`]})}),`\n`,_jsx(ResponseField,{name:`--loading-colour`,id:`param-loading-colour`,children:_jsx(_components.p,{children:`The pulsating loading elements that are shown when the cart is loading.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Cart","description":"The Cart component displays the shopper's cart.","href":"/web-components/cart"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Code","slug":"code","depth":3,"children":[]},{"title":"Props","slug":"props","depth":3,"children":[]},{"title":"Features","slug":"features","depth":3,"children":[]},{"title":"Free Shipping Notification","slug":"free-shipping-notification","depth":4,"children":[]},{"title":"Checkout Requirements","slug":"checkout-requirements","depth":4,"children":[]},{"title":"Quantities","slug":"quantities","depth":4,"children":[]},{"title":"Items Removed by a Market Change","slug":"items-removed-by-a-market-change","depth":4,"children":[]},{"title":"Related Products","slug":"related-products","depth":4,"children":[]},{"title":"Container Styling","slug":"container-styling","depth":4,"children":[]},{"title":"Styling","slug":"styling","depth":3,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"marzipan","siteName":"Marzipan Docs","title":"Cart - Marzipan Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-03T08:53:56.758Z","originalFileLocation":"web-components/cart.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"The Cart component displays the shopper\u0026#x27;s cart.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Marzipan Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/marzipan/YJCGm-AHRwNG4ZIl/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/marzipan/YJCGm-AHRwNG4ZIl/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/marzipan/YJCGm-AHRwNG4ZIl/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/marzipan/YJCGm-AHRwNG4ZIl/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/marzipan/YJCGm-AHRwNG4ZIl/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/marzipan/YJCGm-AHRwNG4ZIl/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/marzipan/YJCGm-AHRwNG4ZIl/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/marzipan/YJCGm-AHRwNG4ZIl/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/marzipan/YJCGm-AHRwNG4ZIl/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Cart - Marzipan Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"The Cart component displays the shopper\u0026#x27;s cart.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Marzipan Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.marzipan.co/web-components/cart\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://marzipan.mintlify.site/_mintlify/api/og/v2?division=Components\u0026amp;title=Cart\u0026amp;description=The+Cart+component+displays+the+shopper%27s+cart.\u0026amp;theme=07416d3c3a571a57bfa42947\u0026amp;signature=8084525aafb6fb743cc24df1e34a8e95c2efef9867c5ed992b5ef996b4eb50d4\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Cart - Marzipan Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The Cart component displays the shopper\u0026#x27;s cart.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://marzipan.mintlify.site/_mintlify/api/og/v2?division=Components\u0026amp;title=Cart\u0026amp;description=The+Cart+component+displays+the+shopper%27s+cart.\u0026amp;theme=07416d3c3a571a57bfa42947\u0026amp;signature=8084525aafb6fb743cc24df1e34a8e95c2efef9867c5ed992b5ef996b4eb50d4\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/marzipan/YJCGm-AHRwNG4ZIl/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Marzipan Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.marzipan.co/web-components/cart\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/web-components/cart.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.marzipan.co/#organization\",\"name\":\"Marzipan Docs\",\"url\":\"https://docs.marzipan.co\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://cdn.marzipan.cloud/0/docs/logo.png\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.marzipan.co#website\",\"name\":\"Marzipan Docs\",\"url\":\"https://docs.marzipan.co\",\"publisher\":{\"@id\":\"https://docs.marzipan.co/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.marzipan.co/web-components/cart#webpage\",\"url\":\"https://docs.marzipan.co/web-components/cart\",\"name\":\"Cart\",\"description\":\"The Cart component displays the shopper's cart.\",\"dateModified\":\"2026-11-03T08:53:56.758Z\",\"isPartOf\":{\"@id\":\"https://docs.marzipan.co#website\"},\"breadcrumb\":{\"@id\":\"https://docs.marzipan.co/web-components/cart#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.marzipan.co/web-components/cart#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Components\",\"item\":\"https://docs.marzipan.co/web-components/account\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cart\",\"item\":\"https://docs.marzipan.co/web-components/cart\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.marzipan.co/web-components/cart#article\",\"headline\":\"Cart\",\"name\":\"Cart\",\"description\":\"The Cart component displays the shopper's cart.\",\"url\":\"https://docs.marzipan.co/web-components/cart\",\"mainEntityOfPage\":{\"@id\":\"https://docs.marzipan.co/web-components/cart#webpage\"},\"dateModified\":\"2026-11-03T08:53:56.758Z\",\"publisher\":{\"@id\":\"https://docs.marzipan.co/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.marzipan.co#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Marzipan Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Marzipan Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/web-components/cart.md","siteName":"Marzipan Docs","nav":{"global":null,"tabs":[{"tab":"Documentation","icon":"book","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","icon":"terminal","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"Web Components","icon":"puzzle","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/web-components/introduction"},{"title":"Customisation","href":"/web-components/customisation"},{"title":"Styling","href":"/web-components/styling"}]},{"group":"Components","pages":[{"title":"Account","href":"/web-components/account"},{"title":"Add to Cart","description":"The Add to Cart component is a call to action button that adds a product to the cart.","href":"/web-components/add-to-cart"},{"title":"Cart","href":"/web-components/cart"},{"title":"Cart Icon","description":"The cart icon component displays a cart icon and shows the number of items in the cart. It is ideal to be placed in the header of your website.","href":"/web-components/cart-icon"},{"title":"Checkout","href":"/web-components/checkout"},{"title":"Form","href":"/web-components/contact-form"},{"title":"Collection","href":"/web-components/collection"},{"title":"Product","href":"/web-components/product"}]},{"group":"Plugins","pages":[{"title":"WordPress Plugin","href":"/web-components/wordpress"}]}]},{"tab":"Changelog","icon":"history","pages":[{"title":"Changelog","href":"/changelog/2026"}]},{"tab":"Blog","icon":"square-library","href":"https://marzipan.co/blog"},{"tab":"Service status","icon":"radio-tower","href":"https://status.marzipan.co"}]},"basePath":"","title":"Cart - Marzipan Docs","buildId":"dpl_GRSyrvXT6FFTpZZTGz5iZPp3D2zE","deploymentId":"dpl_GRSyrvXT6FFTpZZTGz5iZPp3D2zE","dynamics":[],"chunks":[]}