I'm new to Magento and I'm developing E-commerce site in Magento 2.
I have created an attribute "Power Type" (MultiSelect) and gave 4 options to it and assigned it to "default" Attribute set.
I created a product with "default" attribute selected and selected 3 options from the 4 options given in "Power Type" attribute. Now when I show these options on Product view,
I want to show all of them with the option that is not selected to be grayed out.
Right now I'm using following code in my phtml file to retrieve the attribute values
$_powertypes = $_product->getAttributeText("power_types");
Above code gives me value of that attribute that is for a product selected. I want all the four options that were made during the creation of attribute.
Thanks in advance.