Home › Forums › Support › Login to view prices This topic has 5 replies, 2 voices, and was last updated 3 years, 11 months ago by David. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts June 16, 2019 at 2:55 am #931112 Georgi Hello, Is there a way to make my shop hide prices and instead show a button “Login to view prices” or something along these lines? Kind regards, Georgi June 16, 2019 at 3:13 am #931134 DavidStaff Customer Support Hi there, this article provides the PHP snippet required to do that: https://businessbloomer.com/woocommerce-hide-price-add-cart-logged-users/ June 16, 2019 at 3:39 am #931152 Georgi Thank you, it worked. However “Login to see prices” is displayed as text. Do you know how it can be turned to a button instead? Kind regards, Georgi June 16, 2019 at 4:08 am #931172 DavidStaff Customer Support this line of code: echo '<a href="' . get_permalink(wc_get_page_id('myaccount')) . '">' . __('Login to see prices', 'theme_name') . '</a>'; You can add a button class to the <a> tag like so: echo '<a class="button" href="' . get_permalink(wc_get_page_id('myaccount')) . '">' . __('Login to see prices', 'theme_name') . '</a>'; June 16, 2019 at 4:23 am #931178 Georgi Thank you, thank you so much! <3 June 16, 2019 at 4:58 am #931184 DavidStaff Customer Support Glad to be of help Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In