Question

we have 5000 products in site

we have 5 attribute-set , each attribute have 1000 products each.

for products of only one attribute set, under description tab, we have to add this text " color may vary as shown in above image"

how we can achieve this for only one attribute-set products.

we don't want this text for other attribute-set products

Was it helpful?

Solution

you can achieve this simply adding in product detail page..

    <?php $attributeSetModel = Mage::getModel("eav/entity_attribute_set");
$product=Mage::getModel('catalog/product')->load($_product->getId());
 $attributeSetModel->load($product->getAttributeSetId());
echo $attributeSetName  = $attributeSetModel->getAttributeSetName();
if($attributeSetName=='you attibute name'){ echo $this->__('color may vary as shown in above image'); } ?>

OTHER TIPS

If I understand right your question one of the solution is that you can do this with the following steps using import/export :
- export all your product from the wanted attribute set
- modify the exported file with your new attribute value
- import the file

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top