- Announcement bar: free shipping and running discounts by themselves, plus merchant lines
- Settings card to add lines or switch the bar off
- Trust row section: shipping, payment and WhatsApp from real settings, custom points
- AI adds a trust row under the hero; plan checker supports "required if" rules
- Full-width and split photo heroes; words-only kept
- Hero box in Design tab: layout, product photo or uploaded banner
- Automatic hero photo from newest product photo
- Second photo on hover, letter placeholders, AI told about photos
Add automatic discounts and AI product descriptions
- Discounts with no code: min items or spend, all or chosen products, dates
- One discount per order: the better of code and automatic discount
- Cart nudge, product page note, name on order, Stripe and email
- Chat commands can create automatic discounts and write product descriptions
Add chat commands for products, discounts and bundles
- AI proposes store changes from the chat; nothing changes until Confirm
- Same rules as the forms; all or nothing on confirm
- Shared discount code rules
- Fix flaky cart test
- Bundles of other products at one price, stock taken from the items inside
- "What's inside" on the product page
- Paying lowers each item's stock; checkout checks shared stock
- Order page shows what to pack
- Up to 2 options per product, each combination with its own price and stock
- Option buttons on the product page; sold-out choices crossed out
- Variant shown in cart, checkout, Stripe, orders and email
- Paying lowers the stock of the chosen variant
- Discounts tab: percent or fixed off, min spend, dates, usage limit
- Code box in cart; discount on products only, not shipping
- Orders save code and amount; Stripe shows it as a coupon
- Use counted only when the order is paid
Link the featured product section to a real product
- A featured_product section can hold productSlug, pointing at one of
the store's active products. The store then shows its real name,
price, photo, sold-out state and page link. Unlinked sections hide
the AI's example price once the store has real products.
- "Featured product" picker on the Design tab.
- The AI gets the store's product list and can link a product by chat;
a made-up product name is sent back to the AI to fix.
- Chat edits that leave the design unchanged are marked and say so,whatever the AI's reply claims.
Add shipping fees, mark as shipped and WhatsApp links
Step 7 part 1:
- Store Settings tab with WhatsApp number and flat shipping fees for
Peninsular and East Malaysia, plus optional free shipping.
- Shipping fee behind a ShippingProvider interface; added at checkout,
sent to Stripe as its own line, shown on the thank-you page and email.
- Mark as shipped with courier and tracking number; the shopper is
emailed once, in the store language.
- WhatsApp chat button on the store and wa.me links on order pages.
- Checkout and cart messages in Bahasa Malaysia; Malaysian-only phone
numbers for WhatsApp.
- Fix live-store menu links on pages other than home.
Add subscription billing with free trial and plan limits
Step 6:
- Plans in a database table (prices in sen); 14-day free trial for
every new account.
- Stripe subscriptions behind a SubscriptionGateway interface:
subscribe, switch plan, cancel at period end, undo.
- Billing page with usage meters and plan cards; sidebar link; trial
notice on the dashboard.
- Limits enforced for stores, regenerations and AI edits. With no plan,
AI, new stores and publishing are refused and live stores go offline.
- The Stripe webhook also keeps subscriptions in step.
Tests: 164 pass (14 new). Verified with a real Stripe test
subscription: subscribe, cancel, undo.
Step 5:
- Publish, publish changes and take offline, with a panel on the store
page showing the live address.
- Live stores open at <store name>.<domain> with no login. Shoppers see
a saved copy of the design (published_plan); products stay live.
- One Storefront class decides live or preview, so the same controllers
and pages serve both.
- On a store's address only store pages exist; the dashboard and login
give "not found".
- More reserved store names; STOREFRONT_DOMAIN setting.
Add cart, Stripe checkout, orders and order confirmation email
Step 4 part 2:
- Session cart per store with stock limits and self-correction.
- Checkout: shopper details, order snapshot, Stripe hosted payment page
behind a PaymentGateway interface, return-page and webhook confirmation.
- Orders tab for the merchant and a confirmation email in the store language.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Add multi-page store plans, products and storefront shop pages
Step 4 part 1:
- Store plan version 2: shared header and footer plus a list of pages,
with an upgrader and a data migration for existing stores.
- Products with photos, prices in sen, stock and draft/active status.
- Storefront Shop page and product page; the home page product section
shows real products with a View all link.
- AI prompts and chat edits updated for the new format.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Split settings into a shared .env and a private .env.local
.env is now tracked and holds only basic, non-secret settings; secrets
and all AI settings are blank. .env.local is ignored, holds everything
needed to run, and is loaded instead of .env when it exists.
Removes .env.example.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Add AI store generation, chat edits and plan limits
Step 3: swappable AI layer (Claude via the official SDK, DeepSeek via an
OpenAI-compatible driver, and a fake provider), full store generation,
chat edits, background job with a progress screen, usage counting and
limits per plan. Removes the temporary sample-design button.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>