Author Topic: VM2 ordernumber plugin: Customize order and invoice numbers  (Read 3666 times)

reinhold

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 200
VM2 ordernumber plugin: Customize order and invoice numbers
« on: December 16, 2012, 15:00:27 pm »
Dear all,

This is the support forum for my VirtueMart 2 ordernumber plugin:
http://open-tools.net/virtuemart-2-extensions/40-vm2-ordernumber.html

This is a Virtuemart 2 plugin that allows the shop owner to change the format of the order numbers, order passwords and invoice numbers. The running counter of the orders and invoices can be configured to use separate counters for different time periods.

By default, Virtuemart 2 creates order numbers like b6ee03, where the first four letters/digits are randomly generated and only the last digits are a running order number. Similarly, the order password will be like p_57ad1 and the invoice numbers will look like 12111323602, where the first six digits indicate the date, the next three digits are seemingly random (actually, they are the first few digits of the md5 hash created from the order number and order status), and only the final number(s) are a running count.

In many countries, tax laws require invoices to be successively numbered, with an optional fixed prefix (different prefixes for different purposes are allowed), but a random part in the invoice number is a big NO-NO.

The solution is this plugin: It allows you to define the format of the order number, order password and invoice number in the plugin settings.

If you have questions about the plugin (that are not yet answered in the FAQ on the plugin's homepage) or encounter problems, you can either send my an email (office@open-tools.net) or post your questions here.

Best regards,
Reinhold

lindapowers

  • Full Member
  • ***
  • Posts: 1236
  • If you're going through hell, keep going.
    • Venta de naranjas online y mandarinas
  • Skype Name: manu.gonzalez91
  • VirtueMart Version: Latest avi
Re: VM2 ordernumber plugin: Customize order and invoice numbers
« Reply #1 on: December 16, 2012, 16:16:05 pm »
Thanks a lot, at last someone that notices that VM2 invoice numbers are ILEGAL to use in many countries.

Is not a big problem with the order numbers, you can use any number there but invoices as you say need a prefix and correlative numbers.

Regards

http://www.comenaranjas.com - Navel oranges and clementines from Spain