ProductMediaImages
Returns the media images associated with the product.
Table-Specific Information
Select
The server uses the Shopify API to process WHERE clause conditions built with the following column and operators. The server processes other filters client-side within the server.
- ProductId supports the '=, IN' comparison operators.
For example, the following query is processed server-side:
SELECT * FROM ProductMediaImages WHERE ProductId = 'Val1'
Insert
The following columns can be used to create a new record:
ProductId, AltText, MediaContentType, Url
Update
The following columns can be updated:
AltText, Url
Delete
You can delete entries by specifying the following columns:
Id, ProductId
Columns
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | String | True |
A unique identifier for the media image. | |
| ProductId [KEY] | String | True |
Products.Id |
A globally-unique identifier for the product. |
| AltText | String | False |
A word or phrase to share the nature or contents of a media image. | |
| MediaContentType | String | True |
The media content type. | |
| Height | Int | True |
The original height of the image in pixels. Returns 'null' if the image is not hosted by Shopify. | |
| Width | Int | True |
The original width of the image in pixels. Returns 'null' if the image is not hosted by Shopify. | |
| Url | String | False |
The location of the image as a URL. |