Home Forums WoodMart support forum Hide price from not loged users

Hide price from not loged users

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #349388

    manuel-logika
    Participant

    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.
    #349485

    Luke Nielsen
    Keymaster

    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

    #349488

    manuel-logika
    Participant

    thank you

    #349618

    Luke Nielsen
    Keymaster

    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

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Hide price from not loged users’ is closed to new replies.