# Publishing and the theme store

How a theme gets into the theme store - listing, pricing, demo store, versions, updates, trials and licences.

The [theme store](https://themes.shopdepot.pl/) is the public catalogue merchants install themes from. Each theme has a listing page, a live demo store and an "Add to store" button.

## How a theme gets listed

1. Build and test the theme in a development store.
2. Go through the [review checklist](checklist.md).
3. Send the package (a ZIP of the theme folder) to the ShopDepot team. We publish it to the theme registry - first as **private**, visible only to you, then **public** after review.

Self-service submission for partners is on the roadmap. Until then, everything below is what we look at in your package.

## The listing comes from the package

The theme store page is built from [`theme.json`](theme-json.md): `name`, `summary`, `description`, `categories`, the `catalog` block (tagline, highlights, documentation and support links) and `pricing`. The listing always shows what the **published version** says - to change the text or the price, publish a new version. Screenshots are the only part uploaded separately; until there are some, the catalogue tile is drawn from the `preview` colours.

Write the listing for merchants: what kind of store the theme suits, what it does well, in plain words. Do not promise features the platform provides to every theme (checkout, SEO, payments).

## Demo store

Every theme in the store has a live demo with its own categories, offers, pages, posts and menus, so merchants judge it on a store that looks finished. The data ships **inside the package**, in `demo/`:

```text
demo/
├── store.json        name and language of the demo store
├── categories.json   the category tree - { slug, name, parent }
├── products.json     offers - slug, title, category, price, sale price, stock, descriptions
├── pages.json        content pages
├── posts.json        blog posts
├── menus.json        menus for your placements
└── presets.json      colour variants
```

The demo data is never copied into a merchant's store when they install the theme. Product photos in the demo are drawn by the platform from your theme colours, so the package does not carry stock images.

`presets.json` lists colour variants of the theme - `{ id, name, settings }` with values for your colour settings. The listing shows them as swatches and the demo switches between them with `?preset=<id>`, without separate stores.

The demo store is read-only: visitors can browse and use the cart, nothing else saves. Pages carry `noindex` and an "Add to store" bar.

## Versions

Every package version has a [semantic version](https://semver.org/) in `theme.json`. Versions are never overwritten or deleted; a broken one can be withdrawn (yanked) so nobody new installs it.

- **Patch** (`1.4.1`) - fixes that change nothing a merchant set.
- **Minor** (`1.5.0`) - new sections, blocks or settings with defaults, nothing removed.
- **Major** (`2.0.0`) - anything that changes the settings schema or the layout in a way that needs the merchant's attention.

## Updates in stores

Publishing a version changes nothing in any store by itself. Then:

- A store whose copy of the theme was **not edited** moves to the newest patch or minor version automatically - straight to the newest, skipping the ones in between.
- A copy the merchant **edited** in code never updates by itself.
- A **major** version is always a button the merchant presses.
- The merchant can switch automatic updates off, and "reset to the package version" puts a copy back under them.

Settings survive updates: values the merchant set are kept, new settings get your defaults. See [Settings](settings.md#updates).

## Trials and licences

A paid theme installs into any store **as a trial**. The merchant can see it in their library and preview it on their own products and data, but cannot customize, edit or publish it - the buttons say "Buy" instead. Buying gives a licence **for that store**:

- the licence belongs to the store, not to the merchant's account, and survives uninstalling the theme,
- every copy of the theme in that store (duplicates included) becomes editable and publishable,
- an expired subscription keeps the theme live - the store only stops receiving updates.

In a development store every theme is fully usable, so you can build and test paid themes there.

## Free themes

`"pricing": { "model": "free" }`, or no `pricing` at all. A free theme installs, customizes and publishes in any store.
