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


Categories filter doesn't work 06 Feb 2016 15:59 #1

  • ivo
  • ivo's Avatar Topic Author
Hi ,

I am experiencing this problem
VM 3,0,8 here

tried : Name=ACTION ; contains_any (Categories, 1); Weight>25; Shipping=0

it does not check the categories in the cart, but no error

now i tried

Name=ACTION ; Condition=contains_any(Categories,"freeshippingcat"); Weight>25; Shipping=0

an i receive the error
Evaluation yields unknown value while evaluating rule part 'contains_any(Categories,'.

on checkout

Wich rule should i use to get this to work?

Categories filter doesn't work 06 Feb 2016 18:29 #2

Dear Ivo,
This messsage sounds as if you have selected the basic (free) Shipping by Rules shipment method type for your shipping method (on the first tab of the shipping method setup page). The free plugin lacks the code to interpret functions like contains_any, thus the error message. If you select the advanced plugin for you method, then the error message disappears.

Notice, however, that in Virtuemart the categories are identified only by their ID, not by their name (which is translated, so it might not even be unique and idential for different users). So you need to use your first attempt, together with the "Condition=".

Best regards,

Categories filter doesn't work 06 Feb 2016 20:11 #3

  • ivo
  • ivo's Avatar Topic Author
Hi Reinhold,

So if i understand correctly , for this to work i have to :
-pay for the advanced plugin (is this 18,15 euro once or a year?)
-use : Name=ACTION ; condition=contains_any (Categories, 1); Weight>25; Shipping=0
(please correct if i made a error)

Thanks in advance !

Categories filter doesn't work 07 Feb 2016 22:20 #4

Dear Ivo,
All calculations and all functions like contains_any are only available in the advanced version of the plugin, which costs a one-time 15€+taxes (unless you have a valid EU VAT ID).

The rule you give is syntactically correct. What it does is to give free shipping if at least one product from category 1 is bought (an possibly products from other categories) and the total weight is more than 25 (kg).

Best regards,
  • Page:
  • 1