• Resolved developer2210

    (@developer2210)


    Hi,
    I am using the plugin “WooCommerce PDF Invoices & Packing Slips” in the site. Using this pdf invoices are generated even for failed orders
    is there a way that we generate orders only for orders with a successful payment ? problem is that French tax administration makes it mandatory that invoice numbers are sequential without any missing number .

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @developer2210,

    Using this pdf invoices are generated even for failed orders
    is there a way that we generate orders only for orders with a successful payment ?

    The way our free plugin creates an invoice automatically is when you select order email notifications in which it will be attached, under WooCommerce > PDF Invoices > Documents > Invoice > Attach to: The attachment process will create an invoice document with its respective number:

    A screenshot that displays the Attach to setting

    In the Professional extension, there is another way to create documents, based on the order status (without the need to attach it), specifically the Create automatically for setting. That is, if you select the Processing or Completed order status for this setting, the PDF document will be created only when the order reaches any of these order statuses:

    A screenshot that displays the Create automatically for setting

    As you may have noticed in both examples, I have used the?Processing?and?Completed?order statuses, because these are the ones I recommend selecting to generate PDF documents only in orders where you have received a payment.

    Thread Starter developer2210

    (@developer2210)

    I have tried with enable only particular option on attach to But that is only working for emails But In BO they are still generating the invoices for failed orders as well so could you please let me know about that… Thanks

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Sorry if I do not understand, could you please explain to me what is BO? As I mentioned above, we only create PDF invoices automatically in the ways explained there.

    Thread Starter developer2210

    (@developer2210)

    I mean to say in Beackend i.e admin area it is still generating the pdf invoices for all orders ….here you can see doen’t matter order is successfull or not

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Thanks for providing more details, @developer2210.

    If you want to disable the PDF invoice altogether for specific order statuses, you can use the Disable for setting, under WooCommerce > PDF Invoices > Documents > Invoice:

    Thread Starter developer2210

    (@developer2210)

    @yordansoares Thanks a lot its working….:)

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @developer2210,

    I’m glad to hear that the Disabled for setting worked for you ??

    If you don’t mind and have the time, do you think you could leave us a review?

    Thanks in advance and all the best with your store!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘pdf invoices are generated even for failed orders’ is closed to new replies.