Magento1获取属性集名称
直接上代码。
<?php
$attributeSetName = Mage::getModel('eav/entity_attribute_set')->load($_product->getAttributeSetId())->getAttributeSetName();
$allowAttributeSets=array('Pant Suits','Special Occasion Wear','Wedding Dress');
?>
<?php if(in_array($attributeSetName,$allowAttributeSets)):?>
<div class="ColorSize_bg">
<p><a target="_blank" rel="nofollow" href="<?php echo $this->getUrl('') ?>color_chart">Color Chart</a></p>
<p><a rel="nofollow" target="_blank" href="<?php echo $this->getUrl('') ?>yabreny-size">Size Chart & Measure Guide</a></p>
</div>
<?php endif;?>