首页>Magento>source

我们在网站上有5000种产品

我们有5个属性集,每个属性各有1000个产品。

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

我们如何只为一个属性集产品实现这一目标。

我们不希望将此文本用于其他属性集产品

最新回答
  • 2019-12-5
    1 #

    您只需在产品详细信息页面中添加即可实现此目的。

       <?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'); } ?>
    

  • 2019-12-5
    2 #

    如果我理解你的问题,其中一个解决方案就是你可以使用导入/导出执行以下步骤:
      - 从想要的属性集
    中导出所有产品   - 使用新属性值修改导出的文件   - 导入文件

相关问题

  • php:如何在表格magento 19中添加保存按钮
  • magento2:更改magento类别标题颜色