Skip to content

Copy conditions

Save a customization’s conditions to a file and load them into another block or function, in this store or another.

  1. Open the block or function whose conditions you want to copy.
  2. On the Conditions card, click Export.

A .json file downloads to your computer. Export is greyed out when there are no conditions to copy, for example when the block is set to Show for all orders.

For functions with several settings, each setting has its own Export and Import. A volume discount also has a Conditions card, but without Export or Import.

The Conditions card header showing the Export and Import actions

  1. Open the block or function you want to copy the conditions into.
  2. On the Conditions card, click Import and choose the exported file.
  3. Check the conditions, then save.

Importing replaces the conditions that were there. It doesn’t add to them. Nothing is saved until you click Save, so you can click Discard to undo.

From To Allowed?
Any block Any other block Yes, even a different block type
A function The same function type, created on the same condition set Yes
A function A different function type, or another condition set No
A block A function, or a function to a block No

Because a function’s condition set is fixed when you create it, importing function conditions from Condition set 2 means creating the new function on Condition set 2 first.

Exported files work in any store with Checkout Buddy installed, which is handy for agencies and for copying between a development store and a live store.

Products, variants, and collections are different in every store. If the file comes from another store and uses a product or collection picker, Checkout Buddy shows Re-select products or collections and names the conditions to fix. Open each one, pick the right products or collections in this store, then save.

Text values such as tags, zip codes, and attribute keys copy across unchanged.

To copy a whole function, not just its conditions, open it and click Duplicate. The copy is saved straight away, with the original’s name followed by “(copy” and a random number, for example “Hide COD (copy 42)”. Open the copy and rename it so you can tell them apart.

Duplicate isn’t available on the Free plan, which allows one customization, or for discounts with a code (product, collection, order, volume, flex and Buy X get Y discount codes), because each code must be unique. Blocks made before the Content block can’t be duplicated: export the block’s conditions and import them into a new block instead. Newer blocks, such as Content blocks, automations, Product offers, Custom fields forms, and thank you page and account blocks, have Duplicate, which saves the copy as a draft.