Skip to content

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

Closed
@robertkent

Description

@robertkent

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: BundleComponent: SalesFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions