UPS Shipping Module

My UPS Currency Code is not USD - UPS Shipping Module

My UPS Currency Code is not USD

by Tanya » Sun Feb 13, 2022 8:00 pm

Hi Zipurman,

My default UPS Currency Code is not USD. When I add your module, it shows the price from my account but with USD currency which is not correct.

Is there anyway to solve my issue?
Attachments
zipups.jpg
Tanya
Posts: 19
Joined: Tue Mar 09, 2021 3:16 pm
Contact:

Re: My UPS Currency Code is not USD

by zipurman » Sun Feb 13, 2022 11:48 pm

I know that the USD vs CAD is handled within the account on UPS's side. Is there a currency option in your UPS settings for your account? If not, we'd have to code something into the includes/modules/shipping/zipusps.php to convert the prices to your currency from which ever currency is being returned from your UPS account. The conversion would have to be done on this line: 'price' => $estimate['Postage'],

If you have multiple currencies within your store, then the others would convert the above adjusted values to whatever currency is selected.
zipurman
aka Preston Lord
-----------
Happy to help where I can ;)

https://phoenixaddons.com
https://www.youtube.com/zipurman/ ** PHOENIX HOW-TO VIDEOS **
Image
User avatar
zipurman
PhoenixCart Developer
PhoenixCart Developer
Posts: 470
Joined: Tue Oct 13, 2020 5:20 pm
Contact:

Re: My UPS Currency Code is not USD

by Tanya » Mon Feb 14, 2022 6:07 pm

Unfortunately, there is no currency setting in my account.
Tanya
Posts: 19
Joined: Tue Mar 09, 2021 3:16 pm
Contact:

Re: My UPS Currency Code is not USD

by zipurman » Mon Feb 14, 2022 10:08 pm

Based on their API DOCS:

In what monetary denominations are the rates returned by the Rating API?

For published rates the currency returned is based on the country of origin. For negotiated rates the currency returned is based on the country of the account number. For example, when rating a shipment from the United States to Canada with a Canadian
account number, the published rate will be in USD but the negotiated rates will be returned in Canadian dollars (CAD).

Negotiated rates are available in the PRO version: https://phoenixaddons.com/product/phoen ... ng-module/

If you are shipping from the same country as your default currency, then the non-pro version of the addon should work.
zipurman
aka Preston Lord
-----------
Happy to help where I can ;)

https://phoenixaddons.com
https://www.youtube.com/zipurman/ ** PHOENIX HOW-TO VIDEOS **
Image
User avatar
zipurman
PhoenixCart Developer
PhoenixCart Developer
Posts: 470
Joined: Tue Oct 13, 2020 5:20 pm
Contact: