diff --git a/Console/Command/Import.php b/Console/Command/Import.php index 1d599d1..bcb1773 100644 --- a/Console/Command/Import.php +++ b/Console/Command/Import.php @@ -205,13 +205,12 @@ private function renderConversion($data) /** * @param $fromUrl * @param $storeId - * @return int */ - private function getStoreView($fromUrl): int + private function getStoreView($fromUrl) { $storeId = $this->storeManager->getDefaultStoreView()->getId(); foreach ($this->storeRepository->getList() as $store) { - if (str_starts_with($fromUrl, $store->getBaseUrl())) { + if (strpos($fromUrl, $store->getBaseUrl(), 0)) { $storeId = $store->getId(); break; }