Skip to content

Bundle Product Options not showing in Customer Account - Items Ordered #16434

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

Closed
robertkent opened this issue Jun 27, 2018 · 5 comments
Closed
Labels
Component: Bundle Component: Sales Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release

Comments

@robertkent
Copy link

When ordering a bundle product (for instance the sample data provides the Yoga Kit) - the bundle options are not shown on the items ordered tab of the my account section.

Environment: Magento v2.2.2 with Sample Data (can't see a fix in other newer release notes)

Steps to reproduce

  1. Install Magento v2.2.2 with sample data
  2. Create an account then purchase the Yoga Kit (Bundle Product) on its own
  3. Visit the My Orders section in My Account
  4. View the Items Ordered tab

Expected result

Parent product with the options underneath (as is shown on the invoice tab)

Actual result

Only parent product is listed

Preconditions

  1. PHP 7.0 and PHP 7.1 tested
  2. MySQL 5.6 / 5.7
  3. Magento 2.2.2 via create-project
  4. Sample Data installed (but also broken on live website with real products)

What I've debugged so far

Looking through the files, I can see that the $parentItem->getChildrenItems() within the renderer template for bundle returns empty.

Looking deeper into the problem, the magento-sales\Model\Order\Item.php does in fact call addChildItem() which should append to the $this->_children property array.

getChildrenItems() should simply pull this array - it looks like between this class being constructed (with child items) and called, this property is being cleared.

screen shot 2018-06-27 at 17 29 49
screen shot 2018-06-27 at 17 29 54

@magento-engcom-team
Copy link
Contributor

Hi @robertkent. Thank you for your report.
To help us process this issue please make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento-engcom-team give me {$VERSION} instance

where {$VERSION} is version tags (starting from 2.2.0+) or develop branches (2.2-develop +).
For more details, please, review the Magento Contributor Assistant documentation.

@robertkent do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?

  • yes
  • no

@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label Jun 27, 2018
@ghost ghost self-assigned this Jul 2, 2018
@ghost ghost added Component: Sales Component: Bundle Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release labels Jul 2, 2018
@ghost
Copy link

ghost commented Jul 2, 2018

Hello @robertkent , thank you for your report.
We've acknowledged the issue and added to our backlog.

@ghost ghost removed their assignment Jul 2, 2018
@engcom-backlog-nickolas engcom-backlog-nickolas added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Jul 20, 2018
@slavvka
Copy link
Member

slavvka commented Nov 16, 2018

Hi @robertkent. Thank you for your report.
The issue has been fixed in #17889 by @rogyar in 2.2-develop branch
Related commit(s):

The fix will be available with the upcoming 2.2.8 release.

@magento-engcom-team
Copy link
Contributor

Hi @robertkent. Thank you for your report.
The issue has been fixed in #19318 by @torhoehn in 2.3-develop branch
Related commit(s):

The fix will be available with the upcoming 2.3.1 release.

@fernandusfero
Copy link

fernandusfero commented Jun 18, 2019

Removed

Magento/Sales/Block/Order/Items.php
$this->itemCollection->filterByParent(null);

I can see bundle options in my orders now, But I am facing a issue with pagination, If a bundle products option goes with a in-completion to the 2nd page its renders as a simple product and not as bundle option.
But for print view i can get the outcome even its is rendered as in-completion .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Bundle Component: Sales Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release
Projects
None yet
Development

No branches or pull requests

5 participants