[{"data":1,"prerenderedAt":2849},["ShallowReactive",2],{"navigation_docs":3,"-guide-modules-shop":613,"-guide-modules-shop-surround":2846},[4,39,101,378,540,562,584,606],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":38},"Start","i-lucide-rocket","\u002Fstart","1.start",[10,14,18,22,26,30,34],{"title":11,"path":12,"stem":13},"Our approach","\u002Fstart\u002Four-approach","1.start\u002F0.our-approach",{"title":15,"path":16,"stem":17},"Introduction","\u002Fstart\u002Fintroduction","1.start\u002F1.introduction",{"title":19,"path":20,"stem":21},"Concepts","\u002Fstart\u002Fconcepts","1.start\u002F2.concepts",{"title":23,"path":24,"stem":25},"Glossary","\u002Fstart\u002Fglossary","1.start\u002F3.glossary",{"title":27,"path":28,"stem":29},"Try it locally","\u002Fstart\u002Ftry-it-locally","1.start\u002F4.try-it-locally",{"title":31,"path":32,"stem":33},"Features","\u002Fstart\u002Ffeatures","1.start\u002F5.features",{"title":35,"path":36,"stem":37},"Questions","\u002Fstart\u002Ffaq","1.start\u002F6.faq",false,{"title":40,"icon":41,"path":42,"stem":43,"children":44,"page":38},"Run SHADE","i-lucide-server","\u002Frun","2.run",[45,49,53,57,61,65,69,73,77,81,85,89,93,97],{"title":46,"path":47,"stem":48},"Setting up an instance (Coolify)","\u002Frun\u002Fcoolify","2.run\u002F1.coolify",{"title":50,"path":51,"stem":52},"Console commands","\u002Frun\u002Fconsole","2.run\u002F10.console",{"title":54,"path":55,"stem":56},"Rotating APP_SECRET","\u002Frun\u002Frotating-app-secret","2.run\u002F11.rotating-app-secret",{"title":58,"path":59,"stem":60},"Checking an instance","\u002Frun\u002Fdoctor","2.run\u002F12.doctor",{"title":62,"path":63,"stem":64},"Self-hosting by hand","\u002Frun\u002Fown-server-by-hand","2.run\u002F13.own-server-by-hand",{"title":66,"path":67,"stem":68},"NixOS (experimental)","\u002Frun\u002Fnixos","2.run\u002F14.nixos",{"title":70,"path":71,"stem":72},"Self-hosting without Coolify","\u002Frun\u002Fown-server","2.run\u002F2.own-server",{"title":74,"path":75,"stem":76},"Hosting the site on a static host","\u002Frun\u002Fstatic-hosts","2.run\u002F3.static-hosts",{"title":78,"path":79,"stem":80},"Licence","\u002Frun\u002Flicence","2.run\u002F4.licence",{"title":82,"path":83,"stem":84},"Updating and backups","\u002Frun\u002Fupdating-and-backups","2.run\u002F5.updating-and-backups",{"title":86,"path":87,"stem":88},"Troubleshooting","\u002Frun\u002Ftroubleshooting","2.run\u002F6.troubleshooting",{"title":90,"path":91,"stem":92},"Logs, request ids, traces and metrics","\u002Frun\u002Flogs","2.run\u002F7.logs",{"title":94,"path":95,"stem":96},"Maintenance mode","\u002Frun\u002Fmaintenance-mode","2.run\u002F8.maintenance-mode",{"title":98,"path":99,"stem":100},"Usage limits","\u002Frun\u002Fusage-limits","2.run\u002F9.usage-limits",{"title":102,"icon":103,"path":104,"stem":105,"children":106},"Guide","i-lucide-book-open","\u002Fguide","3.guide",[107,109,147,192,210,280,310,364],{"title":102,"path":104,"stem":108},"3.guide\u002Findex",{"title":110,"icon":111,"path":112,"stem":113,"children":114,"page":38},"Content","i-lucide-file-text","\u002Fguide\u002Fcontent","3.guide\u002F1.content",[115,119,123,127,131,135,139,143],{"title":116,"path":117,"stem":118},"Collections and entries","\u002Fguide\u002Fcontent\u002Fcollections","3.guide\u002F1.content\u002F1.collections",{"title":120,"path":121,"stem":122},"Field types","\u002Fguide\u002Fcontent\u002Ffields","3.guide\u002F1.content\u002F2.fields",{"title":124,"path":125,"stem":126},"Drafts, publishing and version history","\u002Fguide\u002Fcontent\u002Fversions","3.guide\u002F1.content\u002F3.versions",{"title":128,"path":129,"stem":130},"Languages","\u002Fguide\u002Fcontent\u002Flanguages","3.guide\u002F1.content\u002F4.languages",{"title":132,"path":133,"stem":134},"Data sources","\u002Fguide\u002Fcontent\u002Fdata-sources","3.guide\u002F1.content\u002F5.data-sources",{"title":136,"path":137,"stem":138},"Media","\u002Fguide\u002Fcontent\u002Fmedia","3.guide\u002F1.content\u002F6.media",{"title":140,"path":141,"stem":142},"Search","\u002Fguide\u002Fcontent\u002Fsearch","3.guide\u002F1.content\u002F7.search",{"title":144,"path":145,"stem":146},"Trash","\u002Fguide\u002Fcontent\u002Ftrash","3.guide\u002F1.content\u002F8.trash",{"title":148,"icon":149,"path":150,"stem":151,"children":152,"page":38},"Website","i-lucide-globe","\u002Fguide\u002Fwebsite","3.guide\u002F2.website",[153,156,160,164,168,172,176,180,184,188],{"title":148,"path":154,"stem":155},"\u002Fguide\u002Fwebsite\u002Fwebsite","3.guide\u002F2.website\u002F1.website",{"title":157,"path":158,"stem":159},"Scroll scenes","\u002Fguide\u002Fwebsite\u002Fscroll-scenes","3.guide\u002F2.website\u002F10.scroll-scenes",{"title":161,"path":162,"stem":163},"Pages and posts","\u002Fguide\u002Fwebsite\u002Fpages","3.guide\u002F2.website\u002F2.pages",{"title":165,"path":166,"stem":167},"The visual editor","\u002Fguide\u002Fwebsite\u002Fvisual-editor","3.guide\u002F2.website\u002F3.visual-editor",{"title":169,"path":170,"stem":171},"Roles and locks","\u002Fguide\u002Fwebsite\u002Froles-and-locks","3.guide\u002F2.website\u002F4.roles-and-locks",{"title":173,"path":174,"stem":175},"Header and footer","\u002Fguide\u002Fwebsite\u002Fheader-and-footer","3.guide\u002F2.website\u002F5.header-and-footer",{"title":177,"path":178,"stem":179},"Theme","\u002Fguide\u002Fwebsite\u002Ftheme","3.guide\u002F2.website\u002F6.theme",{"title":181,"path":182,"stem":183},"Redirects","\u002Fguide\u002Fwebsite\u002Fredirects","3.guide\u002F2.website\u002F7.redirects",{"title":185,"path":186,"stem":187},"Site settings","\u002Fguide\u002Fwebsite\u002Fsite-settings","3.guide\u002F2.website\u002F8.site-settings",{"title":189,"path":190,"stem":191},"The site","\u002Fguide\u002Fwebsite\u002Fthe-site","3.guide\u002F2.website\u002F9.the-site",{"title":193,"icon":194,"path":195,"stem":196,"children":197,"page":38},"Publishing","i-lucide-send","\u002Fguide\u002Fpublishing","3.guide\u002F3.publishing",[198,202,206],{"title":199,"path":200,"stem":201},"Publishing and preview","\u002Fguide\u002Fpublishing\u002Fpublishing","3.guide\u002F3.publishing\u002F1.publishing",{"title":203,"path":204,"stem":205},"Builds","\u002Fguide\u002Fpublishing\u002Fbuilds","3.guide\u002F3.publishing\u002F2.builds",{"title":207,"path":208,"stem":209},"CDN caches","\u002Fguide\u002Fpublishing\u002Fcaches","3.guide\u002F3.publishing\u002F3.caches",{"title":211,"icon":212,"path":213,"stem":214,"children":215,"page":38},"People, security and privacy","i-lucide-shield","\u002Fguide\u002Fpeople-and-security","3.guide\u002F4.people-and-security",[216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276],{"title":217,"path":218,"stem":219},"People in SHADE","\u002Fguide\u002Fpeople-and-security\u002Fpeople-in-shade","3.guide\u002F4.people-and-security\u002F0.people-in-shade",{"title":221,"path":222,"stem":223},"Team and roles","\u002Fguide\u002Fpeople-and-security\u002Fteam","3.guide\u002F4.people-and-security\u002F1.team",{"title":225,"path":226,"stem":227},"Errors and security alerts","\u002Fguide\u002Fpeople-and-security\u002Ferrors","3.guide\u002F4.people-and-security\u002F10.errors",{"title":229,"path":230,"stem":231},"Exporting an instance","\u002Fguide\u002Fpeople-and-security\u002Fexporting","3.guide\u002F4.people-and-security\u002F11.exporting",{"title":233,"path":234,"stem":235},"Organisations","\u002Fguide\u002Fpeople-and-security\u002Forganisations","3.guide\u002F4.people-and-security\u002F12.organisations",{"title":237,"path":238,"stem":239},"Signing in through an identity provider (team)","\u002Fguide\u002Fpeople-and-security\u002Fidentity-providers","3.guide\u002F4.people-and-security\u002F13.identity-providers",{"title":241,"path":242,"stem":243},"System status","\u002Fguide\u002Fpeople-and-security\u002Fsystem-status","3.guide\u002F4.people-and-security\u002F14.system-status",{"title":245,"path":246,"stem":247},"Appearance","\u002Fguide\u002Fpeople-and-security\u002Fappearance","3.guide\u002F4.people-and-security\u002F15.appearance",{"title":249,"path":250,"stem":251},"Accounts and personal pages","\u002Fguide\u002Fpeople-and-security\u002Faccounts","3.guide\u002F4.people-and-security\u002F2.accounts",{"title":253,"path":254,"stem":255},"Signing in (team)","\u002Fguide\u002Fpeople-and-security\u002Fsign-in","3.guide\u002F4.people-and-security\u002F3.sign-in",{"title":257,"path":258,"stem":259},"API tokens","\u002Fguide\u002Fpeople-and-security\u002Fapi-tokens","3.guide\u002F4.people-and-security\u002F4.api-tokens",{"title":261,"path":262,"stem":263},"Audit log","\u002Fguide\u002Fpeople-and-security\u002Faudit","3.guide\u002F4.people-and-security\u002F5.audit",{"title":265,"path":266,"stem":267},"Request protection","\u002Fguide\u002Fpeople-and-security\u002Fprotection","3.guide\u002F4.people-and-security\u002F6.protection",{"title":269,"path":270,"stem":271},"Personal data per person","\u002Fguide\u002Fpeople-and-security\u002Fprivacy","3.guide\u002F4.people-and-security\u002F7.privacy",{"title":273,"path":274,"stem":275},"Data retention","\u002Fguide\u002Fpeople-and-security\u002Fretention","3.guide\u002F4.people-and-security\u002F8.retention",{"title":277,"path":278,"stem":279},"Consent banner","\u002Fguide\u002Fpeople-and-security\u002Fconsent","3.guide\u002F4.people-and-security\u002F9.consent",{"title":281,"icon":282,"path":283,"stem":284,"children":285,"page":38},"Services","i-lucide-plug","\u002Fguide\u002Fservices","3.guide\u002F5.services",[286,290,294,298,302,306],{"title":287,"path":288,"stem":289},"Email","\u002Fguide\u002Fservices\u002Femail","3.guide\u002F5.services\u002F1.email",{"title":291,"path":292,"stem":293},"Opening hours","\u002Fguide\u002Fservices\u002Fopening-hours","3.guide\u002F5.services\u002F4.opening-hours",{"title":295,"path":296,"stem":297},"Webhooks","\u002Fguide\u002Fservices\u002Fwebhooks","3.guide\u002F5.services\u002F5.webhooks",{"title":299,"path":300,"stem":301},"Locations","\u002Fguide\u002Fservices\u002Flocations","3.guide\u002F5.services\u002F6.locations",{"title":303,"path":304,"stem":305},"VAT rates","\u002Fguide\u002Fservices\u002Fvat-rates","3.guide\u002F5.services\u002F7.vat-rates",{"title":307,"path":308,"stem":309},"Channels","\u002Fguide\u002Fservices\u002Fchannels","3.guide\u002F5.services\u002F8.channels",{"title":311,"icon":312,"path":313,"stem":314,"children":315,"page":38},"InstalledModules","i-lucide-puzzle","\u002Fguide\u002Fmodules","3.guide\u002F6.modules",[316,320,324,328,332,336,340,344,348,352,356,360],{"title":317,"path":318,"stem":319},"Modules","\u002Fguide\u002Fmodules\u002Fmanaging","3.guide\u002F6.modules\u002F1.managing",{"title":321,"path":322,"stem":323},"Dutch services (module)","\u002Fguide\u002Fmodules\u002Fnl","3.guide\u002F6.modules\u002F10.nl",{"title":325,"path":326,"stem":327},"Editorial (module)","\u002Fguide\u002Fmodules\u002Feditorial","3.guide\u002F6.modules\u002F11.editorial",{"title":329,"path":330,"stem":331},"Appointments (module)","\u002Fguide\u002Fmodules\u002Fappointments","3.guide\u002F6.modules\u002F2.appointments",{"title":333,"path":334,"stem":335},"Shop (the commerce module)","\u002Fguide\u002Fmodules\u002Fshop","3.guide\u002F6.modules\u002F3.shop",{"title":337,"path":338,"stem":339},"Untrusted modules","\u002Fguide\u002Fmodules\u002Funtrusted","3.guide\u002F6.modules\u002F4.untrusted",{"title":341,"path":342,"stem":343},"Analytics (module)","\u002Fguide\u002Fmodules\u002Fanalytics","3.guide\u002F6.modules\u002F5.analytics",{"title":345,"path":346,"stem":347},"Error forwarding (module)","\u002Fguide\u002Fmodules\u002Ferror-forwarding","3.guide\u002F6.modules\u002F6.error-forwarding",{"title":349,"path":350,"stem":351},"Client programs","\u002Fguide\u002Fmodules\u002Fprograms","3.guide\u002F6.modules\u002F7.programs",{"title":353,"path":354,"stem":355},"Import and export (module)","\u002Fguide\u002Fmodules\u002Fimport","3.guide\u002F6.modules\u002F8.import",{"title":357,"path":358,"stem":359},"Payments (module)","\u002Fguide\u002Fmodules\u002Fpayments","3.guide\u002F6.modules\u002F8.payments",{"title":361,"path":362,"stem":363},"Forms (module)","\u002Fguide\u002Fmodules\u002Fforms","3.guide\u002F6.modules\u002F9.forms",{"title":365,"icon":366,"path":367,"stem":368,"children":369,"page":38},"AI assistants","i-lucide-bot","\u002Fguide\u002Fai","3.guide\u002F7.ai",[370,374],{"title":371,"path":372,"stem":373},"AI assistants (MCP)","\u002Fguide\u002Fai\u002Fassistants","3.guide\u002F7.ai\u002F1.assistants",{"title":375,"path":376,"stem":377},"Connecting an AI assistant","\u002Fguide\u002Fai\u002Fconnecting","3.guide\u002F7.ai\u002F2.connecting",{"title":379,"icon":380,"path":381,"stem":382,"children":383,"page":38},"Developers","i-lucide-code","\u002Fdevelopers","4.developers",[384,388,392,396,400,404,408,412,416,420,424,428,432,435,489,493,497,501,536],{"title":385,"path":386,"stem":387},"Architecture","\u002Fdevelopers\u002Farchitecture","4.developers\u002F1.architecture",{"title":389,"path":390,"stem":391},"Capabilities","\u002Fdevelopers\u002Fcapabilities","4.developers\u002F10.capabilities",{"title":393,"path":394,"stem":395},"Trust","\u002Fdevelopers\u002Ftrust","4.developers\u002F11.trust",{"title":397,"path":398,"stem":399},"Redis and the ports","\u002Fdevelopers\u002Fredis","4.developers\u002F12.redis",{"title":401,"path":402,"stem":403},"The worker container role","\u002Fdevelopers\u002Fworker","4.developers\u002F13.worker",{"title":405,"path":406,"stem":407},"kv: a module's own key-value storage","\u002Fdevelopers\u002Fkv","4.developers\u002F14.kv",{"title":409,"path":410,"stem":411},"Processes: long-running work on the worker","\u002Fdevelopers\u002Fprocesses","4.developers\u002F15.processes",{"title":413,"path":414,"stem":415},"Network: a module's outgoing calls","\u002Fdevelopers\u002Fnetwork","4.developers\u002F16.network",{"title":417,"path":418,"stem":419},"Realtime","\u002Fdevelopers\u002Frealtime","4.developers\u002F17.realtime",{"title":421,"path":422,"stem":423},"Private files","\u002Fdevelopers\u002Ffiles","4.developers\u002F18.files",{"title":425,"path":426,"stem":427},"Notify","\u002Fdevelopers\u002Fnotify","4.developers\u002F19.notify",{"title":429,"path":430,"stem":431},"Collections","\u002Fdevelopers\u002Fcollections","4.developers\u002F2.collections",{"title":337,"path":433,"stem":434},"\u002Fdevelopers\u002Funtrusted","4.developers\u002F20.untrusted",{"title":436,"icon":312,"path":437,"stem":438,"children":439},"Writing a plugin","\u002Fdevelopers\u002Fmodules","4.developers\u002F3.modules\u002Findex",[440,442,446,450,454,458,462,466,470,473,477,481,485],{"title":441,"path":437,"stem":438},"Writing a module",{"title":443,"path":444,"stem":445},"Module SDK and tooling","\u002Fdevelopers\u002Fmodules\u002Fsdk-and-tooling","4.developers\u002F3.modules\u002F1.sdk-and-tooling",{"title":447,"path":448,"stem":449},"Connecting accounts with OAuth2","\u002Fdevelopers\u002Fmodules\u002Foauth","4.developers\u002F3.modules\u002F10.oauth",{"title":451,"path":452,"stem":453},"Calls between modules","\u002Fdevelopers\u002Fmodules\u002Fcalls-between-modules","4.developers\u002F3.modules\u002F11.calls-between-modules",{"title":455,"path":456,"stem":457},"Experimental parts","\u002Fdevelopers\u002Fmodules\u002Fexperimental-parts","4.developers\u002F3.modules\u002F12.experimental-parts",{"title":459,"path":460,"stem":461},"The manifest","\u002Fdevelopers\u002Fmodules\u002Fmanifest","4.developers\u002F3.modules\u002F2.manifest",{"title":463,"path":464,"stem":465},"Routes","\u002Fdevelopers\u002Fmodules\u002Froutes","4.developers\u002F3.modules\u002F3.routes",{"title":467,"path":468,"stem":469},"Admin screens and the site part","\u002Fdevelopers\u002Fmodules\u002Fadmin-and-site","4.developers\u002F3.modules\u002F4.admin-and-site",{"title":110,"path":471,"stem":472},"\u002Fdevelopers\u002Fmodules\u002Fcontent","4.developers\u002F3.modules\u002F5.content",{"title":474,"path":475,"stem":476},"Background work and services","\u002Fdevelopers\u002Fmodules\u002Fbackground-and-services","4.developers\u002F3.modules\u002F6.background-and-services",{"title":478,"path":479,"stem":480},"SDK reference","\u002Fdevelopers\u002Fmodules\u002Fsdk-reference","4.developers\u002F3.modules\u002F7.sdk-reference",{"title":482,"path":483,"stem":484},"The website module's SDK","\u002Fdevelopers\u002Fmodules\u002Fwebsite-sdk","4.developers\u002F3.modules\u002F8.website-sdk",{"title":486,"path":487,"stem":488},"Incoming webhooks","\u002Fdevelopers\u002Fmodules\u002Fincoming-webhooks","4.developers\u002F3.modules\u002F9.incoming-webhooks",{"title":490,"path":491,"stem":492},"Core and the website module","\u002Fdevelopers\u002Fcore-and-website-module","4.developers\u002F4.core-and-website-module",{"title":494,"path":495,"stem":496},"The API","\u002Fdevelopers\u002Fapi","4.developers\u002F6.api",{"title":498,"path":499,"stem":500},"API reference","\u002Fdevelopers\u002Fapi-reference","4.developers\u002F6.api-reference",{"title":502,"icon":503,"path":504,"stem":505,"children":506},"Sites in other frameworks","i-lucide-layout-template","\u002Fdevelopers\u002Fframeworks","4.developers\u002F7.frameworks\u002Findex",[507,508,512,516,520,524,528,532],{"title":502,"path":504,"stem":505},{"title":509,"path":510,"stem":511},"Accounts: sign-in and modules' routes","\u002Fdevelopers\u002Fframeworks\u002Faccounts","4.developers\u002F7.frameworks\u002F1.accounts",{"title":513,"path":514,"stem":515},"`@shadestack\u002Ftree`","\u002Fdevelopers\u002Fframeworks\u002Ftree","4.developers\u002F7.frameworks\u002F2.tree",{"title":517,"path":518,"stem":519},"Expressions and styles","\u002Fdevelopers\u002Fframeworks\u002Fexpressions-and-styles","4.developers\u002F7.frameworks\u002F3.expressions-and-styles",{"title":521,"path":522,"stem":523},"`@shadestack\u002Frender`","\u002Fdevelopers\u002Fframeworks\u002Frender","4.developers\u002F7.frameworks\u002F4.render",{"title":525,"path":526,"stem":527},"`@shadestack\u002Finteractions`","\u002Fdevelopers\u002Fframeworks\u002Finteractions","4.developers\u002F7.frameworks\u002F5.interactions",{"title":529,"path":530,"stem":531},"`@shadestack\u002Fa11y`","\u002Fdevelopers\u002Fframeworks\u002Fa11y","4.developers\u002F7.frameworks\u002F6.a11y",{"title":533,"path":534,"stem":535},"Your own page for SHADE's links","\u002Fdevelopers\u002Fframeworks\u002Flinks","4.developers\u002F7.frameworks\u002F7.links",{"title":537,"path":538,"stem":539},"Build a client module","\u002Fdevelopers\u002Fclient-module","4.developers\u002F9.client-module",{"title":541,"icon":542,"path":543,"stem":544,"children":545,"page":38},"Security","i-lucide-shield-check","\u002Fsecurity","5.security",[546,550,554,558],{"title":547,"path":548,"stem":549},"Reporting a vulnerability","\u002Fsecurity\u002Freporting","5.security\u002F0.reporting",{"title":551,"path":552,"stem":553},"Security testing","\u002Fsecurity\u002Ftesting","5.security\u002F1.testing",{"title":555,"path":556,"stem":557},"Hardening a production instance","\u002Fsecurity\u002Fhardening","5.security\u002F2.hardening",{"title":559,"path":560,"stem":561},"Manual testing with Kali Linux","\u002Fsecurity\u002Fmanual-testing","5.security\u002F3.manual-testing",{"title":563,"icon":564,"path":565,"stem":566,"children":567,"page":38},"Contributing","i-lucide-git-pull-request","\u002Fcontributing","6.contributing",[568,572,576,580],{"title":569,"path":570,"stem":571},"Reading the code","\u002Fcontributing\u002Freading-the-code","6.contributing\u002F1.reading-the-code",{"title":573,"path":574,"stem":575},"Docs site","\u002Fcontributing\u002Fdocs-site","6.contributing\u002F2.docs-site",{"title":577,"path":578,"stem":579},"Releases","\u002Fcontributing\u002Freleases","6.contributing\u002F3.releases",{"title":581,"path":582,"stem":583},"Load tests","\u002Fcontributing\u002Fload-tests","6.contributing\u002F4.load-tests",{"title":585,"icon":586,"path":587,"stem":588,"children":589,"page":38},"Project","i-lucide-map","\u002Fproject","7.project",[590,594,598,602],{"title":591,"path":592,"stem":593},"Roadmap","\u002Fproject\u002Froadmap","7.project\u002F1.roadmap",{"title":595,"path":596,"stem":597},"Known issues","\u002Fproject\u002Fknown-issues","7.project\u002F2.known-issues",{"title":599,"path":600,"stem":601},"Changelog","\u002Fproject\u002Fchangelog","7.project\u002F3.changelog",{"title":603,"path":604,"stem":605},"Decisions","\u002Fproject\u002Fdecisions","7.project\u002F4.decisions",{"title":607,"path":608,"stem":609,"children":610,"icon":612},"Community","\u002Fcommunity","8.community\u002Findex",[611],{"title":607,"path":608,"stem":609},"i-lucide-users",{"id":614,"title":333,"body":615,"description":2050,"extension":2841,"links":2842,"meta":2843,"navigation":2363,"path":334,"seo":2844,"stem":335,"__hash__":2845},"docs\u002F3.guide\u002F6.modules\u002F3.shop.md",{"type":616,"value":617,"toc":2812},"minimark",[618,641,646,649,725,733,758,766,770,953,966,969,975,995,998,1003,1010,1082,1088,1092,1099,1107,1110,1118,1128,1175,1196,1199,1221,1285,1292,1315,1319,1322,1491,1497,1500,1537,1540,1551,1629,1643,1646,1653,1657,1667,1695,1701,1758,1767,1771,1774,1811,1815,1858,1862,1973,1977,2005,2009,2077,2081,2154,2158,2168,2185,2189,2194,2205,2209,2245,2249,2259,2297,2301,2312,2605,2633,2678,2685,2761,2768,2782,2793,2797,2808],[619,620,621,622,626,627,631,632,636,637,640],"p",{},"The shop lets a client sell physical products from their own site. Products and categories are ordinary content.\nVisitors fill a cart, enter delivery details and pay on Mollie's hosted payment page. The business ships, cancels or\nrefunds the orders and keeps the stock count up to date. It is a server package (",[623,624,625],"code",{},"commerce",", shown as ",[628,629,630],"strong",{},"Shop",") that an\nadmin installs and switches on in the Modules screen. It requires the ",[633,634,635],"a",{"href":358},"payments module"," and builds on\n",[633,638,639],{"href":288},"email",": switch payments on first, with its Mollie key, and set up email, or the shop cannot\nbe switched on.",[642,643,645],"h2",{"id":644},"what-users-can-do","What users can do",[619,647,648],{},"Editors and admins:",[650,651,652,679,693,700,706,722],"ul",{},[653,654,655,656,659,660,663,664,666,667,670,671,674,675,678],"li",{},"Write ",[628,657,658],{},"Products"," and ",[628,661,662],{},"Categories"," in the admin's ",[628,665,630],{}," group, with drafts, versions and publishing\n(",[633,668,669],{"href":117},"collections",", ",[633,672,673],{"href":125},"versions","). Only published products can\nbe sold. A product has up to 50 ",[628,676,677],{},"variants"," (each with SKU, label, price, weight and a \"Track stock\" switch) and up\nto 12 images.",[653,680,681,682,685,686,689,690,692],{},"Build the product pages from one page marked as the products' template (",[633,683,684],{"href":162},"pages","), and list\nproducts on a page with a ",[628,687,688],{},"Repeat for each"," over the ",[628,691,658],{}," source.",[653,694,695,696,699],{},"On the ",[628,697,698],{},"Orders"," screen: search and filter orders, mark paid orders shipped (with carrier and tracking number),\ncancel unpaid ones, refund paid ones in full or in part, and download invoices and credit invoices.",[653,701,695,702,705],{},[628,703,704],{},"Stock"," tab: set how many of each tracked SKU are in stock (up to 2,000 tracked SKUs; with more, the tab\nsays so).",[653,707,708,709,713,714,717,718,721],{},"With the ",[710,711,712],"em",{},"Shop manager"," role: make ",[628,715,716],{},"Promotions"," (a percentage or amount off, or free shipping) that apply\nautomatically or with a ",[628,719,720],{},"discount code",", and issue the codes.",[653,723,724],{},"Admins also switch the shop on and off and set its settings on the Modules screen.",[619,726,727,728,732],{},"Visitors, on pages with the shop's starter components (see ",[633,729,731],{"href":730},"#on-the-website","On the website","):",[650,734,735,738,741],{},[653,736,737],{},"Add products to a cart, change quantities, see the total with shipping and VAT for their country, enter name, email\nand delivery address, and pay through Mollie. Running promotions show in the cart, and a discount code can be typed\nthere.",[653,739,740],{},"Return to the order page and see as soon as the payment goes through. A confirmation email with the invoice (PDF)\nfollows once paid, and a credit invoice with each refund.",[653,742,743,744,747,748,670,751,659,754,757],{},"Signed in, see the orders placed with their address (",[628,745,746],{},"My orders"," starter), and keep a name and delivery address on\nthe account (",[623,749,750],{},"GET",[623,752,753],{},"PUT",[623,755,756],{},"DELETE \u002Fmy\u002Fprofile","; no starter shows them yet).",[619,759,760,761,765],{},"AI users can read products and write product drafts. They cannot see orders or who ordered, but get three read-only\ntools for the shop's numbers (",[633,762,764],{"href":763},"#for-ai-assistants","For AI assistants",").",[642,767,769],{"id":768},"who-may-do-it","Who may do it",[771,772,773,789],"table",{},[774,775,776],"thead",{},[777,778,779,783,786],"tr",{},[780,781,782],"th",{},"Action",[780,784,785],{},"Permission",[780,787,788],{},"Roles",[790,791,792,806,819,832,850,866,881,898,912,929,942],"tbody",{},[777,793,794,798,803],{},[795,796,797],"td",{},"Products: read, create, update",[795,799,800],{},[623,801,802],{},"collections.commerce-products.read\u002Fcreate\u002Fupdate",[795,804,805],{},"admin, editor, ai (drafts only)",[777,807,808,811,816],{},[795,809,810],{},"Products: publish, delete",[795,812,813],{},[623,814,815],{},"collections.commerce-products.publish\u002Fdelete",[795,817,818],{},"admin, editor",[777,820,821,824,829],{},[795,822,823],{},"Categories: everything",[795,825,826],{},[623,827,828],{},"collections.commerce-categories.*",[795,830,831],{},"admin, editor (no AI access)",[777,833,834,837,842],{},[795,835,836],{},"See orders and the Stock tab",[795,838,839],{},[623,840,841],{},"commerce.orders.read",[795,843,844,845,670,847],{},"admin, editor, ",[710,846,712],{},[710,848,849],{},"Order handler",[777,851,852,855,860],{},[795,853,854],{},"Mark shipped, cancel",[795,856,857],{},[623,858,859],{},"commerce.orders.manage",[795,861,844,862,670,864],{},[710,863,712],{},[710,865,849],{},[777,867,868,871,876],{},[795,869,870],{},"Refund",[795,872,873],{},[623,874,875],{},"commerce.orders.refund",[795,877,878,879],{},"admin, ",[710,880,712],{},[777,882,883,886,891],{},[795,884,885],{},"Set stock",[795,887,888],{},[623,889,890],{},"commerce.stock.manage",[795,892,844,893,670,895],{},[710,894,712],{},[710,896,897],{},"Stock clerk",[777,899,900,903,908],{},[795,901,902],{},"Promotions and discount codes",[795,904,905],{},[623,906,907],{},"commerce.promotions.manage",[795,909,878,910],{},[710,911,712],{},[777,913,914,917,926],{},[795,915,916],{},"Switch on\u002Foff, settings, export, uninstall",[795,918,919,922,923,925],{},[623,920,921],{},"packages.manage"," (",[633,924,317],{"href":318},")",[795,927,928],{},"admin",[777,930,931,934,939],{},[795,932,933],{},"Read the shop's numbers with AI tools",[795,935,936],{},[623,937,938],{},"commerce.read",[795,940,941],{},"admin, ai",[777,943,944,947,950],{},[795,945,946],{},"Cart, discount code, stock signal, checkout, order status",[795,948,949],{},"none (rate-limited)",[795,951,952],{},"visitors",[619,954,955,956,959,960,962,963,965],{},"Admins get every action of a module automatically. Refunding is not among the editor defaults: give it with the ",[710,957,958],{},"Shop\nmanager"," role. ",[623,961,938],{}," gates the AI tools. It is not ",[623,964,841],{},", which shows who ordered: AI\naccounts never hold that.",[642,967,764],{"id":968},"for-ai-assistants",[619,970,971,972,974],{},"While the shop is on, an AI assistant connected over MCP (",[633,973,365],{"href":372},") has three\nread-only tools:",[650,976,977,983,989],{},[653,978,979,982],{},[623,980,981],{},"commerce_orders_to_ship",": the paid orders not shipped yet, oldest first (at most 50), with number, when paid, the\namount in cents and currency, destination country, whether it is oversold, and the SKUs, titles and quantities, plus\nhow many are waiting in all.",[653,984,985,988],{},[623,986,987],{},"commerce_sales_today",": for one day (today unless given), in the site's time zone, how many orders were paid, what was\ncharged, the VAT in it and what was refunded since, per currency. Totals only.",[653,990,991,994],{},[623,992,993],{},"commerce_low_stock",": the SKUs with stock tracked and 3 or fewer available, with on hand, reserved and available.",[619,996,997],{},"They never refund, ship or change an order or the stock, and show no name, email address, street address, company or\nVAT number.",[999,1000,1002],"h3",{"id":1001},"the-shops-roles","The shop's roles",[619,1004,1005,1006,732],{},"The shop brings three team roles, which an admin gives to editors on the Team screen\n(",[633,1007,1009],{"href":1008},"\u002Fguide\u002Fpeople-and-security\u002Fteam#module-roles","Module roles",[771,1011,1012,1028],{},[774,1013,1014],{},[777,1015,1016,1019,1022,1025],{},[780,1017,1018],{},"Role",[780,1020,1021],{},"Always holds",[780,1023,1024],{},"Holds by default",[780,1026,1027],{},"Manages",[790,1029,1030,1051,1068],{},[777,1031,1032,1036,1042,1048],{},[795,1033,1034],{},[710,1035,712],{},[795,1037,1038,670,1040],{},[623,1039,841],{},[623,1041,875],{},[795,1043,1044,670,1046],{},[623,1045,859],{},[623,1047,890],{},[795,1049,1050],{},"the members of all three roles",[777,1052,1053,1057,1063,1066],{},[795,1054,1055],{},[710,1056,849],{},[795,1058,1059,670,1061],{},[623,1060,841],{},[623,1062,859],{},[795,1064,1065],{},"–",[795,1067,1065],{},[777,1069,1070,1074,1078,1080],{},[795,1071,1072],{},[710,1073,897],{},[795,1075,1076],{},[623,1077,890],{},[795,1079,1065],{},[795,1081,1065],{},[619,1083,1084,1085,1087],{},"An admin can add or remove the shop's other actions on each role. A ",[710,1086,712],{}," sees the members of the three\nroles, invites new ones and moves them between these roles. The roles give no access to products and categories.",[642,1089,1091],{"id":1090},"in-the-admin","In the admin",[619,1093,1094,659,1096,1098],{},[628,1095,658],{},[628,1097,662],{}," are in the sidebar's Sales section, as the standard collection list and entry editor.",[650,1100,1101,1104],{},[653,1102,1103],{},"Product fields: Title, Slug, Description, Category, Images (max 12), Variants (1–50: SKU, Label, Price in euros, Track\nstock), SEO (SEO title, Meta description).",[653,1105,1106],{},"Category fields: Title, Slug, Description, Image.",[999,1108,698],{"id":1109},"orders",[619,1111,1112,1114,1115,1117],{},[628,1113,698],{}," (Sales section; needs ",[623,1116,841],{},") has two tabs. The sidebar entry shows how many paid orders are\nnot shipped yet.",[619,1119,1120,1123,1124,1127],{},[628,1121,1122],{},"Orders tab."," A table (Order, Customer, Status, Total, Placed), newest first, 25 per page, with a search box (number,\nname or email) and a status filter (All, Pending, Paid, Shipped, Failed, Expired, Cancelled, Refunded). Clicking a row\nopens the order beside the list on a wide screen (Escape closes it) and as a sheet on a narrower one. It shows an\noversold warning, status, dates, the Mollie payment id (",[623,1125,1126],{},"tr_…","), the customer, the lines, shipping, total and refunded\namount, and:",[650,1129,1130,1144,1161,1169],{},[653,1131,1132,1133,1135,1136,1139,1140,1143],{},"With ",[623,1134,859],{},": ",[628,1137,1138],{},"Mark shipped"," (paid orders; the customer gets a \"shipped\" email; an oversold order\nasks for confirmation first) and ",[628,1141,1142],{},"Cancel order"," (pending orders; asks for confirmation).",[653,1145,1146,1149,1150,1153,1154,1156,1157,1160],{},[628,1147,1148],{},"Carrier"," (PostNL, DHL, DPD, UPS and GLS are offered; any other can be typed) and ",[628,1151,1152],{},"Tracking number",". Filled in\nbefore ",[628,1155,1138],{},", they go with it. On a shipped order, ",[628,1158,1159],{},"Save tracking"," sets or corrects them.",[653,1162,1132,1163,1165,1166,1168],{},[623,1164,875],{},", on paid or shipped orders: \"Amount to refund (euros)\" (empty = the rest), a reason\n(optional, max 255, the customer sees it) and ",[628,1167,870],{},", which asks for confirmation. It cannot be undone.",[653,1170,1171,1174],{},[628,1172,1173],{},"History",", oldest first: order placed, payment, invoice and each credit invoice (number, amount, time; each\ndownloads as a PDF), and how it ended (shipped with carrier and tracking number, cancelled, expired or failed).",[619,1176,1177,1180,1181,1184,1185,1187,1188,1191,1192,1195],{},[628,1178,1179],{},"Stock tab."," Every tracked SKU of the published products with its title, \"N reserved\" and an \"In stock\" number. ",[628,1182,1183],{},"Save","\nappears once the number changes. The tab is disabled without ",[623,1186,890],{},", and shows ",[628,1189,1190],{},"Retry"," if the list\ncan't load. If the count changed after the tab read it (an order was paid, or someone else saved), saving is refused\nand ",[628,1193,1194],{},"Reload the stock"," appears, so a sale is never counted back. The number you typed for that SKU is lost on reload.",[999,1197,716],{"id":1198},"promotions",[619,1200,1201,1114,1203,1205,1206,670,1209,1212,1213,1216,1217,1220],{},[628,1202,716],{},[623,1204,907],{},") lists each promotion as ",[628,1207,1208],{},"Scheduled",[628,1210,1211],{},"Running","\nor ",[628,1214,1215],{},"Ended",". ",[628,1218,1219],{},"New promotion"," asks for:",[650,1222,1223,1230,1240,1257,1264,1278],{},[653,1224,1225,1226,1229],{},"its ",[628,1227,1228],{},"Name"," (shown in the cart and on the invoice);",[653,1231,1232,1235,1236,1239],{},[628,1233,1234],{},"Automatically"," or ",[628,1237,1238],{},"With a code",";",[653,1241,1242,1243,1135,1246,1249,1250,1253,1254,1239],{},"what it ",[628,1244,1245],{},"Gives",[628,1247,1248],{},"Percentage off"," (1–100), ",[628,1251,1252],{},"Amount off the order"," (incl. VAT) or ",[628,1255,1256],{},"Free shipping",[653,1258,1259,1260,1263],{},"what it is ",[628,1261,1262],{},"For",": all products, some categories or some SKUs;",[653,1265,1266,1267,1270,1271,659,1274,1277],{},"a ",[628,1268,1269],{},"Minimum"," those products must cost together (incl. VAT), and ",[628,1272,1273],{},"Starts",[628,1275,1276],{},"Ends"," (empty: until you end it);",[653,1279,1280,1281,1284],{},"for a code, whether it ",[628,1282,1283],{},"Combines with automatic promotions",".",[619,1286,1287,1288,1291],{},"A promotion that has started can only change its end. ",[628,1289,1290],{},"End now"," ends it, and its codes stop working. One that has not\nstarted can be deleted.",[619,1293,1294,1295,1298,1299,1302,1303,1306,1307,1310,1311,1314],{},"Under ",[628,1296,1297],{},"Codes",", a code promotion issues either ",[628,1300,1301],{},"One code for many customers"," (with a number of uses, and ",[628,1304,1305],{},"Its own\ntext"," if you want one, such as ",[623,1308,1309],{},"ZOMER25",": 4 to 32 letters and digits) or ",[628,1312,1313],{},"Codes that each work once"," (random, 10\ncharacters, up to 1,000 at a time). The shop keeps only a fingerprint of a code, so codes are shown once, to copy or\ndownload as CSV. A text that another promotion's code still has is refused until that code has expired.",[999,1316,1318],{"id":1317},"module-settings","Module settings",[619,1320,1321],{},"Modules screen, Shop. Amounts are in euros.",[771,1323,1324,1337],{},[774,1325,1326],{},[777,1327,1328,1331,1334],{},[780,1329,1330],{},"Setting",[780,1332,1333],{},"Meaning",[780,1335,1336],{},"Default",[790,1338,1339,1350,1361,1371,1385,1396,1406,1417,1430,1440,1450,1468,1478],{},[777,1340,1341,1344,1347],{},[795,1342,1343],{},"Shipping",[795,1345,1346],{},"Added to every order; 0 = free (up to €1,000)",[795,1348,1349],{},"€0",[777,1351,1352,1355,1358],{},[795,1353,1354],{},"Charge the customer's country VAT (One-Stop-Shop)",[795,1356,1357],{},"VAT at the delivery country's rate for consumers abroad",[795,1359,1360],{},"off",[777,1362,1363,1366,1369],{},[795,1364,1365],{},"Sell to businesses (reverse charge)",[795,1367,1368],{},"EU businesses abroad with a VAT number buy without VAT",[795,1370,1360],{},[777,1372,1373,1376,1382],{},[795,1374,1375],{},"Shipping countries",[795,1377,1378,1379,1381],{},"Countries the shop ships to, in the order the cart offers them (the first is chosen). Each may have its own shipping amount, else it pays ",[710,1380,1343],{},". The 27 EU countries plus United Kingdom, Switzerland, Norway, Iceland, Liechtenstein, United States, Canada and Australia; at least one",[795,1383,1384],{},"Netherlands, Belgium, Germany, France, Luxembourg, Austria, Spain, Italy, Denmark, Sweden, Finland, Ireland, Portugal, Poland, none with its own amount",[777,1386,1387,1390,1393],{},[795,1388,1389],{},"Shipping by weight",[795,1391,1392],{},"Up to 10 weight bands, each \"from (grams)\" and an extra amount; the heaviest band the parcel reaches is added to the shipping",[795,1394,1395],{},"none",[777,1397,1398,1401,1404],{},[795,1399,1400],{},"Free shipping from",[795,1402,1403],{},"Orders of at least this amount ship free; 0 = never (up to €100,000)",[795,1405,1349],{},[777,1407,1408,1411,1414],{},[795,1409,1410],{},"Hold stock while paying (minutes)",[795,1412,1413],{},"How long stock is reserved during payment (5–1440)",[795,1415,1416],{},"10",[777,1418,1419,1422,1425],{},[795,1420,1421],{},"Order page",[795,1423,1424],{},"Slug of the page that shows the order's status, where Mollie returns customers",[795,1426,1427],{},[623,1428,1429],{},"bestelling",[777,1431,1432,1435,1438],{},[795,1433,1434],{},"Email new orders to",[795,1436,1437],{},"Up to 20 addresses that get a mail per paid order",[795,1439,1395],{},[777,1441,1442,1445,1448],{},[795,1443,1444],{},"Require accepting the terms",[795,1446,1447],{},"Customers must tick the terms box before paying; orders without it, or with another text than the terms text, are refused",[795,1449,1360],{},[777,1451,1452,1455,1465],{},[795,1453,1454],{},"Terms text",[795,1456,1457,1458,1235,1461,1464],{},"Text by the terms box, per site language (language code such as ",[623,1459,1460],{},"nl",[623,1462,1463],{},"en",", and text, up to 300 characters); the accepted one is kept with the order",[795,1466,1467],{},"nl: \"Ik ga akkoord met de algemene voorwaarden.\", en: \"I agree to the terms and conditions.\"",[777,1469,1470,1473,1476],{},[795,1471,1472],{},"KvK number",[795,1474,1475],{},"On invoices",[795,1477,1395],{},[777,1479,1480,1483,1489],{},[795,1481,1482],{},"VAT number",[795,1484,1485,1486,925],{},"Your own, on invoices (",[623,1487,1488],{},"NL123456789B01",[795,1490,1395],{},[619,1492,1493,1494,1496],{},"The shop charges the VAT rates in force under Settings, ",[633,1495,303],{"href":304}," (the defaults, or\nyour own), per EU country and kind. The screens are in English and Dutch.",[619,1498,1499],{},"Elsewhere, for whoever may read orders:",[650,1501,1502,1508,1516],{},[653,1503,1504,1507],{},[628,1505,1506],{},"Dashboard card \"Orders to ship\""," (default layout, small): the count of paid, unshipped orders, with a link.",[653,1509,1510,1515],{},[628,1511,1512],{},[633,1513,1514],{"href":104},"Inbox",": the same paid orders, newest first, each opening the order beside the list.",[653,1517,1518,1523,1524,659,1527,922,1530,670,1533,1536],{},[628,1519,1520],{},[633,1521,140],{"href":1522},"\u002Fguide#search-and-keyboard-shortcuts"," (Ctrl+K): orders by number, customer name or email, the newest\nfive. ",[710,1525,1526],{},"Invoice",[710,1528,1529],{},"sale",[710,1531,1532],{},"factuur",[710,1534,1535],{},"verkoop",") find the Orders screen.",[642,1538,731],{"id":1539},"on-the-website",[619,1541,1542,1543,1546,1547,1550],{},"With the website module on, the shop gives its editor five ",[628,1544,1545],{},"starter components"," (Components screen, marked ",[710,1548,1549],{},"From\ncommerce","). An admin adds one to the library, then puts it on a page like any component; once added it is an ordinary\ncomponent. Their texts come in Dutch and English.",[650,1552,1553,1559,1577,1611,1620],{},[653,1554,1555,1558],{},[628,1556,1557],{},"Product grid",": products as cards with image, title and price (on a reduction, the lowest price of the 30 days\nbefore it, struck through), each linking to its own page. Settings: heading, intro, which products and how many (the\nProducts source below), the text when there are none. Looks: Cards and Plain.",[653,1560,1561,1564,1565,1568,1569,1572,1573,1576],{},[628,1562,1563],{},"Add to cart",": for a product's page. Bind its ",[628,1566,1567],{},"Product"," to the product's slug (",[623,1570,1571],{},"entry.slug"," on the products'\ntemplate). It shows the price, or a choice of variant with each price (sold out ones marked), a quantity and ",[628,1574,1575],{},"In\nwinkelwagen",". After adding, a message and a link to the cart page (both settings). On a reduction it adds \"Laagste\nprijs van de afgelopen 30 dagen:\" \u002F \"Lowest price of the last 30 days:\" with that price.",[653,1578,1579,1582,1583,1586,1587],{},[628,1580,1581],{},"Cart and checkout",": the cart at today's prices with quantities to change or remove, subtotal, each applying\npromotion, a discount code field, shipping, total and the VAT in it for the chosen country (none for a business\nabroad with a VAT number, when the shop sells to businesses). Then delivery details, the terms box when required, and\n",[628,1584,1585],{},"Afrekenen",", which goes on to Mollie. A visitor clicking twice orders once. Settings: heading, intro, the empty-cart\ntext and the button text.\n",[650,1588,1589,1595,1605],{},[653,1590,1591,1592,1594],{},"The terms box shows the shop's ",[628,1593,1454],{}," in the page's language (the default language's if missing).",[653,1596,1597,1598,1601,1602,1604],{},"The street and the ",[628,1599,1600],{},"house number"," are separate fields (the order's address line is the two together). A business\nmay add its ",[628,1603,1472],{}," (eight digits, kept with the order, shown in the admin).",[653,1606,708,1607,1610],{},[633,1608,1609],{"href":322},"Dutch services"," module on, its address and company lookup blocks placed above the cart fill\nthese fields in. The shop works without them.",[653,1612,1613,1616,1617,1619],{},[628,1614,1615],{},"Order status",": the page customers come back to from Mollie (make it the shop's ",[628,1618,1421],{},"). It shows whether\nthe order is paid as soon as the payment comes in, and asks again every 30 seconds for up to two minutes in case the\nconnection dropped. It reads the order from the visitor's browser: someone opening it elsewhere is pointed to their\nconfirmation email. Once shipped with a tracking number it adds \"Verzonden met PostNL, trackingnummer …\" \u002F \"Sent with\nPostNL, tracking number …\", linking to the tracking page for PostNL, DHL, DPD, UPS and GLS (plain text for another\ncarrier). Settings: heading, intro, and the texts for paid, processing and failed.",[653,1621,1622,1624,1625,1628],{},[628,1623,746],{},": for the account page. A signed-in visitor sees the orders placed with their account's email address,\nguest orders included, newest first (the last 50): number, date, total and a status (Wacht op betaling, Betaald,\nVerzonden, Terugbetaald, or Niet betaald for a failed, expired or cancelled order). With none it says \"Je hebt nog\ngeen bestellingen.\". Someone not signed in is asked to sign in (a setting, ",[623,1626,1627],{},"\u002Faccount"," by default). It works once\naccounts are on and an admin switched the shop's user capability on (its card on the Modules page). Checking out\nnever needs an account.",[619,1630,1631,1632,1634,1635,1638,1639,1642],{},"The ",[628,1633,658],{}," source (",[633,1636,1637],{"href":133},"data sources",") gives each product its title, first image, a\nformatted price (the lowest variant price, with \"from\"\u002F\"vanaf\" when variants differ), on a reduction the lowest price of\nthe 30 days before it (",[623,1640,1641],{},"was","), its SKU when it has exactly one variant, its description and its page path. Settings:\nsort (newest, price low–high, price high–low, name A–Z), category and limit (1–100, default 12). Other frontends can\nstill check out with the rules below.",[619,1644,1645],{},"Every published product gets its own page, built from the page marked as the products' template.",[619,1647,1648,1649,1652],{},"The cart is kept by the shop, with the browser keeping only a reference to it. It holds what is in it, never prices,\nwhich are read when it is shown and again at checkout, and nothing personal. It is removed when its order is placed, and\nby retention (",[628,1650,1651],{},"Carts",", 30 days by default) after its last change. Stock is held only at checkout, while the visitor\npays. A product taken off sale after it was added is left out of the cart and of the order.",[999,1654,1656],{"id":1655},"ordering-for-an-organisation","Ordering for an organisation",[619,1658,1659,1660,1663,1664,1666],{},"When accounts belong to ",[633,1661,1662],{"href":234},"organisations"," (a customer company), the shop\ngives two roles per organisation. The organisation's owners and managers give them to members on the site, and the team\non an account's ",[628,1665,788],{}," dialog:",[650,1668,1669,1682],{},[653,1670,1671,922,1674,1677,1678,1681],{},[628,1672,1673],{},"Viewer",[623,1675,1676],{},"viewer","): reads the organisation's orders (",[623,1679,1680],{},"\u002Fmy\u002Forganisations\u002F{id}\u002Forders",", the newest 50).",[653,1683,1684,922,1687,1690,1691,1694],{},[628,1685,1686],{},"Buyer",[623,1688,1689],{},"buyer",", a viewer too): keeps the organisation's delivery addresses (at most 50) and orders for it, to one\nof them (",[623,1692,1693],{},"\u002Fmy\u002Forganisations\u002F{id}\u002Fcheckout",", with the cart, the address, and the organisation's VAT number if it has\none). The order is placed as the organisation: its name as the business, reverse charge as for any business, and the\nbuyer's own address as who ordered.",[619,1696,1697,1700],{},[628,1698,1699],{},"Approvals."," An organisation can have its larger orders approved first:",[650,1702,1703,1714,1724,1735,1742,1749,1755],{},[653,1704,1705,1706,1709,1710,1713],{},"Its owners and managers set an ",[628,1707,1708],{},"approval amount"," on the site (",[623,1711,1712],{},"\u002Fmy\u002Forganisations\u002F{id}\u002Fsettings","), and the team sets\nit on the organisation's shop panel. It is in euros, with VAT. With none, no order waits.",[653,1715,1716,1717,922,1720,1723],{},"A third role, ",[628,1718,1719],{},"Approver",[623,1721,1722],{},"approver",", a viewer too), is given by the organisation's owners only.",[653,1725,1726,1727,1730,1731,1734],{},"An order above the amount waits (",[628,1728,1729],{},"Waiting for approval","). Its stock stays held for the shop's ",[628,1732,1733],{},"Hours an order waits\nfor approval"," (72 by default), there is no payment yet, and the approvers get an email.",[653,1736,1737,1738,1741],{},"An approver approves it on the site (",[623,1739,1740],{},"\u002Fmy\u002Forganisations\u002F{id}\u002Forders\u002F{order}\u002Fapprove","). Payment starts then, with the\nusual reservation time, and the answer is the link to pay: the approver may pay at once, and the buyer gets the same\nlink by email. An approver never decides on their own order.",[653,1743,1744,1745,1748],{},"Rejecting it (",[623,1746,1747],{},"…\u002Freject",", with a reason) cancels it, releases its stock and tells the buyer why.",[653,1750,1751,1752,1754],{},"When the buyer is the only approver, or there is none, the shop is emailed instead, and the team approves or rejects\non the ",[628,1753,698],{}," screen. The team can decide on any waiting order there.",[653,1756,1757],{},"An order nobody answers in time expires, as an unpaid one does. Waiting orders count towards the three unpaid orders a\ncustomer may have at a time.",[619,1759,1760,1761,1763,1764,1766],{},"The order keeps the organisation's name. When an organisation is deleted its addresses go with it, but its orders stay\nas long as the law keeps them. On SHADE's ",[628,1762,233],{}," screen, an organisation shows the shop's panel with its\norders and addresses (for whoever may read orders), and an order on the ",[628,1765,698],{}," screen says which organisation it\nwas for.",[642,1768,1770],{"id":1769},"rules-and-limits","Rules and limits",[999,1772,902],{"id":1773},"promotions-and-discount-codes",[650,1775,1776,1779,1782,1785,1788,1791,1794,1800],{},[653,1777,1778],{},"A customer gets, per product, the automatic promotion that takes most off it. Automatic free shipping applies when\nits products reach its minimum.",[653,1780,1781],{},"One code per order. A code that combines comes on top of what the automatic promotions left. One that does not gives\nthe larger of the two (free shipping counted in), and the cart says when the automatic promotions were better.",[653,1783,1784],{},"A code is case-insensitive. In a random code, spaces and hyphens are ignored and O is read as 0. A code with its own\ntext must be typed as it is.",[653,1786,1787],{},"For an unknown, used up or expired code the cart says only \"This code does not work\". A working code under its\nminimum, or for none of the products, says so. A code expires with its promotion, and at the latest after 366 days.",[653,1789,1790],{},"A code's use is counted when the order is placed, in the checkout's transaction, so two customers can never both use\na code's last use. The use belongs to the order, which keeps the promotion and code. When the order ends unpaid\n(payment fails or lapses, cancelled, rejected) the use is given back. An order paid after all takes it again and\nkeeps its discount even when the code has no use left.",[653,1792,1793],{},"Discounts come off the price with VAT, before the VAT is worked out (VAT directive, article 79): a percentage per\nproduct, an amount over the products it is for in proportion to their price. The invoice VAT is the VAT on what is\npaid. The invoice and order emails show the discount.",[653,1795,1796,1799],{},[628,1797,1798],{},"Lowest price of the last 30 days"," (Price Indication Directive, article 6a): the shop records each SKU's price when\na product is published. When a product is cheaper than before (a lower price, or an automatic percentage off with no\nminimum), the shop shows the lowest price of the 30 days before the reduction began, never a typed price. Promotions\nwith a code or a minimum are not shown this way.",[653,1801,1802,1803,1806,1807,1810],{},"Retention keeps past prices for at least 31 days (",[628,1804,1805],{},"Past prices",", 90 by default) and ended promotions for at least 31\ndays (",[628,1808,1809],{},"Ended promotions",", 365 by default). Orders keep their discounts' names and amounts.",[999,1812,1814],{"id":1813},"invoices","Invoices",[650,1816,1817,1823,1834,1844,1847],{},[653,1818,1819,1820,1822],{},"The shop does no bookkeeping. It charges the right VAT, keeps the order as charged and issues invoices and credit\ninvoices. Ledgers, VAT returns, One-Stop-Shop returns and annual accounts belong in your bookkeeping software. A\nconnector to Moneybird or Exact Online is planned (",[633,1821,591],{"href":592},"); with it on, that\nsoftware may issue the invoices instead and the shop's own are off by default.",[653,1824,1825,1826,1829,1830,1833],{},"An order gets its invoice when it is paid, never before. Invoice numbers are one unbroken series per year (",[623,1827,1828],{},"2026-0001",",\n",[623,1831,1832],{},"2026-0002","…; the year counts in the site's time zone), apart from order numbers, so unpaid orders leave no gaps. An\norder paid twice still has one invoice.",[653,1835,1836,1837,1839,1840,1843],{},"The invoice is a PDF in Dutch or English (the order's language). It shows your business's name and address (your main\nlocation, in Settings, ",[633,1838,299],{"href":300},"; the site's name while there is none), KvK and VAT\nnumber, the customer's address (and company and VAT number), number and date, order number and payment date, each\nline with quantity, price and VAT rate, shipping, the total without VAT, the VAT per rate and the total. A\nreverse-charge sale says ",[710,1841,1842],{},"Btw verlegd"," with the customer's VAT number. It is attached to the confirmation email.",[653,1845,1846],{},"Each refund makes a credit invoice in the same series, naming the invoice: minus the amount refunded, its VAT per rate\nin the share refunded. It is attached to the refund email.",[653,1848,1849,1850,1853,1854,1857],{},"Invoices and credit invoices are SHADE's fiscal records. Each PDF is kept exactly as issued, never on the website,\nuntil 1 January of the eighth year after the year it was issued, also when its order is deleted or the shop is\nremoved. Then ",[633,1851,1852],{"href":274},"retention"," deletes it. They are listed in a person's data\n(",[633,1855,1856],{"href":270},"Privacy",") with that date, but not deleted on request. While private files\nare switched off (Settings, Modules), no invoice can be made, so paid orders wait for it.",[999,1859,1861],{"id":1860},"prices-vat-and-shipping","Prices, VAT and shipping",[650,1863,1864,1867,1906,1915,1949],{},[653,1865,1866],{},"Prices are entered in euros per variant and kept in cents. Currency is EUR only. Prices are never taken from the\nvisitor's browser: at checkout the shop reads the published variants and keeps title, unit price and total per line.",[653,1868,1869,1872,1873,1135,1876,1879,1880,1883,1884,1887,1888,1890,1891,1894,1895,1898,1899,1894,1902,1905],{},[628,1870,1871],{},"VAT."," Prices include VAT. Each product has a ",[710,1874,1875],{},"VAT category",[710,1877,1878],{},"Standard rate"," (default), ",[710,1881,1882],{},"Reduced rate"," (food, books\nand other reduced-rate goods) or ",[710,1885,1886],{},"Zero rate",". The rate comes from ",[710,1889,303],{},", so a rate change needs no product\nedited. VAT per rate = round(amount × rate \u002F (100 + rate)). Shipping's VAT is split over the rates by each rate's\nshare of the goods (shipping alone: the standard rate). Each order line keeps its rate, and the order keeps the VAT per\nrate and in total, as charged. The product page says ",[710,1892,1893],{},"incl. btw"," \u002F ",[710,1896,1897],{},"incl. VAT","; the cart, both emails and the admin's\norder view list ",[710,1900,1901],{},"Waarvan btw N%",[710,1903,1904],{},"including VAT N%"," per rate. Cart and checkout calculate it the same way.",[653,1907,1908,1911,1912,1914],{},[628,1909,1910],{},"Rates charged"," are those in force when the cart or checkout calculates. An order placed just after a new rate\nstarts gets the new rate; earlier orders keep theirs. SHADE never fetches rates: when a country changes one, set it\nunder ",[710,1913,303],{}," (ahead, with its start date) until a shop release updates the defaults.",[653,1916,1917,1920],{},[628,1918,1919],{},"Other EU countries, businesses and exports:",[650,1921,1922,1927,1943],{},[653,1923,1924,1926],{},[710,1925,1354],{},": a consumer in another EU country pays the same price, with\ntheir country's VAT inside it at its rate for the product's category. The order keeps the VAT country.",[653,1928,1929,1931,1932,1935,1936,1939,1940,1942],{},[710,1930,1365],{},": the cart offers ",[710,1933,1934],{},"I am ordering for a business"," with company name and VAT\nnumber. A business in another EU country with a VAT number of that country's format pays the price without VAT. The\ncart shows ",[710,1937,1938],{},"VAT reverse-charged",", and the order, the emails (\"VAT reverse-charged (Article 196 VAT Directive): …,\nVAT number …\") and the admin say so. A Dutch business pays Dutch VAT. A number that doesn't fit the country is\nrefused (\"This is not a VAT number of the delivery country\"). The format is checked, and the number in VIES if you\nswitched that on in ",[633,1941,303],{"href":304},": VIES saying no refuses it (\"This VAT number is not\nvalid in VIES\"); VIES not answering leaves it to the format. The order keeps which check decided.",[653,1944,1945,1948],{},[710,1946,1947],{},"Exports",": a delivery outside the EU pays the price without the Dutch VAT, at 0% (Article 146 VAT Directive),\nshipping too. A business there needs no EU VAT number. The order keeps the delivery country as its VAT country, and\nthe admin, emails and invoice say \"Export outside the EU: 0% VAT\". The shop does not charge import duties or VAT in\nthe customer's country.",[653,1950,1951,1953,1954,1956,1957,1959,1960,1963,1964,1966,1967,1894,1970,1284],{},[628,1952,1343],{}," is one amount per order from the settings, or the delivery country's amount when ",[710,1955,1375],{},"\ngives one, plus the ",[710,1958,1389],{}," surcharge: the heaviest band the parcel reaches, by the sum of each line's\nvariant weight (",[710,1961,1962],{},"Weight (grams)",", with packaging; empty = 0) × quantity. It is free from the ",[710,1965,1400],{},"\namount, in every country and at any weight. The cart recalculates when the country changes. The cart and emails say\n",[710,1968,1969],{},"Gratis",[710,1971,1972],{},"free",[999,1974,1976],{"id":1975},"stock-and-reservations","Stock and reservations",[650,1978,1979,1982,1985,1988,1991,1998],{},[653,1980,1981],{},"Stock is not part of the product content (publishing or restoring a version never resets it). It is kept per SKU (on\nhand), and what orders being paid reserved is held by SHADE's holds. Available = on hand − reserved.",[653,1983,1984],{},"Variants without \"Track stock\" are unlimited. A tracked SKU with no stock set counts as 0, so it is sold out until\nsomeone sets stock.",[653,1986,1987],{},"Visitors only see a signal, never counts: in stock, low (3 or fewer), out of stock, or untracked.",[653,1989,1990],{},"At checkout, tracked SKUs are checked and reserved until \"Hold stock while paying\" runs out. If anything is short,\nnothing is reserved and checkout is refused, listing what is left. The last item is never sold twice, even when two\nvisitors check out at the same moment.",[653,1992,1993,1994,1997],{},"Every minute, pending orders past their reservation become ",[628,1995,1996],{},"Expired"," and their stock is released.",[653,1999,2000,2001,2004],{},"Stock cannot be set below what is reserved, nor from a count that changed meanwhile (the stock API takes the count it\nreplaces, ",[623,2002,2003],{},"expectedOnHand",", and answers CONFLICT when it differs). Refunds do not put stock back; count returns by\nsetting the stock again.",[999,2006,2008],{"id":2007},"checkout-and-order-numbers","Checkout and order numbers",[650,2010,2011,2018,2021,2030,2041,2056,2059,2071],{},[653,2012,2013,2014,2017],{},"A visitor can check out 10 times per minute (",[633,2015,2016],{"href":266},"request protection","). Sending\nthe same checkout again gives one order and one payment; if that attempt had failed, it is refused.",[653,2019,2020],{},"At most 3 unpaid orders at a time per email address (capitals and surrounding spaces ignored) and per IP address:\norders waiting for payment whose stock is still held. A fourth checkout is refused (\"You have 3 orders waiting for\npayment…\") until one is paid or its hold runs out. This stops a script making a drop look sold out. Two simultaneous\ncheckouts take turns. Only a keyed hash of the IP address is kept with the order's hold, and only while it waits for\npayment.",[653,2022,2023,2024,2026,2027,2029],{},"Limits: lines 1–50, quantity 1–99 per line (and per SKU after merging duplicates), name max 120, email max 254.\nUnknown or unpublished SKUs are refused. The country must be one of the shop's ",[710,2025,1375],{}," (\"The shop does\nnot ship to this country\"), and the postcode one of that country's (\"Not a postcode of this country\"; see\n",[633,2028,299],{"href":300}," for the countries whose postcodes are checked).",[653,2031,2032,2033,2036,2037,2040],{},"Order numbers are ",[623,2034,2035],{},"\u003Cyear>-\u003Csix digits>"," (e.g. ",[623,2038,2039],{},"2026-000123","), counted per year in the site's time zone. Failed\ncheckouts keep their number.",[653,2042,2043,2044,2046,2047],{},"Payment goes through the ",[633,2045,635],{"href":358},": Mollie's hosted checkout, in the page's language, with the\ndescription \"",[2048,2049,2051,2052],"site",{"name":2050},""," ",[2053,2054,2055],"order",{"number":2050},"\", returning the customer to the order page. If starting the payment fails,\nthe order is marked Failed and its stock released.",[653,2057,2058],{},"The terms checkbox is required in the browser. Its text and the time are stored with the order and shown in the\nadmin (\"Terms accepted: …\").",[653,2060,2061,2064,2065,2067,2068,2070],{},[628,2062,2063],{},"Require accepting the terms:"," checkout refuses an order without accepted terms, or whose text is not one of the\nshop's ",[628,2066,1454],{}," (any language, surrounding spaces ignored). Without the setting nothing is checked and a ticked\ntext is kept as sent. The accepted text is kept as proof: the text, its version, the customer and when, in their data\non the Personal data screen and kept on erasure, for seven years by default\n(",[633,2069,273],{"href":274},"). A sale of goods carries the EU's 14 days to withdraw from\nthe day they arrive.",[653,2072,2073,2076],{},[628,2074,2075],{},"SKUs are unique."," Publishing a product is refused when one of its SKUs is used twice in it, or sold by another\npublished product (\"Another product already sells this SKU: …\"), since stock is kept per SKU.",[999,2078,2080],{"id":2079},"payment-and-order-statuses","Payment and order statuses",[650,2082,2083,2093,2102,2105,2108,2111,2142,2148],{},[653,2084,2085,2088,2089,2092],{},[628,2086,2087],{},"Paid"," (for a pending, expired or failed order): the reserved stock is taken and the order becomes Paid. If the\nreservation had lapsed, the stock is taken anyway when there is enough. Otherwise the order is marked ",[628,2090,2091],{},"oversold"," (a\nwarning in the admin and the shop's email) for someone to decide. It is never refunded automatically. Repeated\nreports do nothing.",[653,2094,2095,2098,2099,2101],{},[628,2096,2097],{},"Failed or cancelled"," (pending order): Failed, stock released. ",[628,2100,1996],{},": Expired, stock released.",[653,2103,2104],{},"Statuses: Pending, Paid, Failed, Expired, Shipped, Cancelled, Refunded.",[653,2106,2107],{},"Manual changes: Paid → Shipped; Pending → Cancelled (stock released). A paid order is cancelled by refunding it.\nAnything else is refused.",[653,2109,2110],{},"Cancelling also cancels the Mollie payment where Mollie allows it (bank transfer and some other methods; an open card\nor iDEAL payment cannot be cancelled and simply expires). If the customer still pays, the order becomes Paid like a\nlate payment (taking the stock if there is some, otherwise oversold), the customer gets the usual confirmation, and\nthe shop's email starts with \"PAID AFTER IT WAS CANCELLED: … Ship it, or refund it under Orders.\"",[653,2112,2113,2116,2117,2119,2120,2122,2123,2126,2127,659,2130,2133,2134,2137,2138,2141],{},[628,2114,2115],{},"Carrier and tracking number"," are set together, on a paid order (going with ",[628,2118,1138],{},") or a shipped one (to\ncorrect them; no second email). The carrier is 2 to 40 letters, digits, spaces, dots, dashes, ampersands and\napostrophes. The tracking number is 4 to 40 letters, digits and dashes (spaces dropped). Links go only to the fixed\nhttps tracking pages of PostNL, DHL, DPD, UPS and GLS, never to a typed address; PostNL's link carries the delivery\ncountry and postcode. Through the API (",[623,2121,859],{},"), which is how a carrier module sets them:\n",[623,2124,2125],{},"PATCH \u002Forders\u002F:id\u002Fstatus"," with ",[623,2128,2129],{},"carrier",[623,2131,2132],{},"trackingNumber"," beside ",[623,2135,2136],{},"status: \"fulfilled\"",", or\n",[623,2139,2140],{},"PUT \u002Forders\u002F:id\u002Ftracking"," with both.",[653,2143,2144,2147],{},[628,2145,2146],{},"Refunds"," apply to paid or shipped orders, for any amount up to what is left. A full refund makes the order\nRefunded. A partial refund keeps its status and adds to the refunded amount. Simultaneous refunds wait for each other.\nA refund Mollie already holds but the order doesn't (made in Mollie's dashboard, or one whose recording failed)\ncounts toward the amount asked: only the rest goes to Mollie, and the order and its credit invoice record both.",[653,2149,2150,2153],{},[628,2151,2152],{},"Refunds made in Mollie's dashboard:"," when Mollie reports one, the order records it at once (refunded amount,\nRefunded when nothing is left, a credit invoice and the refund email), in the audit log as made at the payment\nprovider. Only what the order did not hold yet counts, so a refund is never counted twice.",[999,2155,2157],{"id":2156},"emails","Emails",[619,2159,2160,2161,2163,2164,2167],{},"Sent through ",[633,2162,639],{"href":288},". Each is queued in the same transaction as the order's change and sent\nby the background work right after, so an email is never lost when SHADE stops in between. One that cannot go is tried\n6 more times, a minute apart and doubling (to an hour); past that it is in the error log and on the module's health\ncard. The order never waits for its email. The module needs the ",[623,2165,2166],{},"queue"," capability for this, which its consent lists.",[650,2169,2170,2173,2176,2179,2182],{},[653,2171,2172],{},"To the customer on payment: plain text, Dutch or English (the checkout's language, else the site's default): greeting,\nlines, shipping, total and the VAT per rate. Reply-to is the first notification address.",[653,2174,2175],{},"To the shop (each \"Email new orders to\" address): English, with the customer, lines and totals, and an OVERSOLD\nwarning when relevant. Reply-to is the customer.",[653,2177,2178],{},"To the customer when shipped: \"Je bestelling … is onderweg\" \u002F \"Your order … is on its way\", with the delivery address,\nthe carrier and tracking number with the tracking page when set, and the lines.",[653,2180,2181],{},"To the customer on a refund: \"Terugbetaling van bestelling … bij …\" \u002F \"Refund of order … at …\", with the amount and\nthe credit invoice attached (the reason also goes to Mollie, which shows it to the customer).",[653,2183,2184],{},"No emails on failure or cancellation: the business tells the customer itself.",[999,2186,2188],{"id":2187},"switching-off-and-uninstalling","Switching off and uninstalling",[619,2190,2191,2192,1284],{},"See ",[633,2193,317],{"href":318},[650,2195,2196,2199,2202],{},[653,2197,2198],{},"The turn-off dialog warns (does not block) when there are pending orders or paid orders not yet shipped. Because the\nmodule holds data, its name must be typed to confirm. Product pages can be redirected elsewhere while it is off; the\nredirects disappear when it is switched on again.",[653,2200,2201],{},"While off, cart and checkout stop working, expired reservations are not released, and payment updates are not passed\nto it.",[653,2203,2204],{},"Export and uninstall work as for any module: uninstall first backs up the settings, orders, products and categories,\nthen deletes them.",[999,2206,2208],{"id":2207},"personal-data","Personal data",[650,2210,2211,2221,2228,2239,2242],{},[653,2212,2213,2214,2217,2218,2220],{},"Orders hold the customer's name, email and delivery address, the language and the amounts. They are not linked to a\nuser account (",[633,2215,2216],{"href":250},"accounts","): ",[628,2219,746],{}," finds them by the account's\nconfirmed email address, so deleting an account leaves its orders as they are.",[653,2222,2223,2224,2227],{},"A name and delivery address a signed-in customer saved (",[623,2225,2226],{},"\u002Fmy\u002Fprofile",") are kept on their account, one per account.\nThey are shown and exported with the account's data on the Personal data screen, deleted when the customer asks, and\ndeleted with the account. Orders keep their own copy as charged.",[653,2229,2230,2231,2234,2235,2238],{},"Orders are kept seven years by default (the Dutch bookkeeping term) and then deleted with their lines. An order with a\nlater credit invoice is kept until that invoice is seven years old too (see ",[633,2232,2233],{"href":274},"Data\nretention","). A customer's orders are shown and exported on the ",[633,2236,2237],{"href":270},"Personal\ndata"," screen but kept when they ask for deletion (bookkeeping law); they are\nnot anonymised early. Orders never paid go after 90 days.",[653,2240,2241],{},"The order page reveals only the number and status, and once shipped the carrier and tracking number (PostNL's link\nholds the postcode), and only to someone with the order's random id.",[653,2243,2244],{},"AI assistants have no access to orders: they never see customers.",[999,2246,2248],{"id":2247},"order-events-for-other-systems","Order events for other systems",[619,2250,2251,2252,2254,2255,2258],{},"An optional capability of the shop (",[633,2253,295],{"href":296},"): switch it on on the Modules page, then\npick its events for an address on the Webhooks screen. Each carries the order: id, number and status, the customer's\nname, email and address (and company and VAT number), amounts and VAT, what was refunded (each amount as\n",[623,2256,2257],{},"{ amount, currency }",": whole cents and currency), the carrier and tracking number (or null), and the lines.",[650,2260,2261,2267,2278,2288],{},[653,2262,2263,2266],{},[623,2264,2265],{},"commerce.order.created",": a customer placed an order and went to pay (not paid yet).",[653,2268,2269,2272,2273,659,2276,1284],{},[623,2270,2271],{},"commerce.order.paid",": the order was paid, with ",[623,2274,2275],{},"paidAfterCancel",[623,2277,2091],{},[653,2279,2280,2283,2284,2287],{},[623,2281,2282],{},"commerce.order.cancelled",": the order was cancelled, or its payment failed or expired (its ",[623,2285,2286],{},"status"," says which).",[653,2289,2290,2293,2294,1284],{},[623,2291,2292],{},"commerce.order.refunded",": part or all of it was refunded, with this refund's ",[623,2295,2296],{},"amount",[642,2298,2300],{"id":2299},"without-the-website-module","Without the website module",[619,2302,2303,2304,2307,2308,2311],{},"A site built in its own code, in any framework, can still be a shop. The package ",[623,2305,2306],{},"@shadestack\u002Fcommerce-client"," gives it\nwhat the starter components do for the website editor: typed functions for the shop's routes and a cart that keeps its\nown state. It is released with the commerce module, at the same version, and needs only ",[623,2309,2310],{},"@shadestack\u002Fclient"," beside it.",[2313,2314,2318],"pre",{"className":2315,"code":2316,"language":2317,"meta":2050,"style":2050},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { createCart, getProduct } from '@shadestack\u002Fcommerce-client'\n\n\u002F\u002F On the server, for a product page:\nconst product = await getProduct({ slug: 'mok', locale: 'nl' }, { baseUrl: process.env.SHADE_API_URL })\n\n\u002F\u002F In the browser:\nconst cart = createCart({ locale: 'nl' })\nawait cart.add(product.sku)\nconst { pay } = await cart.checkout({ fullName, email, line1, houseNumber, postalCode, city, country: 'NL' })\nlocation.assign(pay)\n","ts",[623,2319,2320,2358,2365,2372,2454,2459,2465,2495,2517,2591],{"__ignoreMap":2050},[2321,2322,2325,2329,2333,2337,2340,2343,2346,2349,2352,2355],"span",{"class":2323,"line":2324},"line",1,[2321,2326,2328],{"class":2327},"s7zQu","import",[2321,2330,2332],{"class":2331},"sMK4o"," {",[2321,2334,2336],{"class":2335},"sTEyZ"," createCart",[2321,2338,2339],{"class":2331},",",[2321,2341,2342],{"class":2335}," getProduct",[2321,2344,2345],{"class":2331}," }",[2321,2347,2348],{"class":2327}," from",[2321,2350,2351],{"class":2331}," '",[2321,2353,2306],{"class":2354},"sfazB",[2321,2356,2357],{"class":2331},"'\n",[2321,2359,2361],{"class":2323,"line":2360},2,[2321,2362,2364],{"emptyLinePlaceholder":2363},true,"\n",[2321,2366,2368],{"class":2323,"line":2367},3,[2321,2369,2371],{"class":2370},"sHwdD","\u002F\u002F On the server, for a product page:\n",[2321,2373,2375,2379,2382,2385,2388,2391,2394,2397,2401,2404,2406,2409,2412,2414,2417,2419,2421,2423,2425,2428,2430,2433,2435,2438,2440,2443,2445,2448,2451],{"class":2323,"line":2374},4,[2321,2376,2378],{"class":2377},"spNyl","const",[2321,2380,2381],{"class":2335}," product ",[2321,2383,2384],{"class":2331},"=",[2321,2386,2387],{"class":2327}," await",[2321,2389,2342],{"class":2390},"s2Zo4",[2321,2392,2393],{"class":2335},"(",[2321,2395,2396],{"class":2331},"{",[2321,2398,2400],{"class":2399},"swJcz"," slug",[2321,2402,2403],{"class":2331},":",[2321,2405,2351],{"class":2331},[2321,2407,2408],{"class":2354},"mok",[2321,2410,2411],{"class":2331},"'",[2321,2413,2339],{"class":2331},[2321,2415,2416],{"class":2399}," locale",[2321,2418,2403],{"class":2331},[2321,2420,2351],{"class":2331},[2321,2422,1460],{"class":2354},[2321,2424,2411],{"class":2331},[2321,2426,2427],{"class":2331}," },",[2321,2429,2332],{"class":2331},[2321,2431,2432],{"class":2399}," baseUrl",[2321,2434,2403],{"class":2331},[2321,2436,2437],{"class":2335}," process",[2321,2439,1284],{"class":2331},[2321,2441,2442],{"class":2335},"env",[2321,2444,1284],{"class":2331},[2321,2446,2447],{"class":2335},"SHADE_API_URL ",[2321,2449,2450],{"class":2331},"}",[2321,2452,2453],{"class":2335},")\n",[2321,2455,2457],{"class":2323,"line":2456},5,[2321,2458,2364],{"emptyLinePlaceholder":2363},[2321,2460,2462],{"class":2323,"line":2461},6,[2321,2463,2464],{"class":2370},"\u002F\u002F In the browser:\n",[2321,2466,2468,2470,2473,2475,2477,2479,2481,2483,2485,2487,2489,2491,2493],{"class":2323,"line":2467},7,[2321,2469,2378],{"class":2377},[2321,2471,2472],{"class":2335}," cart ",[2321,2474,2384],{"class":2331},[2321,2476,2336],{"class":2390},[2321,2478,2393],{"class":2335},[2321,2480,2396],{"class":2331},[2321,2482,2416],{"class":2399},[2321,2484,2403],{"class":2331},[2321,2486,2351],{"class":2331},[2321,2488,1460],{"class":2354},[2321,2490,2411],{"class":2331},[2321,2492,2345],{"class":2331},[2321,2494,2453],{"class":2335},[2321,2496,2498,2501,2504,2506,2509,2512,2514],{"class":2323,"line":2497},8,[2321,2499,2500],{"class":2327},"await",[2321,2502,2503],{"class":2335}," cart",[2321,2505,1284],{"class":2331},[2321,2507,2508],{"class":2390},"add",[2321,2510,2511],{"class":2335},"(product",[2321,2513,1284],{"class":2331},[2321,2515,2516],{"class":2335},"sku)\n",[2321,2518,2520,2522,2524,2527,2529,2532,2534,2536,2538,2541,2543,2545,2548,2550,2553,2555,2558,2560,2563,2565,2568,2570,2573,2575,2578,2580,2582,2585,2587,2589],{"class":2323,"line":2519},9,[2321,2521,2378],{"class":2377},[2321,2523,2332],{"class":2331},[2321,2525,2526],{"class":2335}," pay ",[2321,2528,2450],{"class":2331},[2321,2530,2531],{"class":2331}," =",[2321,2533,2387],{"class":2327},[2321,2535,2503],{"class":2335},[2321,2537,1284],{"class":2331},[2321,2539,2540],{"class":2390},"checkout",[2321,2542,2393],{"class":2335},[2321,2544,2396],{"class":2331},[2321,2546,2547],{"class":2335}," fullName",[2321,2549,2339],{"class":2331},[2321,2551,2552],{"class":2335}," email",[2321,2554,2339],{"class":2331},[2321,2556,2557],{"class":2335}," line1",[2321,2559,2339],{"class":2331},[2321,2561,2562],{"class":2335}," houseNumber",[2321,2564,2339],{"class":2331},[2321,2566,2567],{"class":2335}," postalCode",[2321,2569,2339],{"class":2331},[2321,2571,2572],{"class":2335}," city",[2321,2574,2339],{"class":2331},[2321,2576,2577],{"class":2399}," country",[2321,2579,2403],{"class":2331},[2321,2581,2351],{"class":2331},[2321,2583,2584],{"class":2354},"NL",[2321,2586,2411],{"class":2331},[2321,2588,2345],{"class":2331},[2321,2590,2453],{"class":2335},[2321,2592,2594,2597,2599,2602],{"class":2323,"line":2593},10,[2321,2595,2596],{"class":2335},"location",[2321,2598,1284],{"class":2331},[2321,2600,2601],{"class":2390},"assign",[2321,2603,2604],{"class":2335},"(pay)\n",[619,2606,2607,2608,670,2611,670,2614,670,2617,670,2620,670,2623,1829,2626,659,2629,2632],{},"The route functions are ",[623,2609,2610],{},"getProduct",[623,2612,2613],{},"viewCart",[623,2615,2616],{},"addToCart",[623,2618,2619],{},"setCartQuantity",[623,2621,2622],{},"setCartCode",[623,2624,2625],{},"checkoutCart",[623,2627,2628],{},"getOrderStatus",[623,2630,2631],{},"getMyOrders",". A product page can read its product on the server. The cart renders in the browser,\nsince that is where its id is kept.",[619,2634,2635,2638,2639,670,2642,670,2644,670,2647,670,2650,670,2653,2656,2657,2659,2660,2663,2664,659,2667,2670,2671,2674,2675,2677],{},[623,2636,2637],{},"createCart()"," makes a cart with ",[623,2640,2641],{},"load",[623,2643,2508],{},[623,2645,2646],{},"set",[623,2648,2649],{},"remove",[623,2651,2652],{},"setCode",[623,2654,2655],{},"setDelivery"," (the country and VAT number\nthe totals are for) and ",[623,2658,2540],{},", and a ",[623,2661,2662],{},"store"," any framework can read: ",[623,2665,2666],{},"subscribe",[623,2668,2669],{},"getSnapshot"," (a Svelte store,\nor React through ",[623,2672,2673],{},"useSyncExternalStore","). Its state says whether it is loading, saving or showing an error. An error\ncarries SHADE's key and the problem per field, so a form can show each message beside its field. A shopper who presses\n",[628,2676,1585],{}," twice, or whose connection drops while paying, still places one order: the cart sends the same\nidempotency key with every retry of one attempt.",[619,2679,2680,2681,2684],{},"After checkout the customer pays and comes back to your order page. ",[623,2682,2683],{},"createOrderStatus()"," shows the order they just\nplaced and keeps it up to date while the order is open (waiting for approval, or its payment being processed). It hears\nat once when the shop approves the order or marks it paid, and checks again every 30 seconds. Its state holds the\norder's number, status and, once sent, the carrier and tracking number.",[2313,2686,2688],{"className":2315,"code":2687,"language":2317,"meta":2050,"style":2050},"const order = createOrderStatus()\norder.store.subscribe(({ data }) => showStatus(data.order?.status))\nawait order.load()\n",[623,2689,2690,2705,2748],{"__ignoreMap":2050},[2321,2691,2692,2694,2697,2699,2702],{"class":2323,"line":2324},[2321,2693,2378],{"class":2377},[2321,2695,2696],{"class":2335}," order ",[2321,2698,2384],{"class":2331},[2321,2700,2701],{"class":2390}," createOrderStatus",[2321,2703,2704],{"class":2335},"()\n",[2321,2706,2707,2709,2711,2713,2715,2717,2719,2722,2726,2729,2732,2735,2738,2740,2742,2745],{"class":2323,"line":2360},[2321,2708,2053],{"class":2335},[2321,2710,1284],{"class":2331},[2321,2712,2662],{"class":2335},[2321,2714,1284],{"class":2331},[2321,2716,2666],{"class":2390},[2321,2718,2393],{"class":2335},[2321,2720,2721],{"class":2331},"({",[2321,2723,2725],{"class":2724},"sHdIc"," data",[2321,2727,2728],{"class":2331}," })",[2321,2730,2731],{"class":2377}," =>",[2321,2733,2734],{"class":2390}," showStatus",[2321,2736,2737],{"class":2335},"(data",[2321,2739,1284],{"class":2331},[2321,2741,2053],{"class":2335},[2321,2743,2744],{"class":2331},"?.",[2321,2746,2747],{"class":2335},"status))\n",[2321,2749,2750,2752,2755,2757,2759],{"class":2323,"line":2367},[2321,2751,2500],{"class":2327},[2321,2753,2754],{"class":2335}," order",[2321,2756,1284],{"class":2331},[2321,2758,2641],{"class":2390},[2321,2760,2704],{"class":2335},[619,2762,2763,2764,2767],{},"On an account page, ",[623,2765,2766],{},"createMyOrders()"," lists a signed-in visitor's own orders with status and total. For a visitor who\nisn't signed in its error has status 401, so the page can ask them to sign in.",[619,2769,2770,2773,2774,2777,2778,2781],{},[628,2771,2772],{},"One cart with the starters."," The browser keeps only the cart's id, in local storage under ",[623,2775,2776],{},"shade.kept.cart",", the same\nkey the Add to cart and Cart starter components use. After checkout it keeps the order's id under ",[623,2779,2780],{},"shade.kept.order",",\nas the Cart and Order status starters do. A site that mixes editor pages with pages of its own has one cart and one\norder page, and a change in one tab reaches the others. Keeping the ids needs no consent: they hold no personal data\nand exist only once a visitor adds something or orders.",[619,2783,2784,2785,2788,2789,765],{},"The package's README is the full contract, with snippets for React, Vue and Svelte. The ",[623,2786,2787],{},"shop"," starter is a whole shop\nbuilt on it (",[633,2790,2792],{"href":2791},"\u002Fdevelopers\u002Fframeworks#use-case-starters","Use-case starters",[642,2794,2796],{"id":2795},"for-developers","For developers",[619,2798,2799,2800,2803,2804,2807],{},"The code and its tests: the README of ",[623,2801,2802],{},"shade-plugin-commerce","; the client package's in its ",[623,2805,2806],{},"client\u002F"," folder.",[2809,2810,2811],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}",{"title":2050,"searchDepth":2360,"depth":2360,"links":2813},[2814,2815,2816,2819,2824,2827,2839,2840],{"id":644,"depth":2360,"text":645},{"id":768,"depth":2360,"text":769},{"id":968,"depth":2360,"text":764,"children":2817},[2818],{"id":1001,"depth":2367,"text":1002},{"id":1090,"depth":2360,"text":1091,"children":2820},[2821,2822,2823],{"id":1109,"depth":2367,"text":698},{"id":1198,"depth":2367,"text":716},{"id":1317,"depth":2367,"text":1318},{"id":1539,"depth":2360,"text":731,"children":2825},[2826],{"id":1655,"depth":2367,"text":1656},{"id":1769,"depth":2360,"text":1770,"children":2828},[2829,2830,2831,2832,2833,2834,2835,2836,2837,2838],{"id":1773,"depth":2367,"text":902},{"id":1813,"depth":2367,"text":1814},{"id":1860,"depth":2367,"text":1861},{"id":1975,"depth":2367,"text":1976},{"id":2007,"depth":2367,"text":2008},{"id":2079,"depth":2367,"text":2080},{"id":2156,"depth":2367,"text":2157},{"id":2187,"depth":2367,"text":2188},{"id":2207,"depth":2367,"text":2208},{"id":2247,"depth":2367,"text":2248},{"id":2299,"depth":2360,"text":2300},{"id":2795,"depth":2360,"text":2796},"md",null,{},{"title":333,"description":2050},"ZvW8gehG3hStMOKNVlRtpPdrEivMcctiXi_EPGc83DY",[2847,2848],{"title":329,"path":330,"stem":331,"description":2050,"children":-1},{"title":337,"path":338,"stem":339,"description":2050,"children":-1},1796500150683]