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:

Shipping cost based on weight or volume 15 Dec 2015 20:21 #1

  • Marttyn
  • Marttyn's Avatar Topic Author
Hi!
Im using you plugin to calculate the shipping prices like this:

Name=4-5 days [0-3Kg]; weight<3000; Shipping=17.8
Name=4-5 days [3-5Kg]; 3000<=weight<5000; Shipping=19.3
Name=4-5 days [5-10Kg]; 5000<=weight<10000; Shipping=28.1
Comment=Paises EU 1; Shipping=NoShipping

i have several of this, with different prices, and countries.
This is only based on weight. But actually, my shipping company charges me based on weight or volume, depending which one is grater.
To calculate de "volumetric weight" we have to: length*height*width/5000
So if i have a product that is 20*20*20cm, and weight 1kg. I will be charged for 1.6kg
20*20*20/5000=1.6 this is the volumetric weight.

How should i modify my rules?
I have to be careful to use the correct units, as my products dimensions are in milimeters, and the weight in grams.

PS:
By the way, if the plugin evaluates each row and applies only the first one that is true can I remove the left comparison on "weight" like this?

Name=4-5 days [0-3Kg]; weight<3000; Shipping=17.8
Name=4-5 days [3-5Kg]; weight<5000; Shipping=19.3
Name=4-5 days [5-10Kg]; weight<10000; Shipping=28.1
Comment=Paises EU 1; Shipping=NoShipping

Thanks!

Shipping cost based on weight or volume 15 Dec 2015 20:53 #2

  • Marttyn
  • Marttyn's Avatar Topic Author
Ive made this rule, that i think it should work, but as i am on the free version i cant test:

Name=4-5 days [0-3Kg]; weight<3000; Volume/5000<3000; Shipping=17.8
Name=4-5 days [3-5Kg]; weight<5000; Volume/5000<5000; Shipping=19.3
Name=4-5 days [5-10Kg]; weight<10000; Volume/5000<10000; Shipping=28.1
Comment=Paises EU 1; Shipping=NoShipping

Can you confirm this will charge depending on weight or volumetric weight?
If it works i will buy the plugin :)
Thanks!

Shipping cost based on weight or volume 30 Dec 2015 14:26 #3

Dear Marttyn,
The volumetric weight (also known as dimensional weight) is not directly available in the plugin. The biggest issue is that the total volume of all products is not necessarily the total volume of the package. In general, the volume of the package is quite a bit larger than the sum of the volumes of the individual products.
Clearly, the volume of your packages depends on the actual box dimensions that you use for shiping, and also on the way you personally put the products into the packaging boxes. So, there is not way for the shipping plugin to determine the actual dimensions of the package.

If you still want to calculate the volumetric weight from the products' volumes, then your approach looks correct to me.
However, to keep things easier to understand and maintain, I would define two variables with the volumetric weight and the weight that is used to calculate the shipping. See the following forum post:
open-tools.net/forum/shipping-by-rules-p...nal-weight.html#5185

Best regards,
Reinhold
  • Page:
  • 1