Shopify themes, liquid, logos, and UX
Hello, I'm using the Dawn template and the Forms addon from Shopify. I'd like to inquire whether it's possible to import or include a form directly using its ID or name?
Somthing like this
Thank you
Hi @Arminda
{% include 'forms/form.liquid' with form_id: 'YOUR_FORM_ID' %}
If I managed to help you then, don't forget to Like it and Mark it as Solutions.
Thanks in advance for the quick reply. However, I'm encountering an error, and I'm unsure whether it's something I'm doing wrong or what might be causing it.
Hi Amanda, Did you manage to correct this as I am having the same issue.
Hi Aprya did you find any solutions? for
Include is deprecated, try render.
i tried what was suggested, in my case i added it to the main-cart-footer as thats where i want my form, i am also using the shopify forms app with the dawn theme
{% render 'forms/form.liquid' with form_id: '132696' %}
but it gives this error on the front end
Liquid error (sections/main-cart-footer line 114): Could not find asset snippets/forms/form.liquid
i am guessing it cant find the location of the form from the app but not sure know how to find that out
seems like snippets/ is being appended to the url when i dont want it to be
Hello! I found a partial solution to this problem
I add a new block in the schema in the .liquid file in question:
"blocks": [
{
"type": "@app"
}
]
And I call it as in the "apps.liquid" file:
{%- for block in section.blocks -%}
{% render block %}
{%- endfor -%}
It becomes accessible in my file, and I can style it as I like!
Have a great day!
Learn what's possible with customizing Shopify Checkout beyond what's available out of...
By Shopify Feb 19, 20252m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025