Hello,
I am trying to figure out how to figure out this error message when trying to implement this fix.
Error Message: (see below)
Unable to update the file
- Liquid syntax error (line 6): Unexpected character = in “recommendations.intent = ‘related’”
Code from Step 5 for Adding Product Recommendations to Debut theme
https://help.shopify.com/en/manual/online-store/themes/themes-by-shopify/vintage-themes/customizing-vintage-themes/show-recommendations
Let me know if you have any questions?
Thanks a bunch!
Jennifer
EBOOST
2
Hi @freewheeling
It should be code below: missing one “=”
{% if recommendations.intent **==** 'related' %}
You can refer document for Operators in liquid here https://shopify.github.io/liquid/basics/operators/
And you should be update
{% elsif recommendations.intent = 'complementary' %}
to code below as well
{% elsif recommendations.intent == 'complementary' %}
Hope can help
If you find my reply helpful, please hit Like and Mark as Solution
EBOOST
Thank you so much! That removed the error message 