... Skip to main content
Woocommerce

Hide Price & Add to Cart for Guest Users on WooCommerce

By September 4, 2023September 18th, 2023No Comments1 min read

In wooCommerce sometimes shop owners want to hide their product price & add to cart button for all of the guest users. So if you want to hide the product price & add to cart button on the shop & single product page then you can do it to follow the below
Code snippet..

Where Custom Code Added:

You can add above custom code on your child theme functions.php or you can add those custom code add as a snippet to using code snippet plugin such as Code Snippets plugin.

After adding this custom code you will see that, guest users are dose not see the product price and add to cart button. See below screenshot

Hide Price & Add to Cart

Caption: Hide price & add to cart button for guest users on Shop page on WooCommerce

Hide Price Add to Cart for Guest Users

Hide price& add to cart for guest user on single product page

So if you add those custom code successfully on your site then your guest users

Also dose not see the product price and add to cart button.

Leave a Reply

Seraphinite AcceleratorOptimized by Seraphinite Accelerator
Turns on site high speed to be attractive for people and search engines.