Skip to content

Commit

Permalink
Merge pull request #19 from YotpoLtd/use-new-domain
Browse files Browse the repository at this point in the history
fix(AbstractApi.php, DirectLink.php):use new domain
  • Loading branch information
zivyifrah authored Mar 19, 2020
2 parents 7222ddb + 0109951 commit cab9eb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Block/Adminhtml/System/Config/DirectLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ public function getButtonHtml()
]
);
if (!($guid = $this->getSwellGuid()) || !($apiKey = $this->getSwellApiKey())) {
$button->setOnClick("window.open('https://app.swellrewards.com/login','_blank');");
$button->setOnClick("window.open('https://loyalty.yotpo.com/login','_blank');");
} else {
$button->setOnClick("window.open('https://app.swellrewards.com/login/{$guid}/{$apiKey}','_blank');");
$button->setOnClick("window.open('https://loyalty.yotpo.com/login/{$guid}/{$apiKey}','_blank');");
}

return $button->toHtml();
Expand Down
2 changes: 1 addition & 1 deletion Helper/AbstractApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

abstract class AbstractApi extends \Magento\Framework\App\Helper\AbstractHelper
{
const SWELL_API_PRODUCTION_URL = "https://app.swellrewards.com/magento/";
const SWELL_API_PRODUCTION_URL = "https://loyalty.yotpo.com/magento/";

/**
* @var \Yotpo\Loyalty\Helper\Data
Expand Down

0 comments on commit cab9eb5

Please sign in to comment.