Documentation

catalog.productImage.get

catalog.productImage.get(productId, id)

Method gets information about specific image in product or SKU.

Parameters

ParameterType Description
productIdstring Product or SKU ID. Required parameter.
idinteger Image ID. Required parameter.

Example

BX24.callMethod(
    'catalog.productImage.get', 
    {
      productId: 1,
      id: 1
    }, 
    function(result)
    {
        if(result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
});

© «Bitrix24», 2001-2024
Up