Tarei King

WordPress developer, lover and enthusiast. Based in New Zealand, working Globally.

Hide prices and checkout functionality in WooCommerce

Periodically, you come across projects where you only need the ‘catalog’ functionality of WooCommerce. Luckily there was this GEM of information on WP Stackexchange:

remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' );
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10 );

Thanks guys! You win!

Leave a Reply