Fix lỗi either offers review or aggregaterating should be specified

It appears the template I'm using (Moksha) is causing two 'product' structured data items to appear to Google for a page which should only have one, the second of which is causing this error.

...

The lines above are, I believe, the culprit. These tags seem to be the second 'product' structured data item which has no 'offers, reviews, or aggregateRating' specified, and which is causing the error. I found it because one of the warnings I was getting (and still am) was about the 'product' structured data type not containing a 'thumbnailUrl' property.

Quote The property thumbnailUrl is not recognized by Google for an object of type Product.)

I found a potential workaround, which doesn't seem to be breaking anything, but some input from someone who knows more about it than myself would be good. I haven't done any work with these structured data types before, and my practical web design knowledge is about 10 years out of date. One of the pages which Google showed this error for has validated, and a second one is pending. For some reason, the error only showed up in the search console for two of the pages, though the data validation tool showed it for all the product pages I tested.

What I did was inject these lines into the header from the products page. (Click on the products page in the 'pages' tab, hit the 'product settings' menu, and hit 'advanced', and 'page header code injection')

40
240
USD

This is specifying 'offers' for the second product and thus fixing the error that Google sees on the page. As far as I can tell, these numbers aren't changing anything with the main product Google sees, and which is showing up in the search results, so they can be anything. The ones I have here just happen to be low and high price for another service offered, but since this is code injected a level up from the individual products, you can't specify the amount on an individual level anyways.

Hopefully the error I found is what is affecting everyone else, and hopefully it will help squarespace fix it so that we don't have to use such workarounds. In the meantime, someone else may find a better workaround than this, if this is indeed what was causing the problem for others. Ideally, I think, the second 'product' structured data item specified by the tags above would be deleted completely, but I don't think that's possible to do as a user.