@staging-apiplus/ecommerce
v0.0.2
Published
Sell online: connect your store and manage products, orders and payments.
Readme
@staging-apiplus/ecommerce
Sell online: connect a QuickPage store to the site and manage products, orders and payments.
A first-party QuickPage app (app.kind: "app"). It supports the site surface: designers install it per site from Settings → Apps. The version lives in package.json and src/package.ts; keep them equal.
What it adds
- Connection:
commerce-store. Platform-only; the host runs connect, create and unlink. - UI: the E-commerce card in the app detail: the connected store with its avatar, Go to store and Unlink store, or an Add store popover that lists the stores to connect (click one to connect it) and creates a new store. The create-store dialog collects the business name, country, currency and, optionally, the address, invoice details (company name, tax ID) and phone, with
phoneandprovincefields the host renders with its country-aware pickers. - Setup guide: connect the store, enable sign-in, then create the product and cart pages.
- Requires:
@staging-apiplus/platform-login(>=0.0.1), installed together with the app.
Permissions
commerce.store (edit), site.pages (edit), site.login is granted through the required Platform login app. Site permissions are derived from the manifest; the app declares none.
Commands
pnpm run validate # apps validate (checks the manifest)
pnpm run build # apps build → dist/Publishing
This app is published to the @staging-apiplus npm scope with make publish-code-packages-npm from the repository root. It reaches the dev registry (Verdaccio, served through the mock registry gateway) with make publish-code-packages-dev from the repository root, or pnpm run publish:dev in this folder. pnpm run publish:npm (apps publish) is the production path.
Source: src/package.ts (manifest), src/configure_ui.ts (UI, setup and messages in en and th).
