Populated cart
- Section
- cart
- Beauty
- Shopify Liquid ready
- 8.2 KB JS
Line items, gift note, upsell row, summary and checkout. Part of Lather, a beauty theme for men's grooming (bold, playful), in the free, open-source Blocko library.
Open live demo Open in library
Features
- Ships 8.2 KB of vanilla JavaScript (
blko-cart-drawer.js,blko-cart-checkout.js), registered as an idempotent Custom Element. - Ships as Shopify Liquid, with 28 merchant settings in the Theme Editor.
- Category
cart. Made for beauty stores. - Quantity, remove and upsell-add call /cart/change.js and /cart/add.js from the group module; the cart form posts to /cart with checkout.
Used in pages
This section appears in 1 page template in Lather:
Preview

Use it with your agent
Paste this one-line prompt into any coding agent. It asks where the section should go before it changes anything.
Use the Blocko library (https://github.com/blockoai/blocko) or its Claude Code plugin (claude plugin marketplace add blockoai/blocko && claude plugin install blocko-sections@blocko) to implement the section "Populated cart" in my project. Id `cart-checkout-cart-main`, theme `lather`. Live demo: https://demo.blocko.ai/html/lather/sections/cart--cart-checkout-cart-main.html. Shopify bundle: sections/lather/cart-checkout-cart-main/ in the repo. Before changing any code, ask me where it should go: which project/theme, which page or template, and the position (e.g. after the hero). Also ask if the target is a Shopify theme or plain HTML. Skip anything I've already said. Restate the plan and wait for my OK, then follow the repo's AGENTS.md. Keep the blko- class prefix and CSS tokens (with fallbacks), make custom elements idempotent, and don't touch unrelated code. Run `shopify theme check` for Shopify targets. Finish by telling me how to add/arrange it (Theme Editor steps for Shopify).Connected to the Blocko MCP server (https://blocko.ai/mcp)? Ask your agent to run get_item for lather/cart-checkout-cart-main, then get_item_source and get_install_guide. Connect your agent.