Category/product synchronization: XML file


1. Products.xml - it is responsible for adding categories and new products

<catalog> /category information
    <id>category_id</id> /ID of the category in the 1C database; necessarily
    <parent_id>parent_category_id</parent_id> /ID of the parent category in the 1C database (to which category should be linked); not necessary
    <name_ru>category_name_ru</name_ru> /category name in Ru; necessarily
    <name_ro>category_name_ro</name_ro> /category name in Ro; necessarily
    <is_visible>0</is_visible> /category visibility on the site: 0 - hidden, 1 - visible
    <order>1</order> /category queue in the catalog
</catalog>


<group>
    <id>b5ecc907-7350-11f0-8ba0-00155da0a011</id> /Product group ID
    <name>group_name</name> /product group name
    <select_specifications> /product group type
        <select_specification>
            <name_ro>characteristic_ro</name_ro> /name of characteristics in Ro for the group
            <name_ru>characteristic_ru</name_ru> /name of characteristics in Ru for the group
            <order>1</order> /queue of characteristics in the group
        </select_specification>
    </select_specifications>
    <images_specifications>   
        <image_specification>
            <name_ro>characteristic_ro</name_ro>
            <name_ru>characteristic_ro</name_ru>
            <order>1</order>
        </image_specification>
    </images_specifications>
    <block_specifications>
        <block_specification>
            <name_ro>characteristic_ro</name_ro>
            <name_ru>characteristic_ro</name_ru>
            <order>1</order>
        </block_specification>
    </block_specifications>
</group>


<product> /product information
    <id>product_id_1</id> /Product ID in the 1C database; necessarily
    <code>XXXXXXX</code> /- product article; not necessary
    <category_id>category_id</category_id> /ID of the category to which this product belongs in the 1C database; necessarily
    <category_id>category_id</category_id> /ID of the category to which this product belongs in the 1C database; you can specify several categories to which the product will belong
    <vendor_name>Samsung</vendor_name> /product brand name; not necessary
    <name_ro>product_name_ro</name_ro> / - product name on Ro; necessarily
    <name_ru>product_name_ru</name_ru> /- product name in Ru; obligatory - denumire produs în Ru; obligatoriu
    <description_ru>product_description_ru</description_ru> /product description in Ru; not necessary
    <description_ro>product_description_ro</description_ro> /product description on Ro; not necessary
    <seo_title_ro>seo_title_ro</seo_title_ro> /title for SEO on Ro; not necessary
    <seo_title_ru>seo_title_ru</seo_title_ru> /title for SEO in Ru; not necessary
    <seo_description_ro>seo_description_ro</seo_description_ro> /description for SEO on Ro; not necessary
    <seo_description_ru>seo_description_ru</seo_description_ru> /description for SEO in Ru; not necessary
    <seo_keywords_ro>seo_keywords_ro</seo_keywords_ro> /keywords for SEO on Ro; not necessary
    <seo_keywords_ru>seo_keywords_ru</seo_keywords_ru> /keywords for SEO in Ru; not necessary
    <price>1.57</price> /product price; necessarily
    <old_price> 1.99</old_price> /old product price; not necessary
    <stock>63</stock> /remainder of goods; necessarily
    <disponibility>0</disponibility> /product availability: whether you can order it or not; 0 - not available, 1 - available
    <is_visible>1</is_visible> /is the product active or not (whether the product is displayed on the site); Necessarily; 0 - hidden, 1 - visible
    <multiplicity>1</multiplicity> /minimum quantity of goods that can be ordered
    <order>1</order> /queue displaying the product in the category; from 0 to infinity
</product>


<features> /information about characteristics
    <feature>
        <feature_ru>feature_name_ru</feature_ru> /name of the feature in Ru; not necessary
        <feature_ro>feature_name_ro</feature_ro> name of the feature on Ro; not necessary
        <value_ru>value_name_ru</value_ru> /name of the characteristic value in Ru; not necessary
        <value_ro>value_name_ro</value_ro> /name of the characteristic value on Ro; not necessary
    </feature>
    <feature>

featurenameru featurenamero valuenameru valuenameen

<images> /information about product images; there may be more
    <image>
        <id>product_1_image_name_1.format</id> /image name + format (exactly as is); not necessary
    </image>
    <image>
        <id>product_1_image_name_2.format</id>
    </image>
</images>





<doc> /information about the PDF file for the product
    <id>product_1_doc_name.pdf</id> /document name + PDF format (exactly as is); not necessary
</doc>





<shop_stocks> /availability of goods in different stores/warehouses; not necessary
    <shop_stock>
        <token>0000000001</token> / ID of the store/warehouse from the database for communication with the site store
        <stock>1</stock> /product availability in this store
    </shop_stock>
    <shop_stock>
        <token>0000000002</token>
        <stock>2</stock>
    </shop_stock>
</shop_stocks>

2. Price.xml** - it is responsible for updating the information of all products

<product> /product information
    <id>product_id_1</id> /Product ID in the 1C database; necessarily
    <category_id>sub_category_1</category_id> /ID of the category to which this product belongs in the 1C database; not necessary
    <price>1.57</price> /product price; necessarily
    <old_price> 1.99</old_price> /old product price; not necessary
    <stock>63</stock> /product availability; necessarily
    <is_visible>1</is_visible> / active or not product on the site (display or not); necessarily
</product>

Files:

article.helpfulQuestion