Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #321403

    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

    #321410

    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

    #321655

    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

    #321929

    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

    #1059207

    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

    #1059669

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.