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:
- *id* - Product group ID
- name - name of the product group
- type of characteristics
- characteristics:
- namero - product name on Ro
- nameru - product name in Ru
- name_en - product name starting with En
order
"groups": [
{
"group": {
"id": "0001",
"name": "0001",
"selectspecifications": [
{
"selectspecification": {
"namero": "Marimea",
"nameru": "Size",
"order": 1
}
}
],
"imagesspecifications": [
{
"imagesspecification": {
"namero": "Culoare",
"nameru": "Color",
"order": 2
}
}
],
"blocksspecifications": [
{
"blocksspecification": {
"namero": "Marime",
"nameru": "Size",
"order": 3
}
}
]
}
Types of characteristics:
- select_specifications - displaying the selection of characteristics on the site in the form of a drop-down list.
- images_specifications - displaying a selection of specifications on the site in the form of small images.
- 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:
- attachfile_ Products.json (55.53MB)
- attachfile_ Product groups.mp4 (4.59MB)
Was the article helpful?
Yes, thank you! Unfortunately no