Skip to content

Commit

Permalink
filter product based on akeneo locale
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGrimmChester committed Jul 31, 2023
1 parent 19df861 commit 2780d2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Filter/ProductFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ private function getLocales(ProductFiltersRules $productFilterRules): array
Operator::LOWER_OR_EQUALS_THAN_ON_ALL_LOCALES,
Operator::GREATER_OR_EQUALS_THAN_ON_ALL_LOCALES,
])) {
return $productFilterRules->getLocales(); //TODO: also unmap to akeneo
return array_map(function(string $syliusLocale) {
return $this->syliusAkeneoLocaleCodeProvider->getAkeneoLocale($syliusLocale);
}, $productFilterRules->getLocales());
}

return $this->syliusAkeneoLocaleCodeProvider->getUsedAkeneoLocales();
Expand Down

0 comments on commit 2780d2d

Please sign in to comment.