Skip to content
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

SMM-8 Import categories by store view #352

Merged
merged 7 commits into from
Dec 16, 2024
Merged

SMM-8 Import categories by store view #352

merged 7 commits into from
Dec 16, 2024

Conversation

maartynaa
Copy link
Contributor

No description provided.

@@ -52,15 +76,15 @@ public function toArray(): array
* @return array
* @throws LocalizedException
*/
private function retrieveCategories(int $storeId = 0, $toOptionArray = true): array
private function retrieveCategories(string $storeId = '0', $toOptionArray = true): array
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO if possible we should keep the int method declaration isntead

Comment on lines 23 to 29
$storeId = $postData['store_id'];

$collection->setProductStoreId(
$storeId
)->setStoreId(
$storeId
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should skip setProductStoreId and setStoreId if the post param is missing?

@maartynaa maartynaa merged commit 0495cd2 into develop Dec 16, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants