Skip to content

Latest commit

 

History

History
69 lines (49 loc) · 1.89 KB

catalog_product_custom_option.md

File metadata and controls

69 lines (49 loc) · 1.89 KB

Catalog Product Custom Option

Allows you to add a new custom option for a product.

data is a catalogProductCustomOptionToAdd object.

magentoAPI.catalogProductCustomOption.add({
  productId:  val,
  data:       val,
  storeView:  val   /* optional */
}, callback);

Allows you to retrieve full information about the custom option in a product.

magentoAPI.catalogProductCustomOption.info({
  optionId:   val,
  storeView:  val   /* optional */
}, callback);

Allows you to retrieve the list of custom options for a specific product.

magentoAPI.catalogProductCustomOption.list({
  productId:  val,
  storeView:  val   /* optional */
}, callback);

Allows you to remove a custom option from the product.

magentoAPI.catalogProductCustomOption.remove({
  optionId: val
}, callback);

Allows you to retrieve the list of available custom option types.

magentoAPI.catalogProductCustomOption.types(callback);

Allows you to update the required product custom option.

data is a catalogProductCustomOptionToUpdate object.

magentoAPI.catalogProductCustomOption.update({
  optionId:   val,
  data:       val,
  storeView:  val   /* optional */
}, callback);