Managing delivery and payment method customizations in Checkout Blocks
You can rename, edit, export and import, and delete delivery and payment method customizations using Checkout Blocks.
Rename a function
You can rename a function at any time. Function names are for internal purposes, and aren't displayed to customers.
Steps:
From your Shopify admin, go to Apps > Checkout Blocks.
Click Functions.
Click the function that you want to rename.
Click More actions > Rename function.
In the Rename function dialog, update the title and click Rename.
Edit a function
You can edit the contents of an existing function at any time.
Steps:
From your Shopify admin, go to Apps > Checkout Blocks.
Click Functions.
Click the function that you want to edit.
Update the existing content of function.
Click Save.
Export a function
You can export a function as a JSON file. You can then modify the JSON file and import the file to add a new function.
Steps:
From your Shopify admin, go to Apps > Checkout Blocks.
Click Functions.
Click the function that you want to export.
Click More actions > Export.
The function is downloaded as a .json to your local device.
Import a function
You can create a function from an exported JSON file. The type of JSON file must match the type of function you're trying to create. For example, when creating a rename delivery methods function, you can successfully upload only a rename delivery methods function JSON file. Trying to upload a reorder delivery methods function JSON file returns an error.
Steps:
From your Shopify admin, go to Apps > Checkout Blocks.
Click Functions.
Click Create function.
From the Create a function page, click the type of function you want to import.
Open the JSON importer:
- If you're importing a delivery method customization, then click ↧ Import template.
- If you're importing a payment method customization, then click ↧ Import function.
In the Import dialog, upload your discount JSON file:
- Click Add file.
- Select the appropriate JSON file from your device.
- Click Import and continue.
Review the preloaded function configuration. Modify it as needed.
Click Save.
Delete a function
You can delete a function when you no longer need it. Deleting a function can't be undone.
Steps:
From your Shopify admin, go to Apps > Checkout Blocks.
Click Functions.
Click the function that you want to delete.
Click More actions > Delete.
In the Delete function? dialog, click Delete function.