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


several options for the same region 19 Feb 2015 10:42 #1

  • e80
  • e80's Avatar Topic Author
Can you tell me some details about the plugin rules_shipping_advanced?

I’d like to use several options for the same region:
Name=Office1, street1; State2==10; Shipping=10
Name=Office2, street2; State2==10; Shipping=12
Name=Office3, street3; State2==10; Shipping=11

Now only the first condition is used in this case.

several options for the same region 19 Feb 2015 13:51 #2

1) State2 is the 2-letter abbreviation of th state, so you should compare with something like "SA", "BZ", "WS", ...
2) You can add additional conditions. The first rule will only be used if ALL conditions match. You seem to want an additional condition on the street. You can use the Street variable, but that is really prone to typos etc. Do you have any other ways to distinguish your three offices? E.g. a zip/postcode that is different for the three offices? If so, the rules could be:
Name=Office1, street1; ZIP==1234; State2==10; Shipping=10
Name=Office2, street2; ZIP==1246; State2==10; Shipping=12
Name=Office3, street3; ZIP==9999; State2==10; Shipping=11

These rules don't even require the advanced version. If you have a long list of possible ZIP codes, or want to compare the beginning of the street address, then the advanced version is probably needed.

Best regards,
  • Page:
  • 1