# SyncSHOP documentation

Written alongside the code; the project website publishes it for each release.

## Installing

- [Installation](installation.md): the install wizard and `syncshop:install`
- [Deployment](deployment.md): server requirements, one-time setup and releasing

## For developers

- [Running SyncSHOP locally](development/local-setup.md): setup, `https://syncshop.test`, `composer dev`, Mailpit
- [The project website](development/website.md): syncshop.ro, served by the SaaS app: the site that publishes these docs, our admin and the package server
- [Updates, data feeds and releases](development/updates.md): `syncshop:update`, the signed feeds and `composer release`
- [Code layout](development/packages.md): the `syncshop/core`, `syncshop/theme-default` and `syncshop/skeleton` packages and how they load
- [Writing an extension](development/extensions.md): the package, the registries and the contract check
- [Extension API](development/extension-api.md): the `@api` types extensions and themes may use (generated)
- [Quality checks](development/quality-checks.md): `composer check`, the accessibility check and the Core Web Vitals budget
- [Admin interface](development/admin-ui.md): how the admin styles, components, icons and menu fit together
- [The catalog](development/catalog.md): products, variants, the category tree, attributes and GPSR
- [Search](development/search.md): the search contract, PostgreSQL and Typesense, failover and the outbox
- [Storage](development/storage.md): the media disks, the bucket settings and moving files
- [Cart and totals](development/cart-and-totals.md): carts, the totals pipeline and its stages, the SGR deposit, checkout and placing orders
- [Promotions and vouchers](development/promotions.md): the promotions and voucher stages, matching, offers and the Omnibus history
- [Affiliates](development/affiliates.md): link visits and consent, the referral cookie, attribution of orders
- [Loyalty](development/loyalty.md): the points ledger, the loyalty slot, earning and reversing with the order
- [Marketing: product feeds and the newsletter](development/marketing.md): the feed catalog, the quality gate, writers, rebuilds; double opt-in, consent proof, Newsman and Klaviyo
- [Drivers](development/drivers.md): registering drivers, credentials, the call log, webhooks, and the payment, courier and invoicing contracts
- [Customers](development/customers.md): shopper accounts, their guard, e-mail confirmation, resets, cart merge and claimed orders
- [Digital products](development/digital.md): the Digital module, download entitlements and electronic delivery
- [Licensing](development/licensing.md): licence keys, pools, activations and the signed licence API
- [Analytics](development/analytics.md): the append-only profit ledger, what each order books and the cost snapshot
- [Invoicing](development/invoicing.md): invoice drivers and the e-Factura (CIUS-RO) XML
- [B2B](development/b2b.md): companies, buyers, the buyer's price context and the ANAF register
- [Orders](development/orders.md): the order book, the status machine and its stock effects, events and the order e-mails
- [Legacy import](development/legacy-import.md): the old database, steps, the id map and the import contracts
- [Storefront API](development/storefront-api.md): customer tokens, the catalogue and the cart for apps and headless front ends
- [Storefront MCP server](development/mcp.md): the tools AI assistants call, the door, agent baskets and the checkout link
- [Integration API](development/api.md): declaring a resource, keys, limits, the log, OpenAPI and Postman
- [Subscriptions](development/subscriptions.md): plans, the renewal engine, dunning and self-service
- [Content pages](development/content.md): pages, slug history, Markdown rendering and the legal templates
- [Storefront](development/storefront.md): the theme module, its contracts, languages and routes, the `--store-*` layer
- [Supplier imports](development/sourcing.md): supplier feeds, the safe fetcher, the reader, matching, the dictionary
- [Inventory](development/inventory.md): stock per location, the movements ledger and reservations
- [Pricing](development/pricing.md): the buyer's context, price lists, tiers and currencies
- [Money, VAT, exchange rates and addresses](development/money-and-vat.md): amounts, dated VAT rates, BNR rates and the SIRUTA register

## For shop owners and staff

- [Signing in and two-factor authentication](admin/account-security.md)
- [Users and roles](admin/users-and-roles.md)
- [Scheduled tasks](admin/scheduled-tasks.md)
- [Extensions](admin/extensions.md): what is installed next to SyncSHOP and where it shows up
- [Updates, VAT rates and the SGR deposit](admin/updates.md): versions, the licence key and the legal data received automatically
- [Catalog](admin/catalog.md): products, categories, brands, attributes, manufacturers and GPSR
- [Locations](admin/locations.md): shops, pickup points, warehouses and their hours
- [In-store sales](admin/store-sales.md): the cash registers' receipts imported (CSV or API), stock and revenue per store
- [Stock](admin/stock.md): goods receipts with costs and the weighted average cost; stock per location, receipts, corrections and stocktakes
- [Promotions and vouchers](admin/promotions.md): promotions by schedule, buy X get Y, tiers, free delivery, and voucher codes
- [Affiliates](admin/affiliates.md): affiliates with a link and a coupon, how orders are credited to them
- [Marketplace orders](admin/marketplaces.md): eMAG orders brought into the shop, accepted there, their status kept in step, and why one waits
- [Blog](admin/blog.md): articles in categories, with their products, questions and a cover, scheduled and previewed
- [Supplier imports](admin/supplier-imports.md): supplier feeds (CSV, XML, JSON), costs and prices, new products as drafts, the dictionary
- [Expiry dates](admin/expiry-dates.md): lots and best-before dates in stock, nearest first, short-date discount tiers
- [Bundles and packs](admin/bundles.md): variants made of other variants, sold as one line, stock from their components
- [Campaign pages](admin/landing-pages.md): pages built from rows, columns and modules (text, products, banners, brands), scheduled and previewed
- [Loyalty points](admin/loyalty.md): points earned on delivered orders and spent in the cart, the rules, corrections
- [Newsletter](admin/newsletter.md): subscribing with double opt-in, leaving in one click, the proof of consent, Newsman and Klaviyo
- [Product feeds](admin/feeds.md): feeds for Google, Meta, TikTok, Compari, CSV and JSON, what goes in and when they are rebuilt
- [Customer accounts](admin/customer-accounts.md): signing up and in, confirming the e-mail, new passwords, orders and carts in the account
- [Digital products](admin/digital-products.md): downloads, their files and versions, link rules, the consent for immediate delivery; licence keys and the licence API; gift cards
- [Cookies and privacy](admin/privacy.md): the cookie question, Consent Mode v2, a customer's data export and erasure, retention
- [Importing from the previous version](admin/legacy-import.md): connecting to the old database, the steps, dry runs, 301s
- [Analytics](admin/analytics.md): sales, profit, the monthly P&L, margins, exports
- [AI](admin/ai.md): your own provider keys, features, budgets, usage
- [Chat](admin/chat.md): the website chat, hours, the inbox
- [API keys](admin/api.md): keys for ERPs and other systems, their scopes, the call log and the reference
- [Subscriptions](admin/subscriptions.md): plans, renewals on the saved card, unpaid renewals, what customers can do
- [Pages and legal pages](admin/pages.md): your own pages and the legal ones from templates (terms, privacy, delivery and returns, withdrawal form, consumer information, accessibility statement)
- [Company details](admin/company.md): the shop's own company, from ANAF, for invoices, e-Factura and legal pages
- [Company accounts](admin/companies.md): B2B companies checked against ANAF, their price group, terms and buyers
- [Orders](admin/orders.md): the order list, an order's page, statuses and the e-mails customers get
- [Prices](admin/prices.md): price lists, tiers and customer groups
- [Currencies](admin/currencies.md): shopping in euro and other currencies, rates, markup and rounding
- [The online shop](admin/storefront.md): the storefront's pages, cart and checkout, delivery and payment settings, languages, appearance and AI crawlers
- [Integrations](admin/integrations.md): card payments, couriers and invoicing services, credentials and demo services
- [Search](admin/search.md): PostgreSQL or a Typesense cluster, the connection test and rebuilding the index
- [Storage](admin/storage.md): keeping images and files on the server or in an S3 bucket

More guides are added as the features land.
