Advanced Ordernumbers for VirtueMart

IMPORTANT ANNOUNCEMENT: Plugin development ceased, all plugins made available freely (GPL)

With great sadness we have to announce that we are ceasing development of all our VirtueMart, WooCommerce and Joomla plugins. Effective immediately, all our plugins -- even those that were paid downloads -- are made available for free from our homepage (GPL license still applies), but we cannot and will not provide any support anymore.

It has been a great pleasure to be part of the thriving development communities of VirtueMart as well as WooCommerce. However, during the last year it became painstakingly clear that in addition to a full-time job, a young family and several other time-consuming hobbies at professional level (like being a professional singer) the plugin development and the support that it requires is not sustainable and is taking its toll. It has been an honor, but it is now time to say good bye!



The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1


Invoice number works only at the first order 13 Apr 2016 18:38 #1

  • lucapac
  • lucapac's Avatar Topic Author
I've installeated "Advanced Ordernumbers for Virtuemart, Version 4.0" on my site (J 2.5 + VM 2.6.22).

The numbering of invoices has worked only at the first test after installing the plugin...
Later he stopped working, billing is issued immediately (and not after marking the order as shipped) and a random number. (view attachment)

Can you help me please?


Invoice number works only at the first order 16 Apr 2016 00:59 #2

Dear Lucapac,
The invoice is generated when an order is changed to one of the statuses configured in the VirtueMart Backend. The numbering plugin does not interfere at all with when an invoice is generated. In fact, it is only called by VirtueMart when an invoice is to be created.

Regarding the naming of the invoice: The appended _20141110 appears to be a date (November 10, 2014)...

There are multiple possible causes for this phenomenon:

1. Have you ever manually removed test orders from your installation and then restarted the MySQL server? In that case it is known that MySQL will reuse the autoincrement ID, so new VM orders will get the same ID as already deleted orders. This would not be a problem per se. The other factor is that in VirtueMart deleting an order only deletes the order from the database, but NOT the corresponding invoice information from the invoice database table (since that might later be needed for the tax authorities...). So if a new order get the same ID as a previously deleted order, and that deleted order already had an invoice generated, the new order will get the invoice number of the deleted order.

2. Have you somehow reset the invoice number counter in the plugin configuration? If VirtueMart detects that an invoice with that file name already exists, it will append either a running digit or the data (the behavior changed some time in the past).

It would be helpful to know the exact configuration of our Ordernumber plugin for VirtueMart to figure out possible causes of your issue.

Best regards,
Reinhold Kainhofer
  • Page:
  • 1