I thought to do a series of IF statements. I have a separate php file that does the delivery calculations, so I assume I just do all the IF statements in there, checking...
for one of the delivery companies they provided me with these calculations:
150 cm as a longest length.
300 cm length and girth combined.
30 kilos.
Any variation of the box dims that doesn’t exceed this is fine on any service.
Here are some examples
100 cm x 50 cm x 50 cm – L / W / H – The reasoning here is 50 plus 50 CM (two smallest dims – of the 3 – L / W / H) added together equals 100 – 100 x 2 = 200 and 200 – Plus the outstanding and remaining 1 dimension of 100 cm = 300 CM L and G Combined.
Another example is 60 x 60 x 60 cm – using the same maths –
do you think thats straight forward to do with a bunch of IF statements? I would need to do a first IF statement to check to see if the size falls for that particular delivery company.