Shipping by Rules 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!



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


[Solved] Shipping based on amount % 24 Feb 2014 10:14 #1

  • kpuche
  • kpuche's Avatar Topic Author
I don't know if this has already been asked, I apologize if so...
I'm trying to build a shipping cost based on the % of the cart amount (4% for instance):
Name=Test; Amount>400; Shipping=Amount*4/100
I'm using the free version of VM Shipping by Rules and this doesn't seem to work (it returns no shipping cost at all).

I have a few questions:
- is it possible to do what I'm trying to do?
- if so, is this syntax correct?
- and if so, can it be used with the free version? Or must I buy the pro version?

Thanks in advance and best regards,

Shipping based on amount % 24 Feb 2014 13:13 #2

Calculating shipping costs as % of the cart amount is possible, but only with the Advanced (i.e. paid) plugin. The free plugin does not have any way to interpret a mathematical formula like "Amount*0.04"

That is actually the only major difference between the free and the paid versions of the plugin: The paid plugin includes code to properly calculate mathematical formulas, while the free version has only the comparisons (<, <=, ==, =>, >) implemented, but no interpretation of formulas.
Granted, a multiplication like "Amount*0.04" might appear to be a trivial problem to calculate, but one needs to be aware that mathematical expressions can be arbitrarily complex (with function calls, nested parentheses, etc), so a mathematical expression parser is far from trivial to write. That's why the free plugin does not include mathematical expressions, but the advanced plugin does.

Best regards,

PS: You can try out both the free and the paid plugin at demo.kainhofer.com/

Your syntax is correct, though, but only for the advanced plugin.

Shipping based on amount % 25 Feb 2014 10:40 #3

  • kpuche
  • kpuche's Avatar Topic Author
Thanks for your fast answer!
I bought the advanced version and all works perfectly.
Best regards,
  • Page:
  • 1