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:

  1. From your Shopify admin, go to Apps > Checkout Blocks.
  2. Click Functions.
  3. Click the function that you want to rename.
  4. Click More actions > Rename function.
  5. 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:

  1. From your Shopify admin, go to Apps > Checkout Blocks.
  2. Click Functions.
  3. Click the function that you want to edit.
  4. Update the existing content of function.
  5. 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:

  1. From your Shopify admin, go to Apps > Checkout Blocks.
  2. Click Functions.
  3. Click the function that you want to export.
  4. 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:

  1. From your Shopify admin, go to Apps > Checkout Blocks.
  2. Click Functions.
  3. Click Create function.
  4. From the Create a function page, click the type of function you want to import.
  5. 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.
  6. In the Import dialog, upload your discount JSON file:
    1. Click Add file.
    2. Select the appropriate JSON file from your device.
    3. Click Import and continue.
  7. Review the preloaded function configuration. Modify it as needed.
  8. Click Save.

Delete a function

You can delete a function when you no longer need it. Deleting a function can't be undone.

Steps:

  1. From your Shopify admin, go to Apps > Checkout Blocks.
  2. Click Functions.
  3. Click the function that you want to delete.
  4. Click More actions > Delete.
  5. In the Delete function? dialog, click Delete function.
Can’t find the answers you’re looking for? We’re here to help.