Skip to content

Commit

Permalink
Fixed available currencies filtering in UPS getAllowedMethods() method (
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano authored May 28, 2024
1 parent 9b52744 commit e3f2574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups.php
Original file line number Diff line number Diff line change
Expand Up @@ -2348,7 +2348,7 @@ protected function _parseRestResponse(string $rateResponse)
if (@$rateResponseData['RateResponse']['Response']['ResponseStatus']['Description'] === 'Success') {
$arr = $rateResponseData['RateResponse']['RatedShipment'] ?? [];
$allowedMethods = explode(",", $this->getConfigData('allowed_methods') ?? '');
$allowedCurrencies = Mage::app()->getStore()->getAvailableCurrencyCodes();
$allowedCurrencies = Mage::getModel('directory/currency')->getConfigAllowCurrencies();
foreach ($arr as $shipElement) {
$negotiatedArr = $shipElement['NegotiatedRateCharges'] ?? [] ;
$negotiatedActive = $this->getConfigFlag('negotiated_active')
Expand Down

0 comments on commit e3f2574

Please sign in to comment.