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


Can I overrule shipping 11 Mar 2014 09:34 #1

  • kamstrup
  • kamstrup's Avatar Topic Author

I can't find the documentation. Can I overrule shipoment methods?

More specifically, if customers in our shop buy dog food (heavy) shipment shipment has to be GLS business service.
We sell several other items (not heavy), and normally people can choose to have them delivered to parcel shop or by the postal service.

So how do I remove the other options when people choose the buy both dog food and other items. Since dog food can only be delivered using one shipment method this method has to aply to all other items in this case.

Does my problem make sense?

Can I overrule shipping 11 Mar 2014 14:30 #2

One shipment method cannot disable another method.
However, if you use my shipping by rules plugin for the postal service method (which should not be offered when dog food is included in the order), then you can simply check for dog food in the rules and use NoShipping in that case. This will result in only the GLS method to be offered when dog food is included in the order.

The GLS method, though, will always be offered, since the GLS shipping plugin does not have any way to limit its application based on the items in the cart.

The postal service rules would be (assuming dog food can be identified as all products in category 13):
Comment="Dog food cannot be shipped by postal service"; 13 in Categories; NoShipping
Name="Normal rules come here...."; Shipping=12345

Best regards,
  • Page:
  • 1