Product media – P_MEDIADATA

Since TB.One does not only handle images but also other file types we refer to according data as media. Within the TB.CAT, the passing on of media takes place by means of a reference (HTTP) to the Tradebyte servers. Each media reference is accompanied by the media type.

Generally, we differentiate between product and article media. Product media are valid for the whole product (stack image), article media are the explicit pictures for a variant.

The Tradebyte servers may only be used as transfer counter for the media. The media have to be downloaded once and to be stored for further use. The media URL mustn’t be referenced in the shop directly. The provided media are original size. The media behind a media URL don’t change. If there is new media for a product, a new media URL has to be provided. This means that media may not (and need not) be retrieved again for checking the up-to-dateness.

TBCATALOG / PRODUCTDATA / PRODUCT / P_MEDIADATA

Node Mandatory Data type (Length) Description
P_MEDIADATA N Product media
Element: P_MEDIA Y String(255) URL to product media; may occur as often as needed
Attribute: type Y String(50) Media type
Attribute: sort Y INT Sorting within the product media
Attribute: origname N String(255) Original name of the file

Superordinate element:

Example XML

<P_MEDIADATA> <P_MEDIA type="image" sort='1'>http://www.imageserver.tld/123.jpg</P_MEDIA> <P_MEDIA type="image" sort='2'>http://www.imageserver.tld/124.jpg</P_MEDIA> </P_MEDIADATA>