Managing blocks in Checkout Blocks
You can edit the content of existing blocks at any time. Depending on the type of block, you can manage some blocks in the Blocks list of the Checkout Blocks app, and some blocks in the checkout and accounts editor directly.
The following types of block are managed in the Blocks list of the Checkout Blocks app:
The following types of block are managed in the checkout and accounts editor directly:
The address blocker is managed in the Checkout Blocks app's Settings.
On this page
Sort blocks by priority
Customers might qualify for multiple blocks of the same type within checkout. To determine which block displays to a customer, the block priority is used. Block priorities are set for each applicable block type, such as custom field or dynamic content. Blocks are sorted by priority starting from 1, and the highest-priority block displays when a customer is eligible.
Consider making the blocks with the most specific display rules have the highest priority, and make blocks with more general display rules have the lowest priority.
Steps:
- From your Shopify admin, click Sales channels > Checkout Blocks.
- Click Blocks.
- Click ⇅ Edit priority.
- In the Edit priority dialog, select the type of block that you want to adjust the priority for.
- In the Priority column, re-number the blocks based on your preferred priority. The block with the priority of 1 displays first in checkout.
- Click Save.
Rename a block
You can rename a block at any time. Block names are for internal use only, and aren't displayed to customers.
Steps:
- From your Shopify admin, click Sales channels > Checkout Blocks.
- Click Blocks.
- Click the block that you want to rename.
- Click More actions ⌄ > Rename block.
- In the Block name field, enter a new block name.
- Click Rename.
Edit a block
You can edit the contents of an existing block at any time. Depending on the type of block, you can edit a block from the Blocks list of the Checkout Blocks app or from the checkout and accounts editor directly.
The address blocker can be edited from the Checkout Blocks app's Settings.
Steps:
From Checkout Blocks
The following steps apply when you want to edit a custom field block, dynamic content block, line item edit block, or line item content block:
- From your Shopify admin, click Sales channels > Checkout Blocks.
- Click Blocks.
- Click the name of the block that you want to edit.
- Update the existing content of block.
- Click Save.
From Checkout and accounts editor
The following steps apply when you want to edit a shipping & payment icons block or a static content block:
- From your Shopify admin, click Settings > Checkout.
- In the Configurations section, click Customize on the checkout configuration with the block that you want to edit.
- In the checkout and accounts editor, click the app block that you want to edit.
- Update the existing content of the block.
- Click Save.
Duplicate a block
When creating similar blocks, you can duplicate an existing block to save time configuring block settings. By default, a duplicated block can be saved only as a Draft. Once the duplicate block is saved, you can set it as Active.
Steps:
- From your Shopify admin, click Sales channels > Checkout Blocks.
- Click Blocks.
- Click the name of the block that you want to duplicate.
- Click Duplicate.
- Customize the settings of the duplicate block.
- Click Save.
Export a block
You can export a block as a JSON file. You can then modify the JSON file and import the file to add the new block.
Steps:
- From your Shopify admin, click Sales channels > Checkout Blocks.
- Click Blocks.
- Click the name of the block that you want to export.
- Click More actions ⌄ > Export.
The block is downloaded as a .json
to your local device.
Import a block
You can create a block from an exported JSON file. If you choose to select the type of block before importing, then the type of JSON file must match the type of block you're trying to create. For example, when creating a line item content block, you can successfully upload only a line item content JSON file. Trying to upload a line item edit JSON file returns an error.
Steps:
- From your Shopify admin, click Sales channels > Checkout Blocks.
- Click Blocks.
- Click Create block.
- Do any of the following actions:
- Click Import from template.
- Select the type of block that you want to import, and then click Import block.
- In the Import block dialog, upload your discount JSON file:
- Click Add file.
- Select the appropriate JSON file.
- Click Import and continue.
- Review the preloaded block configuration. Modify it as needed.
- Click Save.
Delete a block
You can delete a block when you no longer need it. Deleting a block also deletes any existing analytics associated with the block. Deleting a block can't be undone.
Depending on the type of block, you can delete a block from the Blocks list of the Checkout Blocks app or from the checkout and accounts editor directly.
The address blocker can be deleted from the Checkout Blocks app's Settings by clicking Remove group.
Steps:
From Checkout Blocks
The following steps apply when you want to delete a custom field block, dynamic content block, line item edit block, or line item content block:
- From your Shopify admin, click Sales channels > Checkout Blocks.
- Click Blocks.
- Click the name of the block that you want to delete.
- Click More actions ⌄ > Delete.
- In the Delete? dialog, click Delete block.
From Checkout and accounts editor
The following steps apply when you want to delete a shipping & payment icons block or a static content block:
- From your Shopify admin, click Settings > Checkout.
- In the Configurations section, click Customize on the checkout configuration with the block that you want to delete.
- In the checkout and accounts editor, click the app block that you want to delete.
- Click Remove app block.
- Click Save.
Preview a block in the checkout and accounts editor
In the checkout and accounts editor, you can use the Preview block id (For testing purposes) field in certain block types to bypass dynamic display rules and preview specific blocks that you create.
Every custom field, dynamic content, line item edit, and line item content block that you create with at least 1 display rule has an associated preview ID. A preview ID is a long string of numbers and letters unique to the block that you create.
Steps:
- From your Shopify admin, click Sales channels > Checkout Blocks.
- Click Blocks.
- Click the name of the block that you want to preview.
- Click More actions ⌄ > Add to checkout.
- Make note of the App block ID associated with this block. In the Preview block id section, click the clipboard icon to copy the block's unique preview ID.
- Select your desired checkout configuration profile, and then click Open editor.
- In the checkout and accounts editor, do any of the following:
- If you haven't added the appropriate checkout block, then click ⊕ Add app block to add the required block type to your checkout.
- If you have added the appropriate checkout block, then click the block to open the block settings.
- In the App block settings, ensure that the App Block ID matches the app block ID for the block you want to preview.
- In the Preview block id (For testing purposes) field, paste the block's preview ID from your clipboard.
The block displays in the checkout and accounts editor in the location you've set, regardless of any display rules. Be sure to remove the preview ID from the Preview block id (For testing purposes) field before saving your checkout.