Add EasyParcel courier booking and clearer back buttons
- Connect each store to the merchant's own EasyParcel account (guided setup in Settings, sign in and allow)
- Pickup address and usual parcel size in Settings
- On a paid order: compare courier prices, book one, print the label, tracking number filled in and shopper emailed
- Prices match what EasyParcel charges; low-credit and other EasyParcel errors shown in plain words
- Tested with the EasyParcel sandbox: real prices and a real booking with label
- Clear "Back" buttons at the top of every store page, including add and edit pages
- New easyparcel_accounts table and pickup/shipment columns (run php artisan migrate)
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.
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>