Skip to content

Latest commit

 

History

History
87 lines (63 loc) · 2.47 KB

catalog_product_attribute_set.md

File metadata and controls

87 lines (63 loc) · 2.47 KB

Catalog Product Attribute Set

Allows you to add an existing attribute to an attribute set.

magento.catalogProductAttributeSet.attributeAdd({
  attributeId:      val,
  attributeSetId:   val,
  attributeGroupId: val,  /* optional */
  sortOrder:        val   /* optional */
}, callback);

Allows you to remove an existing attribute from an attribute set.

magento.catalogProductAttributeSet.attributeRemove({
  attributeId:    val,
  attributeSetId: val
}, callback);

Allows you to create a new attribute set based on another attribute set.

magento.catalogProductAttributeSet.create({
  attributeSetName: val,
  skeletonSetId:    val
}, callback);

Allows you to add a new group for attributes to the attribute set.

magento.catalogProductAttributeSet.groupAdd({
  attributeSetId: val,
  groupName:      val
}, callback);

Allows you to remove a group from an attribute set.

magento.catalogProductAttributeSet.groupRemove({
  attributeGroupId: val
}, callback);

Allows you to rename a group in the attribute set.

magento.catalogProductAttributeSet.groupRename({
  groupId:    val,
  groupName:  val
}, callback);

Allows you to retrieve the list of product attribute sets.

magento.catalogProductAttributeSet.list(callback);

Allows you to remove an existing attribute set.

magento.catalogProductAttributeSet.remove({
  attributeSetId:       val,
  forceProductsRemove:  val   /* optional */
}, callback);