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

used product link from metadataPool instead of getId for Adobe commerce #142

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

NavaneethVijay
Copy link

@NavaneethVijay
Copy link
Author

@zans-laksa @carinadues Please review the PR

@carinadues
Copy link
Contributor

@aleksandrsm can you please do CR?

@@ -255,7 +255,8 @@ protected function getChildCollectionMapAndList(): array {
$childProductsList = [];

$parentIds = array_map(function ($product) {
return $product->getId();
$linkField = $this->metadataPool->getMetadata(ProductInterface::class)->getLinkField();
Copy link
Contributor

Choose a reason for hiding this comment

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

here and in other places: only load $linkField ones, there is no need to check it inside each array/foreach iteration, it will not change

Copy link
Author

Choose a reason for hiding this comment

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

@aleksandrsm Updated the changes, please check

Copy link
Contributor

@aleksandrsm aleksandrsm left a comment

Choose a reason for hiding this comment

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

see comment

@carinadues
Copy link
Contributor

@NavaneethVijay Thank you! This will be added in an upcoming release.
@aleksandrsm Thanks for CR :)
cc: @ViktoriiaOzhozhenko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Variants collection returns null in Adobe cloud commerce due to usage of row_id for product mapping.
4 participants