Login
Register

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!

×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Calculating 12 Oct 2017 10:46 #1

  • Robcom
  • Robcom's Avatar Topic Author
Hi There,
If i have 1 product it's fits in one envelope. en the cost will be 3.50 .
But as i have 2 product it dosn't fit in one envelope, then it must be a pakkage and the cost will rise to 6.50
But not Always the order 1 product(envelope), sometimes the order 3 products (it will be a pakkage)
How can it be calculating???

Calculating 21 Oct 2017 12:58 #2

Dear Robcom,
Do I understand you correctly that any order with just one article (one unit of one product) will fit into an envelope, but any order with two or more articles (two units of the same product or two different products) do not fit into an envelop and will always be sent as a package?

That is quite easy to implement:
Name=Envelope; Articles<=1; Shipping=3.5
Name=Package; Articles>=2; Shipping=6.5
You can even leave out the "Articles>=2" condition in the second line, because when the first rule matches (i.e. just one article), then the second rule will never be considered at all. So when the conditions of the second rule are evaluated, we know that the order has at least two articles. So, the shorter version is:
Name=Envelope; Articles<=1; Shipping=3.5
Name=Package; Shipping=6.5

Best regards,
Reinhold
  • Page:
  • 1