Skip to content

Commit

Permalink
AMC-483: Fix single store mode tax class
Browse files Browse the repository at this point in the history
  • Loading branch information
magentix committed Sep 11, 2024
1 parent fffceb0 commit 69d7edb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Helper/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -1323,10 +1323,12 @@ public function getProductTaxClasses()
$result[0] = $class['tax_class'];
}

/** @var StoreInterface $store */
foreach ($stores as $store) {
if ($store->getWebsiteId() === $class['website']) {
$result[$store->getId()] = $class['tax_class'];
if (!$this->storeManager->isSingleStoreMode()) {
/** @var StoreInterface $store */
foreach ($stores as $store) {
if ($store->getWebsiteId() === $class['website']) {
$result[$store->getId()] = $class['tax_class'];
}
}
}
}
Expand Down

0 comments on commit 69d7edb

Please sign in to comment.