I am using this to get the value of an attribute that is a multi select box in magento.
if($_product->getAttributeText('attribute') == "Value 1") {
// Do something
}
It works however, only if it is the only option that is selected for the product. If the product has multiple options selected then nothing happens.
How can I get it to recognise the value even if it has multiple options?
Aucun commentaire:
Enregistrer un commentaire