14
I am developing a virtual store and I need to implement the freight calculation for the purchase, I managed to make this implementation but the problem is that with a single product in the cart I get the correct return, but with several products in the cart the values do not match the simulator of the logistics company.
I wanted to know how I do to calculate the freight of various products together. If I do the calculation of the cubage of each one separately and then sum all, or if I do the calculation of the cubage with the sum of the dimensions of the products, or what is the correct way to do this.
I am lost in this calculation because not on the Internet there is only content explaining about the calculation of individual products and I cannot solve this issue.
Look, when I do with the post office I always add up the weight of everyone to do the calculation, I think the correct thing would be to calculate the tank with the sum of the dimensions.
– Augusto