Login
Register

VirtueMart

WooCommerce

Others

Docs

Support

Blog

About

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!

×

Notice

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

TOPIC:

free shipping over $50 but not if weight over 3kg 18 Mar 2014 12:14 #1

  • peaceandlove
  • peaceandlove's Avatar Topic Author
I want to create a rule,
Orders are free of shipping over $50 but if the weight of an item exceeds 3kg then shipping needs to be paid


Here is what i made, Is this correct or what modification needed

Name=Free Shipping; 50<= Amount; 0
Name=AllWeight; 3>=Weight; Shipping=10

free shipping over $50 but not if weight over 3kg 18 Mar 2014 12:49 #2

There are several changes needed to your approach:

1) The maximum weight of all items in the cart is available in the MaximumWeight variable. the Weight variable gives the total weight of the order.

2) The condition "3>=Weight" means: if the total weight of he order is smaller or equal to 3. You rather want "3<=MaximumWeight" (i.e. the largest weight of any of the articles in the order is larger or equal to 3).

3) If you place the free shipping first, the second rule will NEVER be even checked for orders above 50$. So you need to either place the weight-based rule first or add an extra condition for the maximum weight.

I would use this:
Name=AllWeight; MaximumWeight>=3; Shipping=10
Name=Free Shipping; 50<=Amount; Shipping=0

You probably also want a rule for standard shipping costs...

Best regards,
Reinhold
  • Page:
  • 1