0

Bundle item drop down selection name is called out like this: $this->escapeHtml($selection->getName()) in

Magento\Bundle\Block\Catalog\Product\View\Type\Bundle (Option.php)

I want to call out the selection attribute.

$this->getProduct()->getAttributeText('pattern'); calls out bundle item attribute itself but $this->escapeHtml($selection->getAttributeText('pattern')) does not work.

How to call out bundle item selection attributes? Thanks.

0

Found the answer to my question myself. Attribute storefront "Used in Product listing" had to be set Yes

So $this->escapeHtml($selection->getAttributeText('pattern')) does work

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.