Home App Docs Blog Github

Custom dropzone error: Liquid error: include usage is not allowed in this context

You can run into this liquid error while trying to integrate custom dropzones from Builder to your shopify theme

Liquid error: include usage is not allowed in this context

This happens when using an include tag in snippet that was originally included in the template with the render tag, to fix this issue, you have two options

Option 1

The first way to solve this is to change the container snippet tag to use include, so instead of using

{% render product-info %}

where for example snippets/product-info.liquid is where you want to use Builder’s custom dropzone, use:

{% include product-info %}

Option 2

If you prefer to use render instead of include, which we recommend when possible for best performance, you can use render code generation instead