Hide Price & Add to Cart for Logged Out Users

This topic has 10 replies, 3 voices, and was last updated 8 years, 3 months ago ago by Jack Richardson

  • Avatar:
    Inactive
    December 21, 2015 at 11:40

    Hello,
    I need to hide prices from not logged users. I used this script for that: http://businessbloomer.com/woocommerce-hide-price-add-cart-logged-users/ but it does not work with your theme (only hide first product price). I can pay for plugin or other solution but I have to be sure that it will work with WooPress. Do you have something in mind?

    9 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    December 21, 2015 at 13:17

    Hello,

    Please provide us with FTP and WP Dashboard credentials in private content.

    Best regards,
    Jack Richardson.

    Avatar:
    Inactive
    December 21, 2015 at 13:31

    Here you go.

    BTW. On custom registration page, security code does not appear.

    Please, contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    December 21, 2015 at 14:54

    Hello,

    Where did you add the code?
    I’ve just added it into child functions.php file and prices are hidden for non-logged in users.
    Clear browser cache and check.

    Also the issue with captcha code has been fixed.

    Best regards,
    Jack Richardson.

    Avatar:
    Inactive
    December 21, 2015 at 15:10

    I added it in functions.php in child theme folder just like you. I know that prices are hidden but the message “Login to see prices” should appear in the place of price. Right now you can’t see this message in single product page, related products etc.

    Thank you for resolving captcha problem.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    December 21, 2015 at 15:21

    Hello,

    The code works similarly with default WordPress theme – Twenty Fifteen. Activate it and add the code in fucntions.php file of Twenty Fifteen theme.
    You’ll see the same result.

    So the issue isn’t related to the theme.

    Best regards,
    Jack Richardson.

    Avatar:
    Inactive
    December 21, 2015 at 15:31

    Oh, I didn’t know that. Sorry for problem.
    Do you know other script or plugin that could work this way? I found this two:
    https://www.woothemes.com/products/catalog-visibility-options/
    http://codecanyon.net/item/woocommerce-prices-by-user-role/8562616

    but I need to be sure that they will work fine with WooPress before I buy them.

    Avatar: Eva
    Eva Kemp
    Support staff
    December 21, 2015 at 16:51

    Hello,

    Please take our apologies but we can’t guarantee full compatibility of 3rd-party plugins with the theme as we didn’t test them.
    As you know there is huge amount of plugins and we can’t test them all.

    You have to search for plugins yourself. Sorry.

    Regards,
    Eva Kemp.

    Avatar:
    Inactive
    December 21, 2015 at 17:11

    I understand, thank you.

    One more question: It is possible to have login and registration form on the same page (my account) for not logged users?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    December 21, 2015 at 17:38

    Hello,

    You can enable registration form on “My Account” page in Woocommerce > Settings > Accounts > tick “Enable registration on the “My Account” page”.

    Best regards,
    Jack Richardson.

  • Viewing 10 results - 1 through 10 (of 10 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.