-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WZ-4506:Fixed Category URL issue when there is multiple stores. #146
base: dev
Are you sure you want to change the base?
Conversation
ce589e6
to
faac839
Compare
$this->allStoreBaseUrls = $this->storeManager->getAllStoreBaseUrls(); | ||
} | ||
|
||
$storeUrls = $this->allStoreBaseUrls; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$storeUrls = $this->allStoreBaseUrls;
Simply us $this->allStoreBaseUrls
Not required
; | ||
} | ||
|
||
$currentStoreBaseUrl = $this->currentStoreBaseUrl[$this->storeId]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check if
$this->currentStoreBaseUrl[$this->storeId] and isset($this->currentStoreBaseUrl[$this->storeId]['base_url'])
b9b9532
to
ea833f4
Compare
} | ||
} | ||
|
||
$categoryUrl = $currentStoreBaseUrl."".$categoryUrl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if we did not find any URL and replaced it? Only append $currentStoreBaseUrl in the if condition above. And only if $currentStoreBaseUrl is set or not null
No description provided.