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

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -