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:

Cost for additional kg 07 Apr 2015 13:51 #1

  • oysterrgirl
  • oysterrgirl's Avatar Topic Author
Hello, i need to know what rules do i need to calculate an additional cost per kilo. It'd be something like this:

Name=24/48H ; 0<Weight<=1; Shipping=5.25
Name=24/48H ; 1<Weight<=3; Shipping=5.50
Name=24/48H ; 3<Weight<=5; Shipping=6
Name=24/48H ; 5<Weight<=10; Shipping=6.50
Name=24/48H ; 10<Weight<=15; Shipping=8

From 15kg on shipping would have an additional cost of 0.55 per kilo

How can do this? Do i need Shipping by Rules advanced?

I have Virtuemart 2.6 and Joomla 2.5

Regards.

Edit: i have purchased the Advanced plugin, installed it and tried this:

Name=24/48H ; 15<Weight<=100; Shipping=8+0.55*Weight

But it doesn't work

Cost for additional kg 11 Apr 2015 14:08 #2

Hello,
Your rule looks more or less correct, except that you don't want to add 0.55 for the kilos below 15kg, only for those kg that are above 15kg. Also, you want to round the weight up to the next full kg (e.g. if the order is 15,3kg, then you want to add 1kg and not 0,3kg*0,55=0.165€). So, the shipping rule should be:
Name=24/48H ; 15<Weight<=100; Shipping=8+0.55*ceil(Weight-15)

Best regards,
Reinhold
  • Page:
  • 1