-
Notifications
You must be signed in to change notification settings - Fork 79
Bugfix: PDP displays a bundled product instead of the requested simple product #600
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
Conversation
|
@brandonmaynard this LGTM but could you please add a test to cover that case as well. Thx. |
dplaton
left a comment
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.
Also, see the unit test comment by @mhaack
Codecov Report
@@ Coverage Diff @@
## master #600 +/- ##
=========================================
Coverage 88.28% 88.29%
- Complexity 1367 1371 +4
=========================================
Files 254 254
Lines 6353 6358 +5
Branches 943 946 +3
=========================================
+ Hits 5609 5614 +5
Misses 560 560
Partials 184 184
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
Verified. Thx @brandonmaynard for this contribution. |
|
Thanks all |
I am facing an issue where if I try to load a simple product on the PDP, the GraphQL response has 2 products listed. The first product is a bundled product which contains the requested simple product in it. The second product is the actual simple product I expect to be loaded on the PDP. Since the logic just grabs the 0 element of the product array, the bundled product is instead being displayed on the PDP even though the SLUG is the simple product's url_key.
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: