Tagged: WooCommerce
-
AuthorPosts
-
February 27, 2019 at 8:05 pm #34227
Hi,
On the new Google search console/Products I have an error : Either ‘offers’, ‘review’ or ‘aggregateRating’ should be specified.
I have searched the web for this and it seems to be related to schema.org markup and Woocommerce plugin seems to be the cause. And a lot of people are complaining about this.
https://robinjescott.com/google-search-console-error-either-offers-review-or-aggregaterating-should-be-specified/
https://github.com/woocommerce/woocommerce/issues/22842
https://wordpress.org/support/topic/recent-structured-data-errors-20th-feb/Woocommerce (in the last link) says they are working on it, but if they solve it, we cant upgrade to the new version because of symbiostock.
What to do? Do you have this error?PS: the error appears for me on categories pages and shop pages. Not all items on a page, just some of them.
March 7, 2019 at 9:15 pm #34274Hi Chris,
Thank you, I copied the code into theme’s functions.php and Google started the validation after passing the quick test.
I will let you know about the result, it may help others.PS: the code:
/**
* Remove the generated product schema markup from Product Category and Shop pages.
*/
function wc_remove_product_schema_product_archive() {
remove_action( ‘woocommerce_shop_loop’, array( WC()->structured_data, ‘generate_product_data’ ), 10, 0 );
}
add_action( ‘woocommerce_init’, ‘wc_remove_product_schema_product_archive’ );April 18, 2019 at 12:43 am #34516hello
i have try this solution but any résult ..April 18, 2019 at 4:55 pm #34521Hi,
It worked for me. Do you pass the initial validation from Google? Because after that, it takes 2-3 weeks for Google to recheck all pages.April 18, 2019 at 7:15 pm #34523Christoll it s one good joke …i m not one bot but one human …and i have one problem with Woocommerce because Google have change his algorithm
i wait a little for the validation ..
-
AuthorPosts
You must be logged in to reply to this topic.