WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
remove add to cart button at all - Woo commerce (3 posts)

  1. jcoelhosslx
    Member
    Posted 1 year ago #

    Hello,

    I've seen several topics on this subject, but none seems to work on my website.

    I have a Ink Theme with the WooCommerce plugin.
    I have a shop page and the individual product page.

    Some of the solutions I've found on this forum eliminates the add to cart button on the shop page, and others eliminate on the product page if the product is a Variable Product, if it is a Simple Product it always shows the add to cart button.

    What I want is to eliminate the add to cart button everywhere.

    anyone could help?

    http://wordpress.org/plugins/woocommerce/

  2. Roy Ho
    Member
    Posted 1 year ago #

    remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
    
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
    
    remove_action( 'woocommerce_simple_add_to_cart', 'woocommerce_simple_add_to_cart', 30 );
    
    remove_action( 'woocommerce_grouped_add_to_cart', 'woocommerce_grouped_add_to_cart', 30 );

    Put these in your theme's functions.php file.

  3. jcoelhosslx
    Member
    Posted 1 year ago #

    Hi, thanks for your help, but I still have the same problem.

    It still appears the cart button.

    you can see that happening on http://www.colarinho.pt

    On that domain I only have the template installed and the woocommerce plug in. I haven't done anything else.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic