You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{% liquid # Show a message that's customized to the product typeassignproduct_type = product.type | downcaseassignmessage = ''caseproduct_typewhen'health'assignmessage = 'This is a health potion!'when'love'assignmessage = 'This is a love potion!'elseassignmessage = 'This is a potion!'endcaseechomessage
%}
The text was updated successfully, but these errors were encountered:
Including a single or double quote (straight versions
'"
) inside a comment causes errors. Minimal examples:Error:
Removing or replacing them with curly equivalents (
‘’“”
) fixes the error.Example from Shopify Liquid docs that also breaks due to apostrophe inside the comment:
The text was updated successfully, but these errors were encountered: