To add an image to a product, you must perform the following:
NOTE: The primary image of a product must have its Ordinal property set to 0. The other images must have their Ordinal properties set to 1, 2, 3, etc. You can only have one primary image per product.
In the code example below, the first image is assigned as the primary one. For more information, see For developers: Change the primary image of a product.
IMPORTANT: Set the Ordinal property of the content link to the same value as the Ordinal property of the product image.
Code example: Add images to a product
Back To Top