Home › Forums › WoodMart support forum › price of product in google result
price of product in google result
- This topic has 14 replies, 2 voices, and was last updated 2 years, 10 months ago by
Artem Temos.
-
AuthorPosts
-
May 3, 2022 at 10:16 am #372664
manuel-logikaParticipanti have already open a ticket some month ago and it’s ok for some time, now it’s alreay a problem.
I have set up to hide the price from not logged users, and that works correctly. But there is a problem on google research thats not understand why, i see the product with the price and thats not correct. How to resolve? Image on attach
Your answer:
Hello,
In order to hide product price from Google search, try to add the below code to the functions.php file in your child theme.
if ( function_exists(‘wd_remove_some_structured_data’) ) {
function wd_remove_some_structured_data( $markup ) {
unset( $markup[‘offers’] );
return $markup;
}add_filter( ‘woocommerce_structured_data_product’, ‘wd_remove_some_structured_data’ );
}
Please feel welcome to reach out to me with any questions you may have and I would be more than happy to help.——–
Now this code doesn’t work. Can you help me?
Attachments:
You must be logged in to view attached files.May 3, 2022 at 11:28 am #372695
Artem TemosKeymasterHello,
We searched this product on Google but didn’t see the price there https://gyazo.com/e42bda4f911caea629770da49120af3f
Maybe you disabled that option temporarily and google indexed that price but should hide it soon.Kind Regards
May 3, 2022 at 11:49 am #372705
manuel-logikaParticipantthe option si always active.
May 3, 2022 at 1:02 pm #372743
manuel-logikaParticipanti attach the screen that the problem is not resolved. I need an answer
Attachments:
You must be logged in to view attached files.May 3, 2022 at 1:50 pm #372746
manuel-logikaParticipanthere our function php screen
Attachments:
You must be logged in to view attached files.May 3, 2022 at 2:11 pm #372757
Artem TemosKeymasterCould you please clarify what word exactly do you use for Google search? Also, check how it works in different browsers and incognito tab.
Kind Regards
May 3, 2022 at 3:08 pm #372779
manuel-logikaParticipanti would like to hide the price of product in search result.
May 3, 2022 at 3:11 pm #372780
manuel-logikaParticipantDo you see the price? I need to hide price
i insert this snippet on function.php month ago:if ( function_exists(‘wd_remove_some_structured_data’) ) {
function wd_remove_some_structured_data( $markup ) {
unset( $markup[‘offers’] );
return $markup;
}add_filter( ‘woocommerce_structured_data_product’, ‘wd_remove_some_structured_data’ );
}but doesn’t work, do yo understand?
Attachments:
You must be logged in to view attached files.May 3, 2022 at 3:31 pm #372785
Artem TemosKeymasterYes, we checked and the code works as expected but the problem is different. Please, answer our previous question
Could you please clarify what word exactly do you use for Google search? Also, check how it works in different browsers and incognito tab.
May 3, 2022 at 3:52 pm #372792
manuel-logikaParticipantmap evo antenna top is the keyword.
In chrome, opera, firefox and safari (incognito tab) is the same like screen i already send,May 3, 2022 at 4:40 pm #372806
Artem TemosKeymasterHere is a screenshot of how it works for us https://gyazo.com/6e50e649dc50f5f41fe45cddf292f47f
May 3, 2022 at 4:43 pm #372808
manuel-logikaParticipantwher do you search?
I see the priceAttachments:
You must be logged in to view attached files.May 4, 2022 at 10:42 am #372971
Artem TemosKeymasterHere is a screenshot of the Google search page https://gyazo.com/d5eb0a1b2944100aa9c975c80b3ee9cb
May 4, 2022 at 10:46 am #372972
manuel-logikaParticipantWe and our client see price on google. Why? is there cache? wich browser do you use?
May 4, 2022 at 2:15 pm #373014
Artem TemosKeymasterWe don’t know why you see the price. We checked your product page source code and it doesn’t have the price value anywhere in the code.
We are using the Google Chrome browser for testing.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register