VirtueMart

WooCommerce

Others

Docs

Support

Demo

Blog

About

Forum
Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] Double numbering orders with orders = 0$

Double numbering orders with orders = 0$ 08 Mar 2017 17:40 #1

Hi,

My client would have 2 different counters for his accountability.

- One for the regular orders > 0$ (it could be an event, a bottle of wine or a gift card)
- One for the orders pay WITH the code of a gift card so with a 0$ price

Is there a way to do that ?

When i read the documentation i understand that multiple counters are based on sku, slug or tags but here a same product can be buy with a standard payment or a gift card.

Thank you for your return
The administrator has disabled public write access.

Double numbering orders with orders = 0$ 12 Mar 2017 19:03 #2

Dear Marcantoine,
In our plugin, multiple counters are not explicitly based on any particular variable, but they work more abstract. In particular, we don't have any code to handle SKUs or slug special. If your only condition for a different numbering scheme is total order amount == 0, then you can indeed easily use a different numbering format for this case. See e.g. our documentation for a case of this:
open-tools.net/documentation/advanced-or...tml#custom_variables

In particular, the fifth row in these variable definitions is exactly what you need: If the total order amount equals 0, then the order number format is changed to FREE-2017-0100. Please note that this does NOT work with a global counter, so you'll have to disable the global counter if you have it enabled in the first place.

Best regards,
Reinhold
The administrator has disabled public write access.

Double numbering orders with orders = 0$ 13 Mar 2017 08:47 #3

Thank you !

It's exactly what i mean. Great plugin ;)
The administrator has disabled public write access.

[SOLVED] Double numbering orders with orders = 0$ 13 Mar 2017 08:47 #4

Problem solved.
The administrator has disabled public write access.

VM - Shopping cart

 x 

Cart empty

Login Formular