I create an attribute like this
how to check in list.phtml
if(attribute == "yes"){
show block
}else{
don\'t show any thing
}
Update: I get it like this:
$_product->getAttributeText("stock_display");
but it always returns "no" Although I have set some product "yes"
Any help? Thank in advance.
$_product->getAttributeText("stock_display");
it will return 0 or 1