Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions ViewModel/Installation.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ public function getJsonConfig($storeId = null): string
} catch (InvalidArgumentException $exception) {
$jsonConfig = '';
}

if (isset($config['region'])){
unset($config['region']);
}
}

return $jsonConfig;
Expand Down Expand Up @@ -261,11 +265,17 @@ private function isAdmin()
*/
private function getRegion($storeId = null): string
{
return null;
/*
* Removed Nov. 2025 if the payload has a region (form the store) , it overrides the customer's region.
* This bypasses the location filtering. let the API determine the region based on the customer.

return (string)$this->scopeConfig->getValue(
\Magento\Config\Model\Config\Backend\Admin\Custom::XML_PATH_GENERAL_COUNTRY_DEFAULT,
ScopeInterface::SCOPE_STORES,
$storeId
);
*/
}

/**
Expand Down