Allows you to assign a product link (related, cross-sell, up-sell, or grouped) to another product.
data
is a catalogProductLinkEntity object.
magento.catalogProductLink.assign({
type: val,
product: val,
linkedProduct: val,
data: val
}, callback);
Allows you to retrieve the product link type attributes.
magento.catalogProductLink.attributes({
type: val
}, callback);
Allows you to retrieve the list of linked products for a specific product.
magento.catalogProductLink.list({
type: val,
product: val
}, callback);
Allows you to remove the product link from a specific product.
magento.catalogProductLink.remove({
type: val,
product: val,
linkedProduct: val
}, callback);
Allows you to retrieve the list of product link types.
magento.catalogProductLink.types(callback);
Allows you to update the product link.
data
is a catalogProductLinkEntity object.
magento.catalogProductLink.update({
type: val,
product: val,
linkedProduct: val,
data: val
}, callback);