Checkout Blocks app - How to set up a rule based on the order source (e.g. Buy Button, Draft Order)

Topic summary

A user is trying to configure the Checkout Blocks app to display a custom post-payment message only when orders originate from specific sources—excluding Buy Button and Draft Orders.

Current Challenge:

  • The app’s UI doesn’t appear to offer built-in conditions or rules to filter by order source (e.g., source_name, checkout type, or channel)
  • The user explored advanced conditions but found no relevant options

Suggested Workaround:

  • While source_name exists in Shopify’s order data, Checkout Blocks may not expose it directly
  • Custom scripting or developer mode access could potentially enable conditional rendering based on the order object

Status:
The discussion remains open—the original poster is seeking confirmation on whether Checkout Blocks supports custom scripting or developer mode functionality. No definitive solution has been provided yet.

Summarized with AI on October 29. AI used: claude-sonnet-4-5-20250929.

Hi,

I’m currently setting up a block in the Checkout Blocks app, and I would like to display a custom message after payment, but only if the order was not placed via a Buy Button or as a Draft Order.

I’ve tried looking for an advanced condition or rule that would allow me to target the order source (e.g., source_name, checkout type, or channel), but I couldn’t find any option in the UI to do so.

Is there a way to create a rule or condition based on the origin of the order (e.g., Buy Button, Online Store, Draft Order)?
If not through the UI, is it possible via an export/import of JSON or any other method?

Thank you in advance for your help!

Best regards,

Check for source_name via Checkout Blocks + Shopify Data

While Checkout Blocks itself may not expose source_name in its conditions, that data does exist in Shopify’s order data. If you have any kind of custom script support in Checkout Blocks or a developer mode, it may be possible to conditionally render the block by checking the Shopify order object.

Thank you for you answer, To the best of my knowledge, there’s no developer mode or support for custom scripting. Can anyone confirm?