【发布时间】:2012-12-12 21:32:45
【问题描述】:
如果attribute_set 为1 且attributeText 为零,我想显示一些数据
AttributeSetId = 10 属性 = myattribute,包含:零、一、力
<?php if ($_product->getAttributeSetId() == "10"): && ($_product->getAttributeText('myattribute') == "Zero"):?>
My data
<?php endif; ?>
怎么了?
感谢任何帮助。
自己解决:
<?php if ($_product->getAttributeSetId() == "10" && $_product->getAttributeText('myattribute') == "Zero"):?>
【问题讨论】:
标签: magento filter attributes