From b0f4cc2e765fd10bd9668212383c90afed11bf7b Mon Sep 17 00:00:00 2001 From: Alexander Peresypkin Date: Thu, 2 May 2019 14:40:07 +0200 Subject: [PATCH] Add available on store view currencies to the price facet. --- .../Algolia/Algoliasearch/Helper/Entity/Producthelper.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/code/community/Algolia/Algoliasearch/Helper/Entity/Producthelper.php b/app/code/community/Algolia/Algoliasearch/Helper/Entity/Producthelper.php index 02b0c260..6fa3ee35 100644 --- a/app/code/community/Algolia/Algoliasearch/Helper/Entity/Producthelper.php +++ b/app/code/community/Algolia/Algoliasearch/Helper/Entity/Producthelper.php @@ -236,9 +236,7 @@ public function setSettings($storeId, $saveToTmpIndicesToo = false) $facets = $this->config->getFacets($storeId); - /** @var Mage_Directory_Model_Currency $directoryCurrency */ - $directoryCurrency = Mage::getModel('directory/currency'); - $currencies = $directoryCurrency->getConfigAllowCurrencies(); + $currencies = Mage::app()->getStore($storeId)->getAvailableCurrencyCodes(); foreach ($facets as $facet) { if ($facet['attribute'] === 'price') {