{"enrichment":{"faq":[{"a":"Cart Logic provides step-by-step guidance for implementing core cart operations across multiple platforms. For Shopify, WooCommerce, and BigCommerce, you'll learn built-in configuration methods. For custom or headless storefronts, Cart Logic covers Storefront API integration patterns that let you add items to cart, remove line items, and update quantities programmatically. Each approach includes code examples and best practices for reliable state management.","q":"How to build shopping cart add remove update functionality?"},{"a":"Cart Logic covers cart persistence strategies to maintain items across page loads and devices. The skill explains session storage, local storage, and server-side persistence techniques so your customers' carts survive navigation, browser refresh, and device switching. You'll learn which persistence method works best for your architecture\u2014whether you're using a platform's native cart or building a custom implementation with API integration.","q":"How do I keep cart items after page reload?"},{"a":"Cart Logic teaches the merge logic required when a guest customer creates a cart, then later registers or logs in. The skill covers identifying guest and registered user carts, combining line items without duplication, and syncing the merged state back to your platform. You'll find patterns for Shopify, WooCommerce, BigCommerce, and headless implementations using Storefront APIs.","q":"How does cart-logic handle merging guest carts when users log in?"},{"a":"Yes. Cart Logic is designed for headless and custom storefronts using Storefront APIs. The skill walks through API-driven cart operations, state management without a built-in admin interface, and best practices for building a robust ecommerce cart system from scratch. You'll learn how to handle line items, persistence, guest-to-registered merges, and multi-device synchronization in your custom frontend.","q":"Can I use cart-logic for a headless or custom storefront?"},{"a":"Cart Logic includes troubleshooting guidance for cart data loss and session management issues. The skill explains common causes\u2014missing persistence configuration, session timeout, or API sync failures\u2014and provides fixes for each platform. You'll learn recovery strategies, proper session storage setup, and how to validate cart state across page transitions to prevent abandonment.","q":"What should I do if cart state is lost on navigation?"},{"a":"Cart Logic is released under the MIT license, making it free to use, modify, and distribute in both open-source and commercial projects with minimal restrictions.","q":"Is cart-logic available under an open-source license?"}],"shadow_tags":["cart-management","session-storage","cross-device-sync","guest-to-account","inventory-validation","headless-commerce","cart-persistence","checkout-flow","state-preservation","ecommerce-backend"],"summary_rewrite":"Cart Logic guides you through implementing core cart functionality\u2014adding, removing, and updating items\u2014on your platform of choice. It covers built-in cart configuration for Shopify, WooCommerce, and BigCommerce, plus custom implementations for headless storefronts using Storefront APIs. Learn to persist carts across sessions and devices, merge guest carts when customers log in, and optimize key UX behaviors that drive conversion."},"files":[{"bytes":10253,"path":"skills/payments-checkout/cart-logic/SKILL.md","sha256":"e022412bc995b1371a71e7c4e133b31ec7fa4ff6c178b10d82123c0a6ccc6068","url":"https://skillfed.io/files/finsilabs/awesome-ecommerce-skills/cart-logic/ed19aad4/SKILL.md"}],"id":"finsilabs/awesome-ecommerce-skills/cart-logic","links":{"html":"https://skillfed.io/finsilabs/awesome-ecommerce-skills/cart-logic","md":"https://skillfed.io/finsilabs/awesome-ecommerce-skills/cart-logic.md","repo":"https://github.com/finsilabs/awesome-ecommerce-skills"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":6,"language":"JavaScript","last_updated":"2026-03-13","license":"MIT","name":"cart-logic","publisher":"finsilabs","stars":40},"relations":{"similar":[{"id":"finsilabs/awesome-ecommerce-skills/shopify-storefront-api"},{"id":"finsilabs/awesome-ecommerce-skills/product-page-design"},{"id":"finsilabs/awesome-ecommerce-skills/magento-graphql"},{"id":"finsilabs/awesome-ecommerce-skills/cart-abandonment-recovery"},{"id":"finsilabs/awesome-ecommerce-skills/product-bundles-kits"},{"id":"finsilabs/awesome-ecommerce-skills/live-chat-commerce"},{"id":"finsilabs/awesome-ecommerce-skills/wishlist-save-for-later"},{"id":"finsilabs/awesome-ecommerce-skills/volume-pricing"},{"id":"finsilabs/awesome-ecommerce-skills/checkout-flow-optimization"},{"id":"finsilabs/awesome-ecommerce-skills/responsive-storefront"}]},"slug":{"owner":"finsilabs","repo":"awesome-ecommerce-skills","skill":"cart-logic"},"version":"ed19aad4"}
