Automatic linking by characteristics


In order to link products with each other, you must first add all the necessary characteristics: color, size, volume, type, etc.

Products on the site can be related by one or more characteristics, depending on the need.

*Automatic linking of products:
*

In order to automatically link products via XML/JSON files, you need to add additional fields to the file:

at the beginning of the file, after the category list, lists of product groups are created, which include the following data:

  1. *id* - Product group ID
  2. name - name of the product group
  3. type of characteristics
  4. characteristics:
    1. namero - product name on Ro
    2. nameru - product name in Ru
    3. name_en - product name starting with En
  5. order

    "groups": [
    {
    "group": {
    "id": "0001",
    "name": "0001",
    "selectspecifications": [
    {
    "select
    specification": {
    "namero": "Marimea",
    "name
    ru": "Size",
    "order": 1
    }
    }
    ],
    "imagesspecifications": [
    {
    "images
    specification": {
        "namero": "Culoare",
            "name
    ru": "Color",
            "order": 2
        }
    }
      ],
        "blocksspecifications": [
    {
            "blocks
    specification": {
            "namero": "Marime",
            "name
    ru": "Size",
            "order": 3
        }
       }
      ]
    }

Types of characteristics:

  1. select_specifications - displaying the selection of characteristics on the site in the form of a drop-down list.
  2. images_specifications - displaying a selection of specifications on the site in the form of small images.
  3. blocks_specifications - displaying a selection of characteristics on the site in the form of small blocks (buttons).

For each product, an additional tag is added: productgroups. The IDs of the groups to which this product belongs are added: groupid. A product may belong to several groups.

"product_groups": {  
     "group_id": "001",  
    }

Files:


Was the article helpful?

Yes, thank you! Unfortunately no

article.helpfulQuestion