configure products before price update #4069
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issues
closes #4053
Short Description and Why It's Useful
There are no prices because render-list doesn't have configurable_children data. So we clear prices for children (clearPricesBeforePlatformSync), then we fetch render-list, update prices for parent and at the end we return child (variant) as product. So child has price:null.
I've checked magento docs and probably there is no option to add configurable_children to render-list data.
So only solution is to add children skus to parent skus. But we can't fetch all of them because we will have to fetch 500+ skus :/
We can change order in
processCategoryProducts, so in that case parent will be replaced already by child (variant), but it's probably huge change. This require some tests and comments.Which Environment This Relates To
Check your case. In case of any doubts please read about Release Cycle
developbranch and want to merge it back todevelopreleasebranch and want to merge it back toreleasehotfixormasterbranch and want to merge it back tohotfixUpgrade Notes and Changelog
IMPORTANT NOTICE - Remember to update
CHANGELOG.mdwith description of your changeContribution and Currently Important Rules Acceptance