
Recently one of my client ask me to solve the issue which you are seeing in the screenshot. I searched a lot in internet and support forums and found woocommerce has some issue with structured data and I didn’t find any good plugins which can help me solving this.
As woocommerce is generating the structured data, to solve this issue I blocked the “application/ld+json” related code generating by woocommerce. Just do this steps.
- Login to dashboard
- Go to Plugins > Plugin Editor
- Select Woocommerce

4. Go to \includes\class-wc-structured-data.php
5. Block this line (put // just before this line)

echo '<script type="application/ld+json">' . wc_esc_json( wp_json_encode( $data ), true ) . '</script>';
6. Now check again your page / product using this . Issue will not be showing now
https://search.google.com/structured-data/testing-tool
If You Have Any Better Solution Feel Free To Let Me Know In The Comments Section
Hello Sir,
unable to find this option, this option is not showing in woocommerce plugin editor
4. Go to \includes\class-wc-structured-data.php
LikeLike
thanks you so much, now i find the option and my problem has been solved
LikeLike
Worked! Thanks đŸ™‚
LikeLike
What happens you Woocommerce gets an update? Changers lost.
Got a child theme solution for this?
LikeLike
[Please delete previous comment – spelling/grammar errors]
What happens when Woocommerce gets an update? Changes lost.
Got a child theme solution for this?
LikeLike
Hi Sheila
actually Upto i checked..u have to repeat it
LikeLike
this is not a good solution, because google will detect your products as normal web page and like a product
LikeLike
Do u suggest any solution?
LikeLike
Worked! Thank you!
LikeLike