VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: rosen4o on November 16, 2011, 18:39:00 PM

Title: Order number VS Order ID
Post by: rosen4o on November 16, 2011, 18:39:00 PM
Is it possible to use Order ID instead  Order number on order management???
Title: Re: Order number VS Order ID
Post by: Milbo on November 18, 2011, 20:40:30 PM
no. The order_id is an internal number which should never be used outside, there will exist plugins so that you can use your own order_number.
Title: Re: Order number VS Order ID
Post by: Bruce Morgan on April 03, 2012, 21:07:44 PM
Is there any work being done on the plug-ins you mention?  I need to retain the old order numbers plus have VM continue the numerical sequence OR create a new one that makes sense.

Bruce
Title: Re: Order number VS Order ID
Post by: Milbo on April 05, 2012, 21:21:11 PM
Hmmm I did parts of the plugin. Write me a pn, please
Title: Re: Order number VS Order ID
Post by: knutmw on October 23, 2012, 19:37:01 PM
How is it going whit the plugin? have VM 2.0.12e
And can't find the plugin anywere, but it is much needed.
Hope to hear that it can be downloaded from a place.

Title: Re: Order number VS Order ID
Post by: reinhold on November 15, 2012, 14:15:14 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/...
If you only want the order number as a running count, the format is simply '#' (without the quotes). If you want to prefix the order/invoice numbers by the year or year+month then the format it simply '[year]-#' or '[year2][month]#'... If you want the invoice number to be the same as the order number (this might not fulfill some legal requirements about invoices having successive numbers!), you can simply use '[orderNumber]'.
There are many more possibilities in the plugin!

I hope you like the plugin and it does what you need.