I am done with searching the web and the core for possible solutions. I've found multiple solutions but only one worked (not completely).

Now I am about to query them by a raw statement. However I would appreciate it if someone could point me to the right direction.

So the task should be pretty simple. I need all the selections of every option of a bundle product.

This is my current solution:

$selectionCollection = $bundleType->getSelectionsCollection($bundleType->getOptionsIds($_product), $_product)

$connection = $resource->getConnection();
$selections = $connection->fetchAll($selectionCollection->getSelect()->__toString());

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.