• Resolved Make carlos

    (@make-carlos)


    Hi

    add_action('woocommerce_add_to_cart', 'test_custome_add_to_cart');
    function test_custome_add_to_cart() {
    
    global $woocommerce;
    	global $product;
    if( $product->is_type( 'simple' ) ){
    
    // why this is not working ?
    
    }
    }
    • This topic was modified 3 years, 2 months ago by Make carlos.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Sol J. a11n

    (@solstudioim)

    Hi @make-carlos

    Sorry for the delay getting back to you.

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Mirko P.

    (@rainfallnixfig)

    Hi there,

    We’ve not seen any activity on this thread for a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution and the above resources for developers were helpful. If you have further questions, please feel free to open a new topic.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘why is_type is not working ?’ is closed to new replies.