Agregar atributo a SET cuando se cree durante el script de actualización

magento.stackexchange https://magento.stackexchange.com/questions/21592

  •  30-10-2019
  •  | 
  •  

Pregunta

Al crear un atributo dentro de un script de actualización (usando la clase Mage_Catalog_Model_Resource_Setup)

¿Es posible también asignar el atributo a un conjunto de atributos específico?

Mi código es:

$installer->addAttribute('catalog_product', 'my_attribute', array(
    'type' => 'varchar',
    'input' => 'text',
    'label' => 'My Attribute',
    'visible' => true,
    'required' => false,
    'attribute_set' => 'My Attribute Set'
));

Pero el atributo solo va en conjunto predeterminado

No hay solución correcta

Licenciado bajo: CC-BY-SA con atribución
No afiliado a magento.stackexchange
scroll top