Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
Neo
Neo
I'm trying to test the USPS V3 shipping module. My account is already registered with them. I finally figured out that you have to use the exact test parameters that Viart supplies in the Notes:
 
ZipOrigination: 10022
ZipDestination: 20008
Pounds: 10
Ounces: 5 (weight can be set for every product on Administration > Products)
Size: LARGE
Machinable: TRUE
 
So how do you add ounces to the "weight" field in the edit products area?
 
The default is for pounds (lb) and when I put the test parameter in of "10", the checkout page is happy with that when it sends out that info. But then USPS says it's ALSO looking for ounces.
 
There must be some way to enter pounds and ounces. Problem is that the Viart edit products page only has one form field called "weight".
 
Neo
Neo
OK. I found that by taking this code in the USPS_V3.php file located in the "shipping" folder:
 
// Pounds, Ounces - required
$pounds = floor($weight_total);
$ounces = round(($weight_total - $pounds) * 16);
if (!$pounds && !$ounces) {
$pounds = 0;
$ounces = 1;
 
and change the
 
$ounces = round(($weight_total - $pounds) * 16);
 
to
 
$ounces = 5;
 
The checkout page doesn't give the error. So I got the checkout page working with the USPS test area.
 
Still the problem remains that USPS is requiring "ounces" to be specified. How is this to be designated in the "weight" field on the edit products page?
 
HG (Guest)
HG (Guest)
I think I put 165 (10 lbs 5 oz)