productImages
function, since version 1.3.1
categories: image, product, prestashop
productImages(productId, [type])
returns list of all image URLs associated with given product. Function respects prestashop Friendly URL settings.
parameters
- productUr: number - product id
- type number - id of image type. Please see
Preferences > Images
in your prestashop back office for list of IDs
return type:
array[string]
examples
productImages(product.id)
productImages(product.id, 3)