Either "offers", "review", or "aggregateRating" should be specified - Google Error

Highlighted
Shopify Expert
2686 67 696

@seegang-berlin 

I feel your pain.

You may read through my posts in this thread, where I tried to explain why the problem exists and why it's not easy to come up with universal fix. 

 

I know that Shopify tried to solve the problem once and recently once more, this time they moved away from microdata formatting to JSON-LD, but this, imho, does not fix it properly (as it creates an unnecessary extra object on the page with its own warnings and sometimes errors). Unfortunately, with this change the fixes I suggested do not work anymore out of the box.

 

The way your structured data is output depends on the theme you're using and there is more than one way to do it, some are incompatible. If your theme does not include the code to pull review data from the App(s), it would be necessary to modify it (DIY or hire a developer) to implement structured data properly.

Re-creating your products would not help.

 

However, I'd like to point out that it's a store-wide fix and not per-product as was suggested several posts earlier.

 

Regarding your question 2: Note that Google is usually very slow to recognise the changes (in most cases) and may still keep old data in its index(es). My impression is that there are several independent processes and one may still serve your products with proper reviews while another complains about wrong structured data in your search console. Synchronisation between them is slow, but will eventually happen, so I'd suggest fixing the problem ASAP.

 

Want to hire me to tweak a theme? Mail me at tairli@yahoo.com!
My post solved your problem? Like it!
I am away till Feb-15.
0 Likes
Highlighted
Tourist
9 0 4

Hi @tim, Hi @Akshay_V 

 

in the attempt to understand what has happened and what options do I have -  here are few more questions:

 

1. Is the only way do get the "few errors and the code duplication error" out of my code to hire a developer like you?
2. Will this error not occur again, when I create new products or new collections once you have removed it from my code?

3. Will this problem occur again, if I switch to another theme?

4. Do you have a list of Themes/Review App s that do not run into this problem, in case I am willing to switch theme?

5. Can you (privately) send me a cost-estimate for the fix on my current theme?

 

Best,

Jenny

0 Likes
Highlighted
New Member
1 0 0

Hi Everyone,

 

I have been reading through this article. I have looked at the structured data tool which shows an issue but the information is in place so Im not sure what the issue is. Any suggestions?

 

https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fnaturalwraps.co.uk%2Fp...

 

0 Likes
Highlighted
Shopify Partner
233 15 26

@seegang-berlin 

Sorry, there is no way to remove unwanted code or fixing that code. You need to hire an expert like us to fix the theme issue or you can contact theme support to fix this error.

Thanks & Regards
Akshay Vaghasiya

Shopify Expert | E-commerce Consultant
Email: akshayvaghasiya84@gmail.com
Skype: akshayvaghasiya84
 - Want to modify or custom changes on store hire me .
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
0 Likes
Highlighted
Shopify Partner
233 15 26

@NaturalWraps_RB 

I have checked the link which you have attached with your concern. I found there is lots of error https://prnt.sc/qpd941. One more thing you have not used any product review app and as per new google rich snippet aggregate rating or review is required so do you want to add product review app.

For fixing these errors you can hire me I will do it. If you want a faster response you can contact me directly on below contact information.

Thanks & Regards
Akshay Vaghasiya

Shopify Expert | E-commerce Consultant
Email: akshayvaghasiya84@gmail.com
Skype: akshayvaghasiya84
 - Want to modify or custom changes on store hire me .
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
0 Likes
Highlighted
New Member
2 0 0

Or here is an idea: the Shopify Development team behind the Product Reviews App could just fix their broken code?!

 

For the record, I followed Tim's great advice (further above) and that has worked for me — so thank you, Tim!  :)  I'm no coder (nor expert by any long stretch of the imagination) but I managed to figure it out from his advice (albeit with many a coffee!) so it definitely does work! 

 

If you can't fix it yourself (and Shopify simply aren't interested in fixing their app for us) then Tim definitely knows his stuff, if you need to hire someone I guess.

0 Likes
Highlighted
New Member
1 0 0

Same here. I'm also using the Ella theme and i am getting this error as well. 
Is this error going to remove all the products from the search results? 

If so, this should be a high priority on Shopify's bug list right?

0 Likes
Highlighted
Shopify Partner
233 15 26

@NaomiR 

Hi, For your information this bug display because Google has changed its requirement of rich snippet. Moreover, Shopify is not responsible for it because it depends on which product review app and theme you are using. So if you have brought a paid theme then you can go with theme developer and ask for an update or fix the issue on your store.

If you want to fix this error then you can hire Shopify developer and ask them to update old code and solve the errors. Also, you can contact me I will fix the error on your store.

Thanks & Regards
Akshay Vaghasiya

Shopify Expert | E-commerce Consultant
Email: akshayvaghasiya84@gmail.com
Skype: akshayvaghasiya84
 - Want to modify or custom changes on store hire me .
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
0 Likes
Highlighted
Shopify Partner
208 4 34

Hello all, I have updated the aggregatedRatings issue for Shopify reviews. You can copy the latest code here: Easy To Follow Structured Data Tutorial With Updated AggregatedRatings resolved

Google Shopping Specialist - Data Feed Managment Tool
2 Likes
Highlighted
Tourist
5 0 0

Hi All and Emmanuel, have you idea how to remove the new issue of automatic json-ld producted by SPR Apps?
We have tried alternative the following, but nobody work

 

<script>
var SPRCallbacks = {
onProductLoad: function( e ) {
$('[itemprop="itemreviewed"]').remove();
$('[itemprop="itemReviewed"]').remove();
$('[type="application/ld+json"]').filter(':contains("itemReviewed")').remove();

}
}
</script>

<script>
var SPRCallbacks = {
onProductLoad: function( e ) {
$('[itemprop="itemreviewed"]').remove();
$('[itemprop="itemReviewed"]').remove();
$('[type="application/ld+json"]').filter(':contains("itemReviewed")').remove();

},
onReviewsLoad: function( e ) {
$('[itemprop="itemreviewed"]').remove();
$('[itemprop="itemReviewed"]').remove();
$('[type="application/ld+json"]').filter(':contains("itemReviewed")').remove();

}
}
</script>

<script>
function watchSPR(mutations, observer) {
for (m in mutations) {
var mutation = mutations[m];
if( mutation.type == "childList" && mutation.addedNodes.length ) {
// console.log(mutation.addedNodes);
var $m = $(mutation.addedNodes);
if( $m.find('.spr-header').length ) {
$('[itemprop="itemreviewed"]').remove();
$('[itemprop="itemReviewed"]').remove();
$('[type="application/ld+json"]').filter(':contains("itemReviewed")').remove();
console.log('SPR Patched');

setTimeout( function() {
observer.disconnect();
console.log('Detaching from SPR');
}, 1000);
}
}
};
}

observer.observe(
document.getElementById('shopify-product-reviews'),
{
childList: true,
subtree: true
}
)
</script>

0 Likes