Product category synchronization: JSON file


Products.json - fileresponsible for adding categories and new products**

{
"catalog": { #category information
"id": "category_id" #ID of the category in the 1C database; necessarily
"parent_id": "parent_id" #ID of the parent category in the 1C database (to which category should be linked); optional
"name_ro": "category_name_ro" #category name in Romanian; necessarily
"name_ru": "category_name_ru" #category name in Russian; necessarily
"is_visible": 1 #category visibility on the site: 0 - hidden, 1 - visible
    }
}


"product": { #product information  
"id": "product_id" #ID of the product in the 1C database; necessarily  
"code": "XXXXXXX" #item number; optional  
"category_id": [  
    "category_id1",  
    "category_id2"  
    ], #ID of the category to which this product belongs in the 1C database; necessarily  
"name_ro": "product_name_ro" #product name in Romanian; necessarily  
"name_ru": "product_name_ru" #product name in Russian; necessarily  
"seo_title_ro": "seo_title_name_ro" #SEO title in Romanian; optional  
"seo_title_ru": "seo_title_name_ru" #SEO title in Russian; optional  
"seo_description_ro": "seo_description_ro" #SEO description in Romanian; optional  
"seo_description_ru": "seo_description_ru" #SEO description in Russian; optional  
"seo_keywords_ro": "seo_keywords_ro" #SEO keywords in Romanian; optional  
"seo_keywords_ru": "seo_keywords_ru" #SEO-keywords in Russian; optional  
"description_ro": "description_ro" #product description in Romanian; optional  
"description_ru": "description_ru" #product description in Russian; optional  
"price": 34.50 #product price; necessarily  
"old_price": 50.00 #old product price; optional  
"stock": 6 #product availability; necessarily  
"vendor_name": "brand" optional  
"is_visible": 1 #is the product active or not (whether the product is displayed on the site); Necessarily; 0 - hidden, 1 - visible
}  



"features": [ #information about characteristics
    {
        "feature": 
            "feature_ro": "feature_ro" #name of the feature in Romanian; optional
            "feature_ru": "feature_ru" #name of the feature in Russian; optional
            "value_ro": "value_ro" #characteristic value in Romanian; optional
            "value_ru": "value_ru" #characteristic value in Russian; optional
    }
]


"images": { #information about product images; there may be several of them  
    "image": [  
        {  
            "id": "image_name.format" #exactly as is; optional  
        },  
        {  
            "id": "00-00006773_2.format"  
        }  
    ]  
}


"doc": { #PDF information for product; there can only be one  
    "id_product_1_doc_name.pdf" #document name + PDF format (exactly as is); optional  
    }  



"statuses": [ #information about product statuses  
    {  
    "key": "new" #status key by which it will be updated  
    }
    {
    "key": "sale" 
    }
]

*
Price.json -
*it is responsible for updating price information and availability for all products

*
*

"product_catalog": [ #product information
    {
     "product": { #product information
        "id": "product_id" #ID of the product in the 1C database; necessarily
        "name_ro": "name_ro" #product name in Romanian; necessarily
        "name_ru": "name_ru" #product name in Russian; necessarily
        "price": 000.00; #required
        "old_price": 000.10; #optional
        "stock": 11; #required
        "is_visible": 1; #product is active on the site (displayed or not); necessarily
        }
    }
    ]

Files:

article.helpfulQuestion