Hide price for unregistered user - by Brian Kim

6 replies3 participantsUpdated by Rose Tyler

  • Avatar: Brian Kim
    Brian Kim
    Participant

    Hello.
    how can i hide price for unregistered user?

    6 Answers

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    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

    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

    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

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

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    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

    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

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register