News

Related Products in Icecat XML and JSON Data Channels

Icecat allows channel partners to retrieve information about product relations, for instance, recommended products, accessories, and consumables. To further explain, this manual describes the Related Products section and its attributes in Icecat product XML and JSON files.

Tag <ProductRelated> in XML Related Products

The tag <ProductRelated> is mandatory. However, If a product doesn’t have any Product Relations, then the empty <ProductRelated> tag is added. Further, if there is a product relation, each Product Relation is indicated in a separate <ProductRelated> tag.

Example of structure / product XML view:

<ProductRelated ID="" Category_ID="" Preferred="">
     <Product ID="" Prod_id="" ThumbPic="" Name="">
        <Supplier ID="" Name=""/>
     </Product>
</ProductRelated>

Attributes of ProductRelated tag:

  • ID – Identifier of a Product Relation.
  • Category_ID – Icecat Category ID of a related product.
  • Preferred – indicates if a Product Relation is recommended by a brand. (0 = NOT recommended / 1 = recommended)

Tag <ProductRelated> → <Product> in XML:

Tag <Product> is mandatory. So, there is always only one <Product> tag for each Product Relation.

Attributes of <Product> tag:

  • ID – Icecat Product ID.
  • Prod_id – Product code of a related product.
  • ThumbPic – Link to the main image of a related product in thumb size. However, It is empty, if the image is unavailable.
  • Name – Product model description of a related product.

Tag <ProductRelated> → <Product> → <Supplier> in XML:

Tag <Supplier> describes a product brand.

Attributes of <Supplier> tag:

  • ID – Icecat brand ID.
  • Name – Brand name.

Tag <ProductRelated> → <ProductRelatedLocales> in XML:

In addition, you can find another tag for products that have localized Product Relations<ProductRelatedLocales>.

Attributes of <ProductRelatedLocales> tag in XML

  • ID – Icecat ID of a product relation.
  • langid – Icecat ID of a locale which this relation assigned for.
  • Preferred – Similarly, it indicates if a Product Relation recommended by a supplier for a specific locale. (0 = NOT recommended / 1 = recommended consequently)
  • StartDate – The date from which this relation recommended by brand.
  • EndDate – The date till which this relation recommended by brand.

Tag “ProductRelated” in JSON Related Products section:

Similarly, in a JSON product data file, the Related Products section is indicated by the “ProductRelated”:[] tag.

For example the Product JSON view:

"ProductRelated": [ 
    {
      "ID":154671578,
      "CategoryID":977,    
      "Preferred":0,
      "IcecatID":33447789,
      "ProductCode":"NSVGALOCK",
      "ThumbPic":"",
      "ProductName":"Neomounts by Newstar security lock cable",
      "Brand":"Neomounts by Newstar",
      "BrandID":290,
      "ProductRelatedLocales":[]

Attributes of “ProductRelated” tag in JSON:

  • ID – Icecat ID of a product relation.
  • CategoryID – Icecat category ID of a related product.
  • Preferred – indicates if a Product Relation recommended by a supplier. (0 = NOT recommended / 1= recommended)
  • IcecatID – Icecat Product ID of a related product.
  • ProductCode – Product code of a related product.
  • ThumbPic – Link to the main image of a related product in thumb size. However, It is empty if the image is unavailable.
  • ProductName – Product model description of a related product.
  • Brand – Brand name.
  • BrandID – Icecat brand ID.
  • ProductRelatedLocales – Shows local data for related products.

For example the Product JSON view:

  • ID – Icecat ID of a product relation.
  • Language – identifies a locale which this relation is assigned for. (For example, EN, NL, ES, IT etc.)
  • Preferred – indicates if a Product Relation is recommended by a supplier, but for a specific locale. (0 = NOT recommended / 1 = recommended consequently)
  • StartDate – the date from which this relation is recommended by brand.
  • EndDate – the date till which this relation recommended by brand.

Petya Lesnyak

Recent Posts

Unold Enhances Online Presence with Open Icecat Sponsorship

About Unold AG Unold, established in 1966 and headquartered in Hockenheim, Germany, has a long…

8 hours ago

5 Automation Tools Every Online Retail Business Should Know

Automation has become an essential component of online retailers’ success. With so many tools available,…

1 day ago

Icecat Keeps ASUS on Top with the New Copilot Key Attribute

The world of technology is constantly evolving, and so is the data that describes it.…

5 days ago

The Benefits of Full Automation of Your E-commerce Processes with Icecat Commerce

For medium and large-scale businesses, e-commerce automation is absolutely essential. It can be incredibly challenging…

6 days ago

Why Should You Invest In Mobile Commerce?

Mobile commerce has been steadily growing over the years and is projected to reach 43.4%…

1 week ago

Strong Growth in The Turkish E-commerce Market

Turkey's e-commerce market experienced a rebound in 2023, with online spending more than doubling compared…

1 week ago