diff --git a/app/code/local/Extend/Warranty/Helper/Connector.php b/app/code/local/Extend/Warranty/Helper/Connector.php index 404bbf4..fc8b4e1 100644 --- a/app/code/local/Extend/Warranty/Helper/Connector.php +++ b/app/code/local/Extend/Warranty/Helper/Connector.php @@ -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