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:

TotalPackaging & TotalLenght 16 Jan 2014 14:08 #1

  • manuxx
  • manuxx's Avatar Topic Author
Hi Reinhold

After this topic www.open-tools.net/forum/shipping-by-rul...order-packaging.html, in order to make it more exact we read once again all your documentation and we found the values: TotalLength, TotalWidth, TotalHeight, TotalPackaging

So we decided to use TotalPackaging but it doesnt return any value, says "bultos" (totalboxes) 0 in every case, we have tried also with TotalLenght too.

We have defined packacking 15 and lenght 15 in the product dimensions tab.

It works fine if we use "Weight" instead of "TotalPackaging" or "TotalLenght" however using one of this 2 fields will give us more freedom to specify the packaging of each product and obtain a more exact number of boxes.
Variable=totalboxes; Value=ceil(TotalPackaging/15)
Name=Portugal, max 6kg Bultos {totalboxes}; Weight<=6; Shipping=7.69
Name=Portugal, max 11kg Bultos {totalboxes}; 7<=Weight<=11; Shipping=8.65
Name=Portugal, max 16kg Bultos {totalboxes}; 12<=Weight<=16; Shipping=9.62
Name=Portugal, max 21kg Bultos {totalboxes}; 17<=Weight<=21; Shipping=12.50
Name=Portugal, max 26kg Bultos {totalboxes}; 22<=Weight<=26; Shipping=16.35
Name=Portugal, max 31kg Bultos {totalboxes}; 27<=Weight<=31; Shipping=20.19
Name=Portugal, max 36kg Bultos {totalboxes}; 32<=Weight<=36; Shipping=24.04
Name=Portugal, max 41kg Bultos {totalboxes}; 37<=Weight<=41; Shipping=27.88
Name=Portugal, max 46kg Bultos {totalboxes}; 42<=Weight<=46; Shipping=31.73
Name=Portugal, max 51kg Bultos {totalboxes}; 47<=Weight<=51; Shipping=35.58
Name=Portugal, max 61kg Bultos {totalboxes}; 52<=Weight<=61; Shipping=43.27
Name=Portugal, max 71kg Bultos {totalboxes}; 62<=Weight<=71; Shipping=50.96
Name=Portugal, max 81kg Bultos {totalboxes}; 72<=Weight<=81; Shipping=58.65
Name=Portugal, max 91kg Bultos {totalboxes}; 82<=Weight<=91; Shipping=66.35
Name=Portugal, max 100kg Bultos {totalboxes}; 92<=Weight<=101; Shipping=74.04
Name=Portugal, Bultos {totalboxes}; Weight>=102; Shipping=74.04+(Weight-101)*0.6

Are we doing something incorrect?

Regards

TotalPackaging & TotalLenght 05 Feb 2014 00:21 #2

  • manuxx
  • manuxx's Avatar Topic Author
Hi Reinhold

Are TotalPackaging or TotalLenght deprecated in newer versions?

Regards

TotalPackaging & TotalLenght 10 Feb 2014 21:07 #3

No, both TotalPackaging and TotalLength (you have a small typo) should work fine...

To debug the problem, you can follow the approach given in:
open-tools.net/documentation/shipping-by...emart.html#debugging

That will print all available variables with the corresponding values.

TotalPackaging & TotalLenght 15 Feb 2014 23:12 #4

  • manuxx
  • manuxx's Avatar Topic Author
Hi Reinhold

Problem was that i copied directly from the documentation using caps and didnt work.

Now it does:

Variable=totalboxes; Value=ceil(totalpackaging/10)


I think I found a little issue, the packaging doesnt like decimals.

Example= Product tomato packaging set 0.5000 kg

The system takes that as 1 kg.


I have tested several products with packaging 0.2000 kg etc and they all get rounded to highest values however I think I read a topic in the VM forum (which now i cant find) reporting this so it may be an issue with VM itself.


Regards

TotalPackaging & TotalLenght 17 Feb 2014 08:50 #5

  • manuxx
  • manuxx's Avatar Topic Author
Finally I used totallength since this accepts values of 0.5 etc

Pls note that with caps it does not work,

Regards

[SOLVED] TotalPackaging & TotalLenght 17 Feb 2014 08:50 #6

  • manuxx
  • manuxx's Avatar Topic Author
Problem solved.
  • Page:
  • 1