multi select - Get multiselect attribute options in Magento category list page -
i have code:
<?php $multiselectarray = $this->getproduct()->getattributetext('color'); $lastitem = end($multiselectarray); foreach($multiselectarray $multiselectitem){ echo $multiselectitem; if($multiselectitem != $lastitem) echo ", "; } ?>
to multi-select attribute options in category list page.
my problem don't show attribute if there 1 option in multi-select
help !
problem solved because 1 option string, have tested, if(is_string)........ show first option ;)
Comments
Post a Comment