VirtueMart

WooCommerce

Others

Docs

Support

Demo

Blog

About

Forum
Welcome, Guest
Username: Password: Remember me

TOPIC: Shipping Rate

Shipping Rate 06 Sep 2017 21:54 #1

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?
The administrator has disabled public write access.

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
The administrator has disabled public write access.

VM - Shopping cart

 x 

Cart empty

Login Formular