Skip to content

Commit

Permalink
[EX-442] [M1] Update SDK Config for Magento Admin Offers Only to Set …
Browse files Browse the repository at this point in the history
…Region to US

- added region=US for admin warranty offer render
  • Loading branch information
boorlyk committed Feb 17, 2023
1 parent ce81574 commit e376842
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/code/local/Extend/Warranty/Helper/Connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,19 @@ public function getJsonConfig()
'environment' => $this->isLiveMode() ? self::LIVE : self::DEMO,
];

if($this->isAdmin()){
$data['region'] = 'US';
}

return json_encode($data);
}

/**
* @return boolean
*/
protected function isAdmin(){
return Mage::getSingleton('admin/session')->isLoggedIn();
}
/**
* @param $sku
* @param false $fromAdmin
Expand Down

0 comments on commit e376842

Please sign in to comment.