Shalini Dixit
Shalini Dixit

Reputation: 31

How to remove check out option from WooCommerce?

My website is an affiliate website and the products listed there are not owned by me. I just want to list affiliate products and the buy now link will be of the affiliates website. So, I don't want the check out option on my website. I want to know that how can I remove check out and shopping cart option from WooCommerce plugin?

Upvotes: 3

Views: 147

Answers (1)

Keyur Trivedi
Keyur Trivedi

Reputation: 58

try this

Add the filter to your theme's functions.php file.

remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' );

Upvotes: 2

Related Questions