Add post-purchase subscription upsell extension with admin settings#40
Open
CaptainDiego wants to merge 5 commits intomainfrom
Open
Add post-purchase subscription upsell extension with admin settings#40CaptainDiego wants to merge 5 commits intomainfrom
CaptainDiego wants to merge 5 commits intomainfrom
Conversation
Adds a post-purchase checkout extension that offers customers a subscription upsell after completing their purchase. The offer product, discount, and selling plan are configurable from the app's admin settings page. Key changes: - Post-purchase UI extension with one-time and subscription options - Admin settings section for configuring the upsell offer (product picker, discount %, selling plan selector, enable/disable toggle) - API routes (/api/offer, /api/sign-changeset) that read config from Prisma and fetch product data from the Admin API at runtime - PostPurchaseOffer Prisma model for lean config storage - Shop domain extracted from JWT token for checkout-scoped API routes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3e3a05e to
73ed98c
Compare
- Replace hardcoded tunnel URL with process.env.SHOPIFY_APP_URL - Add shopify.app.*.toml to .gitignore (generated by shopify app config link) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Disable save button when no changes have been made (dirty state tracking) - Disable form fields when upsell is toggled off - Fetch selling plans immediately on product pick via Admin API - Show spinner while loading selling plans - Lock selling plan dropdown for products without selling plans - Add dividers between sections and better empty state Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace unreliable shopify: direct API with a Remix fetcher calling a new /app/selling-plans loader. Selling plans now load immediately when a product is selected without requiring a save+reload. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Key changes
extensions/post-purchase-ui/) with support for one-time and subscription purchase options, buyer consent, and dynamic pricing/api/offer,/api/sign-changeset) that read config from Prisma and fetch product/variant/selling plan details from the Admin API viaunauthenticated.admin(shop)input_data.shop.domain) for checkout-scoped API routesTest plan
🤖 Generated with Claude Code