Allows you to add a new custom option for a product.
data
is a catalogProductCustomOptionToAdd object.
magento.catalogProductCustomOption.add({
productId: val,
data: val,
storeView: val /* optional */
}, callback);
Allows you to retrieve full information about the custom option in a product.
magento.catalogProductCustomOption.info({
optionId: val,
storeView: val /* optional */
}, callback);
Allows you to retrieve the list of custom options for a specific product.
magento.catalogProductCustomOption.list({
productId: val,
storeView: val /* optional */
}, callback);
Allows you to remove a custom option from the product.
magento.catalogProductCustomOption.remove({
optionId: val
}, callback);
Allows you to retrieve the list of available custom option types.
magento.catalogProductCustomOption.types(callback);
Allows you to update the required product custom option.
data
is a catalogProductCustomOptionToUpdate object.
magento.catalogProductCustomOption.update({
optionId: val,
data: val,
storeView: val /* optional */
}, callback);