All things Shopify and commerce
Hey Guys,
https://www.supplieswarehouse.co.uk/collections/best-selling-products
Not sure what I've changed but I was trying to add breadcrumbs and now under my images I have this text
Liquid error (snippets/card-product line 258): new_comment form must be given an article
Any ideas how to fix this?
This is line 258- 264
{%- form 'product', product_form_id %
, card_product
, id: product_form_id
, class: 'form'
, novalidate: 'novalidate'
,
}
Solved! Go to the solution
This is an accepted solution.
HI @Amy200101 that is invalid syntax you've presented.
There should be no orphan percent sign (%) before the parameters and no missing percent sign before the closing bracket
And do you diligence and check the form tag usage in the dev docs
https://shopify.dev/api/liquid/tags/form
{%- form 'product', product_form_id
, card_product
, id: product_form_id
, class: 'form'
, novalidate: 'novalidate'
%}
Beyond that rollback the file or restore a backup(you did make one before customizing a theme right)
If you need theme repair services then contact me.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
This is an accepted solution.
HI @Amy200101 that is invalid syntax you've presented.
There should be no orphan percent sign (%) before the parameters and no missing percent sign before the closing bracket
And do you diligence and check the form tag usage in the dev docs
https://shopify.dev/api/liquid/tags/form
{%- form 'product', product_form_id
, card_product
, id: product_form_id
, class: 'form'
, novalidate: 'novalidate'
%}
Beyond that rollback the file or restore a backup(you did make one before customizing a theme right)
If you need theme repair services then contact me.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024