Skip to content

Commit

Permalink
Added current store currency to Page
Browse files Browse the repository at this point in the history
  • Loading branch information
denisprotassoff committed Dec 14, 2022
1 parent 4ddba3b commit 8bf6a32
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/View/Result/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,14 @@ public function getWebsiteCode()
{
return $this->storeManager->getWebsite()->getCode();
}

/**
* @return string
*/
public function getStoreCurrency()
{
return $this->storeManager->getStore()
->getCurrentCurrency()
->getCode();
}
}

0 comments on commit 8bf6a32

Please sign in to comment.