• Resolved heyscoobydoo

    (@heyscoobydoo)


    Hi,

    I’m trying to make invoices to generate only when the order is set as completed (some orders end before payment and they shouldn’t have a bill). I read in another post it was related to the emails they are linked to so I’ve only enabled “order completed” as can be seen here: https://prntscr.com/i1tl5w

    The invoices continue generating from the exact moment the order is created even if it’s not paid so I don’t know what to do.

    I would appreciate your help. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi! How did you determine that the invoices are generating when the order is created?
    Can you compare the invoice date (on the ‘PDF Invoice data’ box on the order details page) to the order date?
    Note that the button to generate the invoice is always available, regardless of the attachment settings and/or order status! So clicking it will generate the invoice and the button itself is no indication of whether an invoice is generated (only the invoice number/invoice date).

    Let us know and we’ll do our best to help you figure out what’s going on here!
    Ewout

    Thread Starter heyscoobydoo

    (@heyscoobydoo)

    Hi!

    How did you determine that the invoices are generating when the order is created?

    They appear in the same moment the order is created (I can click the button and download it) even if it hasn’t been moved from the “on hold” status.

    Can you compare the invoice date (on the ‘PDF Invoice data’ box on the order details page) to the order date?

    It matches. They are the same.

    Note that the button to generate the invoice is always available, regardless of the attachment settings and/or order status! So clicking it will generate the invoice and the button itself is no indication of whether an invoice is generated (only the invoice number/invoice date).

    Oh, I dind’t know it. Is there any way to hide it until the order is completed (and therefore it has been automatically generated to attach to order completed email)? If clicking that button generates the bill, since the shop is run by several people, there can be errors.

    Thank you so much!

    Plugin Contributor Ewout

    (@pomegranate)

    Oh, I dind’t know it. Is there any way to hide it until the order is completed (and therefore it has been automatically generated to attach to order completed email)? If clicking that button generates the bill, since the shop is run by several people, there can be errors.

    This is probably the reason you’re seeing these ‘invoices’. They’re just the buttons to create the invoice!

    You can disable these buttons with a filter, check these threads:

    Hope that helps!
    Ewout

    Thread Starter heyscoobydoo

    (@heyscoobydoo)

    Thank you so much! I will check them!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Invoice only when order is completed’ is closed to new replies.