What problem does it solve?
Provides a practical, repeatable workflow to build and customize Shopify Online Store 2.0 themes so merchants can configure layouts without developer edits and stores load quickly for shoppers.
Core Features & Use Cases
- Theme scaffolding & workflow: Guidance for using Shopify CLI, theme directory structure, and Online Store 2.0 JSON templates to initialize and develop themes.
- Merchant-configurable sections & blocks: Patterns for building sections with blocks and schema presets so non-technical merchants can add, remove, and reorder content in the theme editor.
- Responsive media, performance & AJAX: Best practices for responsive image_tag usage, critical CSS inlining, deferred non-critical assets, and an AJAX cart pattern that posts to /cart/add.js, fetches /cart.js, and updates header badges.
- Use Case: Create a product page with dynamic blocks (title, price, variant picker, buy buttons, description), wire it via a product.json template, and implement a cart manager to provide seamless add-to-cart behavior without full page reloads.
Quick Start
Initialize a new theme with the Shopify CLI, add a product section with schema and presets, and implement an assets/cart.js that uses /cart/add.js and fetches /cart.js to update the header badge.