WPInvoicing retrieves old pending invoices when user buys new item

This topic contains 8 replies, has 3 voices, and was last updated by  Paolo 6 months, 1 week ago.

  • Author
    Posts
  • #2310

    Alex Howes
    Buyer
    Post count: 175

    Hello

    There seems to be an odd set up in WPInvoicing where if a user clicks to purchase an item, the system will bring up an old pending invoice instead of making a new one, even if the price has changed. Is there a way to stop this happening and create a new invoice every time?

    Thanks,
    Alex

    #2311

    Paolo
    Site Admin
    Post count: 30830

    Hi,

    Can you please describe step by step how to recreate this and also provide a link and admin credentials where we can see this behavior?

    Thanks

    #2316

    patrik
    Moderator
    Post count: 1119
    This reply has been marked as private.
    #2372

    Alex Howes
    Buyer
    Post count: 175

    Hi Patrik,

    Sorry to be revisiting this issue after some time. I haven’t resolved it yet.

    I think this is probably intended behaviour of the plugin. I have an item setup which a user can purchase. When they click to buy the item, the plugin creates an invoice. If they click away without purchasing the item the plugin saves that invoice to draft. Later on if the same user clicks to buy the item again, the plugin retrieves the drafted invoice rather than creating a new one. This means that any updates made to the item in the intervening time are not there (e.g. item title, price, etc.)

    Is there a way to delete the invoice when a user clicks away, rather than saving it as a draft? That way the next time the user clicks to buy the item the plugin would create a new invoice.

    Hope that’s clear,
    Alex

    #2375

    Paolo
    Site Admin
    Post count: 30830

    That can only be done manually.

    Thanks

    #2376

    Alex Howes
    Buyer
    Post count: 175

    Hi Paulo,

    Is there another solution to this issue? It is causing quite a problem on my site and also seems like a general problem. E.g. the plugin might retrieve a draft invoice from months ago when the item price might have been very different!

    Alex

    #2389

    Paolo
    Site Admin
    Post count: 30830

    Hi,

    this is done on purpose. If you change price, you should make sure to clean up your pending invoices 1st.

    Anything else would require a customization.

    Thanks

    #2436

    Alex Howes
    Buyer
    Post count: 175

    Hi Paulo,

    This seems odd. Is it possible that by ‘cleaning up’ the pending invoices you might mistakenly delete the invoice of someone in the middle of a transaction?

    Alex

    #2437

    Paolo
    Site Admin
    Post count: 30830

    Hi,

    the pending status is assigned only when a transaction is declined or abandoned. Not in the middle of a transaction.

    Thanks

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘WPInvoicing retrieves old pending invoices when user buys new item’ is closed to new replies, this may be for inactivity, please open a new topic if you have a similar question.