Tagged: add to cart, Cart, woocommerce
Hi!
I would like to remove the add to cart, select option and others, everything that customer can choose the product to buy,
remove from everywhere such as homepage, category page, archive page, etc. and also the cart popup from the top right of
every page too.
I use this code
.cart_dropdown .dropdown_widget { display: none !important; }
The buttons are removed
but, if there’re options on page, the option still shows the add to cart button
Thank you in advance
Hey Pearwcz!
Please add following code to Functions.php file in Appearance > Editor
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' );
remove_action( 'woocommerce_single_product_summary', 'woocommerce_add_to_cart' );
Regards,
Yigit
Hi, Yigit,
thanks for your code, but on shop page and archive page, there’re still the ‘add to cart’ button..
suggest me another code please
thank you very much
Hey!
Please try adding following code to Quick CSS in Enfold theme options under General Styling tab
.add_to_cart_button {
display: none!important;
}
Regards,
Yigit
I’m trying to do same thing. The Add to Cart is still showing up on Related Products. Is it possible to remove this too?
Thanks
Ben
Hi Ben (@benduncalf),
Please try adding following code to bottom of Functions.php file in Appearance > Editor
add_filter( 'woocommerce_is_purchasable', '__return_false');
Best regards,
Yigit