> For the complete documentation index, see [llms.txt](https://help.pixfizz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.pixfizz.com/products-and-design/export-and-import-price-variables.md).

# Export & Import Price Variables

### Exporting and Importing Price Variables <a href="#rra" id="rra"></a>

Price Variables are named numeric values you define once in admin and reference by name across your pricing formulas — update the variable in one place and every formula using it reflects the change automatically.Until now, Price Variables had to be created and edited one at a time in the admin. With export/import support, you can now manage them in bulk: export your variables to a file, edit them all at once, and re-import — even across different sites.

#### What you can do with it <a href="#rrd" id="rrd"></a>

Bulk price updates. Running a seasonal price adjustment across dozens of variables? Export, update the values in one pass, and re-import. No more clicking through the admin variable by variable.Replicate pricing across sites. If you run multiple Pixfizz sites, you can export the Price Variables from one site and import them into another — ideal for launching a new storefront with an existing pricing structure already in place.Faster onboarding. New sites that need hundreds of Price Variables can now be prepared in a single file and loaded in one import, instead of being built manually.

#### How it works <a href="#rrh" id="rrh"></a>

Products → Price Variables in your admin.Click Export to download your current Price Variables as a.yml(YAML) file.Open the file in any text editor and make your edits.Return to the same admin page and click Import, selecting your edited file. Your Price Variables update, and every pricing formula that references them picks up the new values automatically.

#### Editing the file <a href="#rrn" id="rrn"></a>

The export is a plain-text YAML file. Each Price Variable is a small block of four lines:- id: 2149 name: print\_4x6 value: '0.69' description: ''​To update a price, change the number on thevalueline — and keep the quotes around it (value: '0.79'). You can also fill in thedescriptionfield, which is a good opportunity to document what each variable is for.A few rules to keep the file valid:Keep the indentation exactly as exported. YAML is sensitive to spacing — don't convert spaces to tabs or re-indent lines.Don't change theidvalues. These identify existing variables.&#x20;

#### Importing into a different site <a href="#rs0" id="rs0"></a>

To copy a pricing setup to another site, export from the source site, then log in to the destination site's admin and import the same file there. The variables are created on the destination site with the same names and values, ready for your pricing formulas to reference.&#x20;

> Note: The import brings over the Price Variables themselves. Pricing formulas on Product Attributes are configured separately — if you're replicating a full pricing setup, make sure the destination site's formulas reference the same variable names.

#### Good to know <a href="#rs3" id="rs3"></a>

Price Variables are referenced by name in Ruby pricing formulas on Product Attributes (for example, a variable calledbase\_rateused across multiple products).Changes take effect as soon as the import completes — there is no separate publish step for Price Variables.If a price isn't displaying correctly after an import, check that the variable names in the file exactly match the names referenced in your formulas.
