Wow thanks a lot for the reply, yeah Reinhold I always bring you mind blowing issues eh ;)
The easiest way is the total weight calculation yes, and that could work for us.
The ideal case is the other option but weight is more than valid.
In our case boxes are just 5, 10 and 15 kg but I think your rules could manage that no?
If and order is 27 kg it would be 2 boxes of 15 kg or 1 of 15 kg and 1 of 10 kg and one of 5 kg, is valid in both cases.
If an order has a total weight of 17 kg it would be 1 box of 15 kg and 1 box of 5 kg.
The idea is to use the less number of boxes possible.
I see your plugin can print this info which is great but that would show where exactly? in the shipment name?
If that is the case that would be great cause we could export that value and print it per order so our warehouse guys know the number of boxes an order has.
My remaining doubt is how to integrate that in to our current rules:
Ill post them here for you:
Name=Península, max 6kg; 01000<=ZIP<07000; Weight<=6; Shipping=4.81
Name=Península, max 11kg; 01000<=ZIP<07000; 7<=Weight<=11; Shipping=5.77
Name=Península, max 16kg; 01000<=ZIP<07000; 12<=Weight<=16; Shipping=6.73
Name=Península, max 21kg; 01000<=ZIP<07000; 17<=Weight<=21; Shipping=8.65
Name=Península, max 26kg; 01000<=ZIP<07000; 22<=Weight<=26; Shipping=10.58
Name=Península, max 31kg; 01000<=ZIP<07000; 27<=Weight<=31; Shipping=11.54
Name=Península, max 36kg; 01000<=ZIP<07000; 32<=Weight<=36; Shipping=13.46
Name=Península, max 41kg; 01000<=ZIP<07000; 37<=Weight<=41; Shipping=15.38
Name=Península, max 46kg; 01000<=ZIP<07000; 42<=Weight<=46; Shipping=17.31
Name=Península, max 51kg; 01000<=ZIP<07000; 47<=Weight<=51; Shipping=19.23
Name=Península, max 61kg; 01000<=ZIP<07000; 52<=Weight<=61; Shipping=23.08
Name=Península, max 71kg; 01000<=ZIP<07000; 62<=Weight<=71; Shipping=26.92
Name=Península, max 81kg; 01000<=ZIP<07000; 72<=Weight<=81; Shipping=30.77
Name=Península, max 91kg; 01000<=ZIP<07000; 82<=Weight<=91; Shipping=34.62
Name=Península, max 100kg; 01000<=ZIP<07000; 92<=Weight<=101; Shipping=38.46
Name=Spain, Weight=>102; 01000<=ZIP<07000; Shipping=38.46+(Weight-101)*0.1
Name=Baleares, max 6kg; 07000<=ZIP<08000; Weight<=6; Shipping=10.58
Name=Baleares, max 11kg; 07000<=ZIP<08000; 7<=Weight<=11; Shipping=10.58
Name=Baleares, max 16kg; 07000<=ZIP<08000; 12<=Weight<=16; Shipping=13.46
Name=Baleares, max 21kg; 07000<=ZIP<08000; 17<=Weight<=21; Shipping=15.38
Name=Baleares, max 26kg; 07000<=ZIP<08000; 22<=Weight<=26; Shipping=17.31
Name=Baleares, max 31kg; 07000<=ZIP<08000; 27<=Weight<=31; Shipping=17.31
Name=Baleares, max 36kg; 07000<=ZIP<08000; 32<=Weight<=36; Shipping=19.23
Name=Baleares, max 41kg; 07000<=ZIP<08000; 37<=Weight<=41; Shipping=24.04
Name=Baleares, max 46kg; 07000<=ZIP<08000; 42<=Weight<=46; Shipping=26.92
Name=Baleares, max 51kg; 07000<=ZIP<08000; 47<=Weight<=51; Shipping=28.85
Name=Baleares, max 61kg; 07000<=ZIP<08000; 52<=Weight<=61; Shipping=30.77
Name=Baleares, max 71kg; 07000<=ZIP<08000; 62<=Weight<=71; Shipping=38.46
Name=Baleares, max 81kg; 07000<=ZIP<08000; 72<=Weight<=81; Shipping=43.27
Name=Baleares, max 91kg; 07000<=ZIP<08000; 82<=Weight<=91; Shipping=48.08
Name=Baleares, max 100kg; 07000<=ZIP<08000; 92<=Weight<=101; Shipping=52.88
Name=Spain, Weight>102; 07000<=ZIP<08000; Shipping=38.46+(Weight-101)*0.1
Name=Península, max 6kg; 08000<=ZIP<35000; Weight<=6; Shipping=4.81
Name=Península, max 11kg; 08000<=ZIP<35000; 7<=Weight<=11; Shipping=5.77
Name=Península, max 16kg; 08000<=ZIP<35000; 12<=Weight<=16; Shipping=6.73
Name=Península, max 21kg; 08000<=ZIP<35000; 17<=Weight<=21; Shipping=8.65
Name=Península, max 26kg; 08000<=ZIP<35000; 22<=Weight<=26; Shipping=10.58
Name=Península, max 31kg; 08000<=ZIP<35000; 27<=Weight<=31; Shipping=11.54
Name=Península, max 36kg; 08000<=ZIP<35000; 32<=Weight<=36; Shipping=13.46
Name=Península, max 41kg; 08000<=ZIP<35000; 37<=Weight<=41; Shipping=15.38
Name=Península, max 46kg; 08000<=ZIP<35000; 42<=Weight<=46; Shipping=17.31
Name=Península, max 51kg; 08000<=ZIP<35000; 47<=Weight<=51; Shipping=19.23
Name=Península, max 61kg; 08000<=ZIP<35000; 52<=Weight<=61; Shipping=23.08
Name=Península, max 71kg; 08000<=ZIP<35000; 62<=Weight<=71; Shipping=26.92
Name=Península, max 81kg; 08000<=ZIP<35000; 72<=Weight<=81; Shipping=30.77
Name=Península, max 91kg; 08000<=ZIP<35000; 82<=Weight<=91; Shipping=34.62
Name=Península, max 100kg; 08000<=ZIP<35000; 92<=Weight<=101; Shipping=38.46
Name=Spain, Weight>102; 08000<=ZIP<35000; Shipping=38.46+(Weight-101)*0.1
Name=Península, max 6kg; 36000<=ZIP<38000; Weight<=6; Shipping=4.81
Name=Península, max 11kg; 36000<=ZIP<38000; 7<=Weight<=11; Shipping=5.77
Name=Península, max 16kg; 36000<=ZIP<38000; 12<=Weight<=16; Shipping=6.73
Name=Península, max 21kg; 36000<=ZIP<38000; 17<=Weight<=21; Shipping=8.65
Name=Península, max 26kg; 36000<=ZIP<38000; 22<=Weight<=26; Shipping=10.58
Name=Península, max 31kg; 36000<=ZIP<38000; 27<=Weight<=31; Shipping=11.54
Name=Península, max 36kg; 36000<=ZIP<38000; 32<=Weight<=36; Shipping=13.46
Name=Península, max 41kg; 36000<=ZIP<38000; 37<=Weight<=41; Shipping=15.38
Name=Península, max 46kg; 36000<=ZIP<38000; 42<=Weight<=46; Shipping=17.31
Name=Península, max 51kg; 36000<=ZIP<38000; 47<=Weight<=51; Shipping=19.23
Name=Península, max 61kg; 36000<=ZIP<38000; 52<=Weight<=61; Shipping=23.08
Name=Península, max 71kg; 36000<=ZIP<38000; 62<=Weight<=71; Shipping=26.92
Name=Península, max 81kg; 36000<=ZIP<38000; 72<=Weight<=81; Shipping=30.77
Name=Península, max 91kg; 36000<=ZIP<38000; 82<=Weight<=91; Shipping=34.62
Name=Península, max 100kg; 36000<=ZIP<38000; 92<=Weight<=101; Shipping=38.46
Name=Spain, Weight>102; 36000<=ZIP<38000; Shipping=38.46+(Weight-101)*0.1
Name=Península, max 6kg; 39000<=ZIP<60000; Weight<=6; Shipping=4.81
Name=Península, max 11kg; 39000<=ZIP<60000; 7<=Weight<=11; Shipping=5.77
Name=Península, max 16kg; 39000<=ZIP<60000; 12<=Weight<=16; Shipping=6.73
Name=Península, max 21kg; 39000<=ZIP<60000; 17<=Weight<=21; Shipping=8.65
Name=Península, max 26kg; 39000<=ZIP<60000; 22<=Weight<=26; Shipping=10.58
Name=Península, max 31kg; 39000<=ZIP<60000; 27<=Weight<=31; Shipping=11.54
Name=Península, max 36kg; 39000<=ZIP<60000; 32<=Weight<=36; Shipping=13.46
Name=Península, max 41kg; 39000<=ZIP<60000; 37<=Weight<=41; Shipping=15.38
Name=Península, max 46kg; 39000<=ZIP<60000; 42<=Weight<=46; Shipping=17.31
Name=Península, max 51kg; 39000<=ZIP<60000; 47<=Weight<=51; Shipping=19.23
Name=Península, max 61kg; 39000<=ZIP<60000; 52<=Weight<=61; Shipping=23.08
Name=Península, max 71kg; 39000<=ZIP<60000; 62<=Weight<=71; Shipping=26.92
Name=Península, max 81kg; 39000<=ZIP<60000; 72<=Weight<=81; Shipping=30.77
Name=Península, max 91kg; 39000<=ZIP<60000; 82<=Weight<=91; Shipping=34.62
Name=Península, max 100kg; 39000<=ZIP<60000; 92<=Weight<=101; Shipping=38.46
Name=Spain, Weight>=102; 39000<=ZIP<60000; Shipping=38.46+(Weight-101)*0.1
Name=Península, max 6kg; 53000<=ZIP<99999; Weight<=6; Shipping=4.81
Name=Península, max 11kg; 53000<=ZIP<99999; 7<=Weight<=11; Shipping=5.77
Name=Península, max 16kg; 53000<=ZIP<99999; 12<=Weight<=16; Shipping=6.73
Name=Península, max 21kg; 53000<=ZIP<99999; 17<=Weight<=21; Shipping=8.65
Name=Península, max 26kg; 53000<=ZIP<99999; 22<=Weight<=26; Shipping=10.58
Name=Península, max 31kg; 53000<=ZIP<99999; 27<=Weight<=31; Shipping=11.54
Name=Península, max 36kg; 53000<=ZIP<99999; 32<=Weight<=36; Shipping=13.46
Name=Península, max 41kg; 53000<=ZIP<99999; 37<=Weight<=41; Shipping=15.38
Name=Península, max 46kg; 53000<=ZIP<99999; 42<=Weight<=46; Shipping=17.31
Name=Península, max 51kg; 53000<=ZIP<99999; 47<=Weight<=51; Shipping=19.23
Name=Península, max 61kg; 53000<=ZIP<99999; 52<=Weight<=61; Shipping=23.08
Name=Península, max 71kg; 53000<=ZIP<99999; 62<=Weight<=71; Shipping=26.92
Name=Península, max 81kg; 53000<=ZIP<99999; 72<=Weight<=81; Shipping=30.77
Name=Península, max 91kg; 53000<=ZIP<99999; 82<=Weight<=91; Shipping=34.62
Name=Península, max 100kg; 53000<=ZIP<99999; 92<=Weight<=101; Shipping=38.46
Name=Spain, Weight>=102; 53000<=ZIP<99999; Shipping=38.46+(Weight-101)*0.1
Thanks a lot for help
Regards