VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: SINNISTER on July 04, 2012, 16:44:24 PM

Title: Prefix/unique invoice numbers
Post by: SINNISTER on July 04, 2012, 16:44:24 PM
HI all,

Is there a way i can give the invoice numbers on Viretuemart a prefix/tag only because we have numerous website and i need unique/prefix invoice numbers to keep track of them.

Thanks
Title: Re: Prefix/unique invoice numbers
Post by: Milbo on July 05, 2012, 10:17:49 AM
You can write a small plugin and use the trigger plgVmOnUserOrder, which allows you to manipulate all order data
Title: Re: Prefix/unique invoice numbers
Post by: SINNISTER on July 05, 2012, 11:58:27 AM
Great Thanks, But I'm a little out of my depths if Im needing to program/script something.

Title: Re: Prefix/unique invoice numbers
Post by: deepakdhingra on November 08, 2012, 21:42:29 PM
This functionality is required by a lot of people. No one as yet has taken up on creating a plugin like this. Milbo, I am sure that you will make a log of people happy by creating such a plugin that can manipulate invoice and order number.

Why dont you take it up? How much will this cost? I am sure lost of people will be ready to pay for this. I am.

Thanks.

Deepak
Title: Re: Prefix/unique invoice numbers
Post by: reinhold on November 14, 2012, 15:02:35 PM
I have now created such a plugin, which allows the shop owner to change the order number, order password and invoice number at will:
http://open-tools.net/virtuemart-2-extensions/40-vm2-ordernumber.html

The format is given as a text string, where [...] is understood as a variable and replaced by its value (e.g. [year] by the current year).

The running counter is indicated by #. The counter can be configured to be global (e.g. not reset each year/month/..) or a separate counter for each year/month/...

I hope you like the plugin and it does what you need. If you have any suggestions or further needs, just tell me: office@open-tools.net