Login
Register

VirtueMart

WooCommerce

Others

Docs

Support

Blog

About

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!

×

Notice

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

TOPIC:

Shipping Rate 06 Sep 2017 21:54 #1

  • augrafi
  • augrafi's Avatar Topic Author
Hi Trying to simply create two shipping rates on woocommerce:

Name=Shipping below 15 kg's; Weight<15; Shipping=165
Name=Shipping above 15 kg's - R5 for every kg over 15 kg's; Weight>15; Shipping=175

So basically anything under 15 kgs is R165 & anything over is R5 p/kg..

Can anyone help?

Shipping Rate 18 Sep 2017 12:15 #2

Dear Augrafi,
The easiest way would be to use the advanced version with a formula for the shipping cost:
Name=Shipping below 15 kg; Weight<=15; Shipping=165
Name=Shipping above 15 kg - R5 for every kg over 15 kg; Weight>15; Shipping=165 + 5*ceil(weight-15)
Please note that your rules did not specify shipping costs if Weight=15. I added the = in the first rule.

If you don't want to spend money on the advanced version, you'll have to write one rule for each kg above 15kg:
Name=Shipping below 15 kg; Weight<=15; Shipping=165
Name=Shipping above 15 kg - R5 for every kg over 15 kg; 15<Weight<=16; Shipping=170
Name=Shipping above 15 kg - R5 for every kg over 15 kg; 16<Weight<=17; Shipping=175
Name=Shipping above 15 kg - R5 for every kg over 15 kg; 17<Weight<=18; Shipping=180
Name=Shipping above 15 kg - R5 for every kg over 15 kg; 18<Weight<=19; Shipping=185
Name=Shipping above 15 kg - R5 for every kg over 15 kg; 19<Weight<=20; Shipping=190
Name=Shipping above 15 kg - R5 for every kg over 15 kg; 20<Weight<=21; Shipping=195
....
Name=Shipping above 15 kg - R5 for every kg over 15 kg; 30<Weight; Shipping=245

If you don't have an upper bound for the weight, you'll have to stop somewhere and put an upper limit on the shipping, like in the final rule above.

Best regards,
Reinhold
  • Page:
  • 1