• Resolved idigmarketing

    (@idigmarketing)


    I’m seeking if there is a way to disable the add to cart popup for specific products only. It doesn’t work on appointable products in woocom so just want to disable only for those ones. Please advise thanks

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter idigmarketing

    (@idigmarketing)

    Looking at setting up a custom function something like this

    function kia_filter_ajax_add_to_cart( $supports, $feature, $product ) {

    // Assign category ID of products you do not want to support ajax add to cart
    $appointable_cat_id = 99;

    if( ‘ajax_add_to_cart’ == $feature && in_array( $appointable_cat_id, $product->get_category_ids() ) ) {
    $supports = false;
    }
    return $supports;

    }
    add_filter( ‘woocommerce_product_supports’, ‘kia_filter_ajax_add_to_cart’, 10, 3 );

    Hi @idigmarketing

    Unfortunately, there is no way to disable for specific products.
    This is an ideal feature & I will make sure we include it in the the next update.
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable for specific products’ is closed to new replies.