Skip to content

Ups shipping method CNY vs RMB currencycode problem #4578

@tgoeminne

Description

@tgoeminne

Steps to reproduce

  1. Use UPS shipping method set origin country to China
  2. [Example] shipping settings origin country = China
  3. UPS price not working it is not showing up, in debug can see that prices are collected but currencycode used by ups in china is RMB

I added the following line of code in Carrier.php

protected function _parseXmlResponse($xmlResponse) ....

....
$responseCurrencyCode = (string)$shipElement->TotalCharges->CurrencyCode;

if($responseCurrencyCode == "RMB"){
$responseCurrencyCode = "CNY";
}

After adding this line and override the currency code it works and prices are shown..

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions