Here's the solution to the problem marcopolo was trying to solve in his post and AmazonPayments gave part of the answer. This does need to be changed as it is not correct as supplied and Amazon should be doing this in their code.
The complete solution follows in the code below if you're using IOPN. If you're not you probably have to put this code where $shipping_label is being set earlier in the file.

Originally Posted by
marcopolo
Shipping - UPS Ground - 7.43: 7.43
How can I have it only say just: UPS Ground
Shipping - UPS Ground - 7.43:
what is in bold is not needed price is populated twice one in the name colum and another is it's own colum, I ask becasue this prints on my invoices and does not look good.

Originally Posted by
AmazonPayments
2. You can change that value while the order in zencart system being created by createOrders method in amazonorder.php file. you can search for $shipping_label variable and modify it to suit your needs
In amazonorder.php you need to search for "overwrite the shipping label for IOPN".
Existing code:
Code:
/* overwrite the shipping label for IOPN*/
if(!isset($shipping_label)){
$shipping_label = $data->getOrderFulfillmentShippingLabel();
}
Changed code:
Code:
/* overwrite the shipping label for IOPN*/
if(!isset($shipping_label)){
$shipping_label = $data->getOrderFulfillmentShippingLabel();
/* LBP 9-7-10 strip price off end of shipping label */
$shipping_label = substr($shipping_label, 0, strrpos($shipping_label, '-'));
}
I'd also like to see the prices that are concatenated on to the shipping methods not being rounded and also have the currency symbol in front of them. I haven't looked yet to see if this code is in the plug-in so I can change it, but if not Amazon should fix it.
BTW, I am using Super Orders and everything is working correctly with Super Orders without any modifications.
Bookmarks