• Resolved Dev49.net

    (@dev49net)


    Hi,
    Is there any chance that in the future versions of the plugin you would add another option to “Attach to Email” field? What I want is to have an option not to send the invoice to customer at any point.

    The problem is that I am using invoices just for me, invoice should never be sent to the customer. I have set “Attach to Email” to “Customer invoice”, but the problem is that sometimes I create my own custom orders in WooCommerce admin panel for special customers. Then I set the order to Pending Payment and use “Resend order email: Customer invoice” feature to send the order details along with the payment link for this order. This is the only way I can send a custom order payment link to the customer. Unfortunately, along with this email, the PDF invoice is attached to this email and I just don’t want customers to be receiving these PDF invoices.

    So basically what would be perfect is if you added option “Do not send email to the customer” in “Attach to Email” dropdown 🙂 Do you think it’s possible?

    Cheers,
    Daniel

    https://wordpress.org/plugins/woocommerce-pdf-invoices/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Dev49.net

    (@dev49net)

    Up? 🙂
    I took a look at your code and actually it seems to be very easy to implement. Adding this in 105 line of class-bewpi-admin-settings-general.php seems to do the trick:

    array(
    	'name' => __( 'Do not send invoice to customer', $this->textdomain ),
    	'value' => 'do_not_send_invoice'
    )

    No additional code seems to be required, since the email sending method looks for the match in the option value, and do_not_send_invoice does not match any order status, therefore email is not sent, just as I need.

    Any chance of implementing this in the core, so I can easily update the plugin? 🙂

    Plugin Author Bas Elbers

    (@baaaaas)

    Will add this to the next update. Good one! 🙂

    Thread Starter Dev49.net

    (@dev49net)

    Great, thank you so much. Looking forward to the next update.
    Already rated your plugin, works really well. What I love the most is the beatufiul invoice template, one of the most eye-catching invoice templates I’ve seen.

    Good luck with development and future projects.

    Thread Starter Dev49.net

    (@dev49net)

    I see you’ve included this in new version, fantastic. Thank you so much. Marking this one as resolved.

    Cheers,
    Daniel

    Plugin Author Bas Elbers

    (@baaaaas)

    Nice!
    Would you be so kind to rate the plugin? It will support future development a lot! Many thanks.

    Thread Starter Dev49.net

    (@dev49net)

    Already rated, on October 26, 2015 🙂

    Cheers,
    Dan

    Plugin Author Bas Elbers

    (@baaaaas)

    Alrighty then! Many thanks. 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Do not send invoice to customer?’ is closed to new replies.