Common checkout customizations using Checkout Blocks
You can customize your checkout using Checkout Blocks in many ways. This page contains brief guides for some common checkout customizations using Checkout Blocks.
On this page
Create shipping discount tiers for specific cart values
If you want to create shipping discount tiers, such as "50% off shipping for orders over $50" and "free shipping for orders over $100", then you can create multiple automatic shipping discounts based on the Cart subtotal rule. The shipping discount with the highest discount applies for checkouts that meet the criteria for multiple discounts.
Steps:
- From your Shopify admin, go to Sales channels > Checkout Blocks.
- Click Discounts > Add discount > Amount off shipping.
- In the Amount off shipping section, select Automatic discount, and then add your discount message (for example: 50% off shipping on orders $50+).
- In the Discount configuration section, create your custom discount ruleset:
- In the Discount value drop-down menu, select Percentage, and then add 50%.
- In the Discount rules section, configure your ruleset:
- Click ⊕ Add rule.
- Configure your rule to be
Cart subtotal
>Is greater than or equal to
>50.00
.
- Optional: You can configure the following options:
- Delivery options, to specify which delivery options you want the discount to apply to. When selecting specific options, you can choose to apply to options by title, price, or delivery type.
- Combinations, to allow customers to combine the discount code with product or order discounts.
- Active dates, to specify when the discount begins and whether it expires.
- In the Summary section, review your discount details to confirm that it's set up correctly.
- Click Save.
- From your Shopify admin, return to Sales channels > Checkout Blocks.
- Click Discounts > Add discount > Amount off shipping.
- In the Amount off shipping section, select Automatic discount, and then add your discount message (for example: Free shipping for orders $100+).
- In the Discount configuration section, create your custom discount ruleset:
- In the Discount value drop-down menu, select Free shipping.
- In the Discount rules section, configure your ruleset:
- Click ⊕ Add rule.
- Configure your rule to be
Cart subtotal
>Is greater than or equal to
>100.00
.
- Optional: You can configure the following options:
- Delivery options, to specify which delivery options you want the discount to apply to. When selecting specific options, you can choose to apply to options by title, price, or delivery type.
- Combinations, to allow customers to combine the discount code with product or order discounts.
- Active dates, to specify when the discount begins and whether it expires.
- In the Summary section, review your discount details to confirm that it's set up correctly.
- Click Save.
Change the copy of 'OR' beneath accelerated checkout methods
You can move a shipping & payment icons block to display beneath the ---- OR ----
dividing line under the accelerated checkout payment options, and then change the "OR" text to be any custom text you prefer, such as "Accepted payment types" or "Supported shipping providers".
Steps:
- Create and configure a shipping & payments icons block in the checkout and accounts editor.
- Drag and drop the Shipping & Payments icons block to display beneath the Wallets section.
- In your Shopify admin, go to Online store > Themes.
- In the live theme, click
...
> Edit default theme content. - Use the search bar to search the term alternative.
- In the Checkout alternative payment method banner, change the Or field to include your custom text.
- Click Save.
Display a message under specific shipping methods
You can use the dynamic content block to display a message under specific shipping methods during checkout.
For example, if you offer the shipping rates Standard, Express, and International Express, then you might want to display a brief message beneath the "International" shipping option to clarify that customs and duties charges aren't included in the displayed shipping price.
Steps:
- From your Shopify admin, click Sales channels > Checkout Blocks.
- Click Blocks, and then click Create block.
- Click Dynamic content.
- In the Block name section, type in a name for the block. This isn't displayed to your customers.
- In the App block ID section, set the ID as either Dynamic or apply a specific ID number. Learn more about app block IDs.
- In the Display rules section, configure your block display rules to display only when the specific shipping method is included. In this example, the rule is configured to display beneath International Express:
- Click ⊕ Add display rule.
- In the Select a rule dialog, select Shipping method title.
- Configure the rule as Contains > International.
- In the Content section, add and customize the content of your block:
- In the Content items section, click ⊕ Add content item, and then select Text.
- In the content item dialog, add your brief message, such as Additional customs and duties may apply., and then click Done.
- Optional: In the Publishing section, click the pencil icon to select the markets and checkout pages that you want the block to display in.
- Click Save, and then set the block status as Active.
- In the checkout and accounts editor, add the dynamic block to the Shipping rate section of the checkout.
- Click Save.
Include a custom field on the order packing slip
Checkout Blocks lets your store collect customer data using a custom fields block and save that data to an order metafield.
Steps:
- In Checkout Blocks, create and configure a custom field block. Ensure the block is configured to save as an Order metafield.
- In your Shopify admin, go to Settings > Shipping and delivery.
- In the Packing slips section, click Packing slip template.
- In the location in the template that you want to display the custom field value, add the following line of code, replacing
key
with your custom field's key:
- Optional: If you want to conditionally display the custom field value, then you can surround the content with a Liquid if/else statement based on your required conditions.
- Click Save.
You can use multiple custom field key values in the packing slip template. For example, this code would display an order's purchase order number (metafield using po
as a key) only when the customer has agreed to the terms of the order (metafield using agree_to_terms
as a key):
Add a custom field on an order to the customer's profile
You can sync order data captured through custom field blocks by leveraging the Shopify Flow app.
You can download an example .flow
file for adding a birth_date
metafield value to a customer profile. Customize the values of this template to match the custom field keys that you want to add.
Steps:
- In Checkout Blocks, create and configure a custom field block. Ensure the block is configured to save as an Order metafield.
- In Shopify Flow, set up a custom workflow to run when an order is placed:
- Click Create workflow > Select a trigger.
- Select Shopify > Order created.
- On the trigger, click Then ⊕ > Condition.
- Click Add a variable, and then select Order > metafields > key.
- In the Key field, add the key for the custom field that you want to add to the customer profile, such as
birth_date
. - On the condition, click Then ⊕ > Action.
- Click Shopify > Update customer metafield.
- In the Update customer metafield section, input the following information:
-
Metafield namespace: The metafield that you want to add, such as
personal_info
. -
Key: The metafield key, such as
dob
. - Type: The type of value that you want to include, such as Date.
- Value:
-
Metafield namespace: The metafield that you want to add, such as
When your flow is complete, click Turn on workflow to activate it.