• Resolved thibault01

    (@thibault01)


    Hi,

    thanks for your plugin.

    Could you help me to create a function to skip the invoice generation for specific products or categories ?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter thibault01

    (@thibault01)

    No body to help ?

    Plugin Author Bas Elbers

    (@baaaaas)

    This is not possible at the moment. I will add a hook which you can use in new update.

    Plugin Author Bas Elbers

    (@baaaaas)

    
    function bewpi_skip_invoice_generation( $skip, $status, $order ) {
        // Do your stuff based on the order.
    
        return true; // True to skip.
    }
    add_filter( 'bewpi_skip_invoice_generation', 'bewpi_skip_invoice_generation', 10, 3 );
    
    Thread Starter thibault01

    (@thibault01)

    Thanks but in your function, what I have to change ? the numbers are ID of product or category?
    Best

    Hi Bas,
    Congratulations, great plugin, much better than many premium invoice plugins.
    This post status is marked as Resolved but it’s actually Not resolved yet.
    I would like to have the same functionality and the code above is skipping invoice generation in general, not only for a category.
    BR.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to skip invoice generation for specific products or categories’ is closed to new replies.