kcross8787
Forum Replies Created
-
Hi,
After uninstalling all plugins I can verify that Yoast SEO is adding the meta properties and that Yoast SEO: WooCommerce is adding the price meta data. Unless there is a way to stop the meta data from showing through Woocommerce, based on Yoast’s comment above, I believe the only options are to uninstall or switch SEO plugins.
Thank you again for all your help, especially with narrowing down that the meta property is the root of the issue.
Have a great day!
Edit: Deleted post
- This reply was modified 1 year, 9 months ago by kcross8787.
Hi @roxannestoltz,
Thank you for the reply. We will have the site updated shortly however I do not believe that it will solve the issue. Additionally I reached out to Yoast before creating this support thread however they stated that the information is controlled by Woocommerce and not their plugin.
Here is their response.
The product schema output for your product is not from Yoast. The Yoast WooCommerce SEO plugin stitches the additional schema to the schema outputted by the WooCommerce plugin. This means that this information needs to be disabled using WooCommerce-specific filters.
We recommend contacting WooCommerce support for additional information on how to do that.
Thank you again for your time,
Thank you for your time and reply. As with the issue @anastas10s had, we have external traffic blocked from outside the US. So if you are located in a different area that would be the reason for the 403 error. If you would please send me your country I can adjust the web rule for it.
As with the first image you sent, we have not had issues with the actual site hiding the pricing when a user is not logged in. The only issue is that google is somehow indexing it. With the 2nd image, the Liver | Energetix link is to a product category/tag and not a specific product.
We had a few products get indexed on Friday Feb 3rd and they are still showing the pricing on Google while using the below code which @xue28 sent.
/* Very Important: Hides pricing from Google Search Results */ add_filter( 'woocommerce_structured_data_product_offer', '__return_empty_array' );
https://www.energetix.com/product/core-mycelia-blend/
https://www.energetix.com/product/core-pau-darco-blend/
https://www.energetix.com/product/drainage-tone/
Finally, this meta tag shows when inspecting the page, even when not logged in. I have not found a way yet to remove it.
Thank you again all for your help. Have a great day!
Hi @anastas10s,
I really appreciate you looking into this. You should be able to access the site now as we had web traffic blocked for that location.
Also to note, we currently have commented out the bottom 2 snippets of code and are only using the code @xue28 mentioned. I have requested a re-index of a product in google to determine if maybe the redundant code was interfering with each other.
/* Very Important: Hides pricing from Google Search Results */ add_filter( 'woocommerce_structured_data_product_offer', '__return_empty_array' );
Here is the gist link you requested.
https://gist.github.com/Kcross8787/0c9e546dfbdf3a0d09a212d8cddb6bc0
Thank you for your time,
Hi,
Thank you for the reply. The code shown in the link you sent is in our first line of code above, which is why I am puzzled as to why the pricing is showing. I had google reindex a few pages and the pricing still remains.
Regardless, thank you for your help and time.