Hide price from not loged users
-
I have set up to hide the price from not logged users, and that works correctly. But there is a problem on google image thats not understand why, i see the product with the price and thats not correct. How to resolve? Image on attach
Attachments:
You must be
logged in to view attached files.
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.
Kind Regards
Hello,
We are glad that your issue has been resolved.
Don’t hesitate to reach out if you have any more questions or concerns. We’re thankful that you took the time to share your concerns with us.
Best of Luck,
Kind Regards
The topic ‘Hide price from not loged users’ is closed to new replies.