This documentation provides a complete implementation guide for building a membership program system within a Shopify cart using Remix and Hydrogen framework. The membership configuration is stored in Shopify metafields and can be dynamically fetched to configure pricing, benefits, and checkout behavior.
| Technology | Purpose | Version |
|---|---|---|
| Remix | Full-stack web framework | Latest |
| Shopify Hydrogen | Commerce components | 2.0+ |
| TypeScript | Type safety | 5.0+ |
| React | UI library | 18+ |
| Tailwind CSS | Styling | 3.0+ |
All membership configuration is stored in Shopify metafields. Fetch these settings at the beginning of your app to configure the membership program dynamically.
# GraphQL query to fetch plan settings and widget configurationquery getPlanSettings {
shop {
planSettings: metafield(namespace: "exison", key: "exison_plan_settings") {
value
}
widgetConfig: metafield(namespace: "exison", key: "exison_widget_cart_page") {
value
}
widgetMemberConfig: metafield(namespace: "exison", key: "exison_widget_cart_page_member") {
value
}
}
}