Magento – Get value of selected multiselect attribute

attributesmultiselect-attributeproduct-attribute

Take the following "car" product: Volkswagen Golf.

It has a multiselect attribute car_options with the following possible options and their ids:

  • Airco (id=123) selected
  • Radio (id=124) selected
  • Bluetooth (id=125)
  • Navigation (id=126)

Radio and Airco are selected for this product. How can I get those two values (radio, airco) and display them? $_product is given.

Best Answer

Try this:

echo $_product->getResource()->getAttribute('car_options')->getFrontend()->getValue($_product);
Related Topic