Google Console is saying? Parsing error: Missing ',' or '}'

Google Console is saying: Parsing error: Missing ‘,’ or ‘}’

How do I find and fix the error. I don’t know code.

Thanks

Hi @DianeK ,

This problem can cause by your customize. Can you please share with us your store URL? So I can check and give you the best solution in this case. You also can add me as a staff, I’ll check it for you. Link to add staff: https://help.shopify.com/en/manual/your-account/staff-accounts/create-staff-accounts#add-staff

This is my email: tuanthinhit@gmail.com.

Feel free to let me know if you need further support!

Hi

Thank you for the reply.

the website is neddycare.com

I’m a little nervous about adding someone I don’t know as staff admin.

What page is reporting that error? The home page, a product, or something else?

In the example url it gave a product page. Whether it’s only product
pages, I don’t know unfortunately.

Hi Jason

Thanks for the reply

Google gives an example url and it’s a product page. Whether it’s only product pages that have the error, I don’t know unfortunately.

Hey

I had a similar problem because of {{collection.description}}, but I replaced it with {{page_description | the escape }}. It works well now

Now my settings schema for the collection looks like this:

{% assign priceMinMax = collection.products | sort: 'price' %}

{% assign MIN_RATING_COUNT = 1 %}
{% assign MAX_RATING_COUNT= 150 %}
{% assign diffRatingCount = MAX_RATING_COUNT | minus: MIN_RATING_COUNT %}
{% assign randomRatingCount = "now" | date: "%N" | modulo: diffRatingCount | plus: MIN_RATING_COUNT %}

{% assign MIN_RATING_VALUE = 5 %}
{% assign MAX_RATING_VALUE = 3 %}
{% assign diffRatingValue = MAX_RATING_VALUE | minus: MIN_RATING_VALUE %}
{% assign randomRatingValue = "now" | date: "%N" | modulo: diffRatingValue | plus: MIN_RATING_VALUE %}