VirtueMart

WooCommerce

Others

Docs

Support

Blog

About

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!

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

If I delete order in backend 21 Jul 2014 22:02 #1

  • antonio78
  • antonio78's Avatar Topic Author
  • Offline
  • Posts: 10
Hello,
I have a strange behavior with the plugin.
I order a test number 1
Orders received had come to the numbering 7
This morning I deleted test order number 1
After I came back with a new order number 1
So it seems that the numbering is game over again.
How do I fix this?
it is urgent

Please Log in or Create an account to join the conversation.

If I delete order in backend 25 Jul 2014 14:11 #2

  • antonio78
  • antonio78's Avatar Topic Author
  • Offline
  • Posts: 10
Fantastic support.
But you've read that my post was urgent???
This is not a nice way to sell extensions without giving proper support.
Blot out your plugin from my site.
Thank you so much

Please Log in or Create an account to join the conversation.

If I delete order in backend 18 Aug 2014 12:34 #3

Dear Antonio, sorry for the long delay, but I was away on vacation for three weeks and I'm now working through the long backlog of messages from that time.

Deleting an order does not have any effect on the counter, so there must be some other reason.

Do you include the day in the order number (i.e. the [day] variable, like "[year][month][day]-#")? And if so, are you using a global counter in the config or a format-specific counter?
Format-specific counter means that for a new day (or year, or whatever variable(s) you use in the format, and only those) the counter will start from 1.

For example, take the format [year][month][day]-#:

FIRST ORDER TODAY:
  1. The plugin will insert all variables except for the counter.
    Result today: "20140818-#"
  2. Then it checks in the database if a counter with this name already exists.
    This is not the case, so it uses a counter of 1:
    Result today: "20140818-1"
  3. The counter value 1 for "20140818-#" is stored in the database.

NEXT ORDER TODAY:
  1. First, the plugin will insert all variables except for the counter.
    Result today: "20140818-#" (same as above)
  2. Now this counter already exists and has a value of 1 in the database. The plugin uses this and increases it to 2. Then it inserts this into the order number:
    Result today: "20140818-2"
  3. The counter value 2 for "20140818-#" is stored in the database.

FIRST ORDER TOMORROW:
  1. The plugin will insert all variables except for the counter.
    Result tomorrow: "20140819-#" (different than above!)
  2. Then it checks in the database if a counter with this name already exists.
    This is not the case, so it uses a counter of 1:
    Result today: "20140819-1"
  3. The counter value 1 for "20140819-#" is stored in the database.


As you can see, with a format-specific counter, whenever any of the variables in the format changes, the counter starts from 1.
If you want one global counter that does not reset, simply select "Global counter" in the plugin configuration.

Best regards,
Reinhold

Please Log in or Create an account to join the conversation.

  • Page:
  • 1

VM - Shopping cart

 x 

Cart empty

Login Formular