- Posts: 139
- Thank you received: 42
Structured data problems
- Davide
-
Topic Author
- Offline
- Premium Member
-
- ratingValue cannot be empty: in the code there is an image but should be a number, from 1 to 5. If 0 is better to omit aggregateRating at all
- price is required: when a product is set as "call for price", price is omit in structured data but is required. It may make sense to indicate 0?
Please Log in or Create an account to join the conversation.
- Giang Dinh Truong
-
- Offline
- Administrator
-
Regarding 2 errors that you said:
1. ratingValue has an image and a reviewCount now. If the product has no review/rating yet, then image has 0 star and reviewCount = 0. What's problem with that?
2. Regarding price, I only show price if the system allows to show price there. In this case, I think that show price 0 is not good.
Sincerely, Giang
Please Log in or Create an account to join the conversation.
- Davide
-
Topic Author
- Offline
- Premium Member
-
- Posts: 139
- Thank you received: 42
Hi Giang, for point 1 the problem is that structured data want a number, not an image. For point 2 the problem is that, in structured data, price is required for product rich snippet. If you don't belive try yourself: :laugh:Giang Dinh Truong wrote: Hello Davide,
Regarding 2 errors that you said:
1. ratingValue has an image and a reviewCount now. If the product has no review/rating yet, then image has 0 star and reviewCount = 0. What's problem with that?
2. Regarding price, I only show price if the system allows to show price there. In this case, I think that show price 0 is not good.
Sincerely, Giang
1) go to developers.google.com/structured-data/testing-tool/
2) past the code or insert the URL of your demo product Canon Powershot SX40 ( joomdonationdemo.com/eshop/televisions/c...-powershot-sx40.html )
3) see alert on the right or see attachement
I hope I was more clear, thanks for your help

- Giang Dinh Truong
-
- Offline
- Administrator
-
I saw that but what your suggested now?
1. If the product does not have any rating, then what I should add there?
2. If product is not allowed to show price, then what should I show for price? Is it zero?
Sincerely, Giang
Please Log in or Create an account to join the conversation.
- Davide
-
Topic Author
- Offline
- Premium Member
-
- Posts: 139
- Thank you received: 42
There are 2 solutions imho but both needed that rating is a number (0-5):Giang Dinh Truong wrote: 1. If the product does not have any rating, then what I should add there?
1) omit all aggregateRating if rating is 0 (best option imho because review is 0 and rating is 0, there is no rating at all)
2) add <span itemprop="worstRating">0</span> because schema.org default value is 1 for worst rating value (see attachement 1)
Giang Dinh Truong wrote: 2. If product is not allowed to show price, then what should I show for price? Is it zero?
Zero is not good, I found that Google "translate" zero with Free. The only solution that I found id omit offers at all. Unfortunately in this way is not possibile to indicate the number of product in stock
Davide
- Matt Bean
-
- Offline
- New Member
-
I'm having the same problem with Google giving me errors for the Structured Data.
Thank you!
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.