sb_store
Runs fixed-order Store Builder setup actions: publish checkout, sync payment/delivery, seed forms, build shared header/footer, attach menus, overlays, cart, apps, and global sections.
Instructions
Run a store flow that must happen in a fixed order. action:"checkout" makes the order form, configures it, saves its fields with this store's real payment and delivery options, then creates and PUBLISHES the checkout page — /checkout 404s without all four. action:"checkout_sync" re-reads the store's payment and delivery methods into every existing order form and republishes the checkout page — run it after adding a shipping method or switching on a gateway, since the form keeps the options it was saved with. action:"form" seeds any of the platform's other form templates (login, register, forgot, reset, verify, contact, subscribe, booking, review and more) with its own field document, which is the part that cannot be guessed. action:"chrome" gives every page ONE shared header (footer:true — footer) built on a real site menu of page/category/product references: a desktop menu, a mobile drawer, cart and account icons — the gap sb_review reports as siteChrome. action:"menu" binds a menu node on the open page to the site's menu and resolves its links, the way the editor does. action:"overlay_attach" puts a pop-up on the open page (kind:"popup") or points a list-dataset at a quick-view panel (kind:"quickview", list_id), creating either from the platform's own seed when overlay_id is omitted, and re-reads the page afterwards as the editor must. action:"cart" creates the site's cart drawer from the editor's seed when it has none — without it every open_cart control opens nothing. action:"app" installs one of the platform's built-in apps (app_key) and creates the pages it needs that installing it does not — today only "courses" has any, from the platform's own scaffold; every other key installs with nothing further to build. action:"global_attach" puts an EXISTING shared section (global_id) on the open page and action:"global_detach" takes it off, writing the reference the platform reads and placing it in the band ROOT's child order demands — the answer for a page that is missing the site's header, where action:"chrome" would wrongly build a second one. Dry run returns the plan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | action:"overlay_attach" — which kind of overlay to attach | |
| name | No | action:"form" — the form's name in the merchant's list. action:"overlay_attach" with no overlay_id — the new pop-up/quick-view's name. | |
| action | Yes | ||
| footer | No | action:"chrome" — build a shared FOOTER instead of a header | |
| app_key | No | action:"app" — which built-in app to install | |
| dry_run | No | ||
| list_id | No | action:"overlay_attach" kind:"quickview" — the list-dataset node on the open page | |
| menu_id | No | ||
| node_id | No | action:"menu" — the menu node on the open page | |
| site_id | No | ||
| headline | No | ||
| language | No | Copy language, default vi | |
| template | No | action:"form" — which of the platform's own form templates to seed | |
| global_id | No | action:"global_attach"/"global_detach" — the shared section; omitted on attach it lists the site's own | |
| page_name | No | ||
| overlay_id | No | action:"overlay_attach" — an existing overlay; omit to create one from the seed | |
| relocalize | No | action:"cart" — rewrite an EXISTING drawer's seed words that are in another language to the site locale's (edited text untouched), and turn a gallery line thumbnail into a single image; needs a page of the site open |