By default, our widgets will display in first place images that match the "product ID" in the widget code, and then the widget will include the rest of the approved images from the campaign.
Nevertheless, if you have enabled the strictProducts filter and have the productId parameter implemented, the widget will exclusively return photos related to the product specified. If you wish to backfill your widget with other images, simply disable/remove the strictProducts filter from your widget.
Moreover, it is possible to add the "Collection" or the "Product Type" filters to the widget code to further refine the additional images displayed. The product types filter depends on the product feed including product types.
- product Id + strict products enabled = only product images
- product Id + strict products disabled + no product types = product images + rest of images from the campaign
- product Id + strict products disabled + product types = product images + rest of images having products that match the provided product type in the feed
Other options available for customization are:
- addPhotosImg (url) - This parameter accepts a URL of an image that will be displayed when the product has no photos related to it yet. A banner inviting users to submit images is recommended to be used here
- emptyThreshold (integer) – If the number of photos related to a product does not meet the minimum threshold, it doesn’t return anything
For more information head to Appendix: List of all parameters available to configure the behavior of the widgets on your online store