Hide price for unregistered user - by Brian Kim

This topic has 7 replies, 3 voices, and was last updated 3 years, 4 months ago ago by Rose Tyler

  • Avatar: Brian Kim
    Brian Kim
    Participant
    January 20, 2021 at 02:30

    Hello.
    how can i hide price for unregistered user?

    6 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 20, 2021 at 11:36

    Hello,

    There is no such option, by default.
    Contact support of WooCommerce plugin to get advice.
    Also, you can submit a feature request here – https://www.8theme.com/taskboard/

    Regards

    Avatar: Thibaud_Mathieu
    Thibaud Mathieu
    Participant
    January 22, 2021 at 16:29

    I second this. I tried to install YITH Catalog mode, it works, just as the theme’s catalog mode does…. but when using the search button (with AJAX) of the theme, it still shows the prices of the results found.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 23, 2021 at 08:55

    Hello Thibaud Mathieu,

    You can add the next code in Theme Options > Theme custom CSS:

    .et_b_header-search .price {
        display: none;
    }

    Regards

    Avatar: Brian Kim
    Brian Kim
    Participant
    January 26, 2021 at 16:25

    hello thanks for your reply
    I add code that you said, but it doesn’t work.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 26, 2021 at 16:41

    Hello Brian Kim,

    The code was not for you, it just hides the price from the search dropdown.
    There is no option to hide price for unregistered users, so – https://prnt.sc/xny94k

    Regards

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 28, 2021 at 15:04

    This code can be used to hide prices for unlogged users:

    body:not(.logged-in) .content-product .price, body:not(.logged-in) .price {
        display: none;
    }

    Regards

  • Viewing 7 results - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.