1
How is the freight values calculated in case the user selects more than one product in a virtual store? When registering a product, we are giving the option to the customer to put the length, height, width, diameter and weight per product. In PHP picked this way before calculating shipping:
$parametros['nVlComprimento'] = '35';
$parametros['nVlAltura'] = '21';
$parametros['nVlLargura'] = '13';
$parametros['nVlDiametro'] = '0';
My only question is how is it calculated? I am currently calculating the quantity of products * the freight value that is generated by the API I am using, but I would not have to calculate the above values also in case the customer chooses another product?
I worked with Loja Virtual, I used the Post Office API to calculate, sent the data as weight etc and the mail returned the value. It depends on the size, weight of the product, location, etc. For example: https://github.com/newerton/api-correios/blob/master/Correios.php
– Allan Kehl