1

I need some suggestion or advise on how to get a custom attribute on product page.

I have my custom attribute code as "is_featured" it's a Yes/No value.

In product page when the user changes the colour drop down I need to check that simple product's "is_featured" value.

How could I achieve that any help is appreciated.

Thank you!

2

Ok I have found a solution by just playing with it and found out a very easy solution:

$product = $block->getAllowProducts();

foreach ($product  as $child) {
  print_r($child->getIsFeature());
}

😀

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.