Home Forums WoodMart support forum Disabling Select Options / Add to cart

Disabling Select Options / Add to cart

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #202244

    hazesmokeshop
    Participant

    Hi Support,

    I want to disable the Select / Options and Add to cart on the product category pages and want to have that functionality on the single product page only. Is it possible to do it?

    Thanks.

    #202349

    Hello,

    You can set the Catalog mode (Theme Settings > Shop page > Catalog mode) or hide certain elements with custom CSS. In both cases, it would be applied to all the product types.

    Best Regards

    #202444

    hazesmokeshop
    Participant

    Hi Elise,

    Does this mean that we can’t disable the select options/ or cart from the category pages only?

    Thanks.

    #202547

    hazesmokeshop
    Participant

    Hi Elise,

    I managed to remove the add to cart button from the category / shop page using the given below code. Now, I need to do the same for the Ajax product tabs on the homepage as shown in the attached snapshot. Since those are single products, so I can’t remove the Add to cart icon from single products using the same code. Will you please provide some guidance on removing or hiding add to cart icon on the products in Ajax Product Tabs?

    Thanks

    function remove_add_to_cart_buttons() {
        if( is_product_category() || is_shop()) { 
            remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' );
        }
    }
    
    Attachments:
    You must be logged in to view attached files.
    #202557

    hazesmokeshop
    Participant

    Hi Elise,

    I found a way to make it work. Thanks for your help. Please close this thread.

    Br.

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Disabling Select Options / Add to cart’ is closed to new replies.