Shipping By Rules for WooCommerce

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


Cost based shipping with added cost for weight 06 Feb 2018 08:47 #1

  • farmgirloysters
  • farmgirloysters's Avatar Topic Author
So far i have the shipping costs based on the total purchase price. Which works great..
But for one particular product that is heavy but is $100, I need to increase the shipping just based on its weight...to $13

How can i do that?
This is my code thus far:


Cost based shipping with added cost for weight 17 Feb 2018 00:01 #2

Dear FarmGirlOysters,
Do I understand you correctly that the shipping for the whole order should be $13 flat if the heavy product is in the cart (plus possible some other, light products, which in this case don't have any influence on the shipping cost).

How do you identify that one special product? Do you properly set the weight for that product and all other products have a much lower weight? In that case, you can use a condition on the total weight to determine whether that heavy product is in the order:
Weight>=100; Shipping=13

The first rule would handle the case that the heavy product is in the cart. If that rule does not match, then you simply want to apply your rules thus far.

If you have other, heavy products (or the total weight of the order of all light products might be just as heavy as that single heavy product), then you cannot use such a condition on the weight. In that case, I'm afraid you'll need the paid version to special-case on one product (or one category indicating heavy products).

Best regards,
  • Page:
  • 1