Add To Cart display "Login to view" message (1 post)

  1. anandan111
    Posted 3 years ago #

    Hi all. I am having trouble to hide the add to cart button and also displaying a message to my customers telling them to login to view the price.

    What I have done is used the woocommerce shortcode in my pages to display the add to cart button. The shortcode is:

    [add_to_cart id="xxxx"].

    I have downloaded the woocommerce catalog visibility options plugin and I manage to display the login to view message using this shortcode in my page:

    [product id="xxxx" sku="xxxx”]

    However, that shortcode displays the thumbnail of the product which I do not want to. Hence I used the first shortcode mentioned earlier. But it does not display any messages for users who are not logged in.

    I would like to know how I can achieve this.
    You can view a sample page here at :
    Sample Page

    Question: I would like to know how I can display a message (including login link) for users who are logged out and hide that message once they have logged in.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic