Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.03 KB

catalog_product_downloadable_link.md

File metadata and controls

37 lines (27 loc) · 1.03 KB

Catalog Product Downloadable Link

Allows you to add a new link to a downloadable product.

resource is a catalogProductDownloadableLinkAddEntity object.

magento.catalogProductDownloadableLink.add({
  productId:    val,
  resource:     val,
  resourceType: val
  storeView:    val   /* optional */
}, callback);

Allows you to retrieve a list of links of a downloadable product.

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

Allows you to remove a link/sample from a downloadable product.

magento.catalogProductDownloadableLink.remove({
  linkId: val
}, callback);