Frequently Asked Questions
I can't create a manifest for an order going out of country customs_value_per_unit 0.00
Last Updated 5 years ago
If you can't create a manifest for an order that is going to go through customs and you're seeing this errror in the log file.
/rs/0004004663-0008004925/0004004663/shipment: cvc-simple-type 1: element {http://www.canadapost.ca/ws/shipment}customs-value... value '0.0000' is not a valid instance of the element type
You can correct this here.
The issue you're having is the declared customs value was $0.00. To fix it
change line 68 of
/app/code/community/Collinsharper/Canpost/Helper/Rest/Shipment.php from :
<customs-value-per-unit>'.$item->getPrice().'</customs-value-per-unit>';
To
<customs-value-per-unit>'.$product->getPrice().'</customs-value-per-unit>';
/rs/0004004663-0008004925/0004004663/shipment: cvc-simple-type 1: element {http://www.canadapost.ca/ws/shipment}customs-value... value '0.0000' is not a valid instance of the element type
You can correct this here.
The issue you're having is the declared customs value was $0.00. To fix it
change line 68 of
/app/code/community/Collinsharper/Canpost/Helper/Rest/Shipment.php from :
<customs-value-per-unit>'.$item->getPrice().'</customs-value-per-unit>';
To
<customs-value-per-unit>'.$product->getPrice().'</customs-value-per-unit>';