Theme Code Error: Liquid syntax error: Unknown tag 'Schema'

Highlighted
New Member
2 0 0

Hi, 

I'm trying to create 2 separate templates:

1) Product Customisation (existing) : This works well.

2) Product Non-customisation (new) : Line 317 — Liquid syntax error: Unknown tag 'Schema'


LINE 317:

{% schema %}
{
"name": {
"da": "Produktsider",
"de": "Produktseiten",
"en": "Product pages",

May I seek help to resolve?

0 Likes
Highlighted
Shopify Partner
55 4 6

Hi @happyembroidery ,

Did you've a different section file (i.e cust.liquid and non-cust.liquid)? Or are you trying to add to two {%schema%} tags in one file?

Also did you closed the tag with {%endschema%} ?

The code you provided is correct.

refer to this tutorial to learn the basics of schema/sections https://shopify.dev/tutorials/develop-theme-use-sections

Let me know if that helps. Happy coding

Cheers :))

Want to get customization to your store or bug fixing quickly? Hire Me for an hour for only $20 (Or get a fixed quote)
Hire Me For
  • Store Setup
  • HTML, CSS, JS, JQuery and Liquid coding
  • Bug Fixing

Email at umairabbascs@gmail.com or visit YoFlare

0 Likes
Highlighted
New Member
2 0 0
Yes, I did close the tag with {%endschema%}.

I wanted to create line items for certain products to allow customisation.

For my existing customised products, I apply "Product-template.liquid" with
all the specific line items for customisation. This is working fine.

However, when I try to add new products and no customisation is required,
the line items for customisation still appear. I need guidance on how to
create a new template for products without customisation.
0 Likes