{"id":3938,"date":"2024-01-25T22:01:54","date_gmt":"2024-01-25T19:01:54","guid":{"rendered":"https:\/\/h-profit.com\/blog\/?p=3938"},"modified":"2024-01-25T22:01:56","modified_gmt":"2024-01-25T19:01:56","slug":"uploading-products-to-xml","status":"publish","type":"post","link":"https:\/\/h-profit.com\/blog\/en\/uploading-products-to-xml\/","title":{"rendered":"Uploading products to XML"},"content":{"rendered":"\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<figure class=\"wp-block-table alignleft has-medium-font-size\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Field<\/strong><\/th><th><strong>Description<\/strong><\/th><\/tr><\/thead><tbody><tr><td>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;<\/td><td>XML file encoding<\/td><\/tr><tr><td>&lt;yml_catalog date=&#8221;2018-09-25 17:22&#8243;&gt;<\/td><td>Parent tag<\/td><\/tr><tr><td>&lt;shop&gt;<\/td><td>File start<\/td><\/tr><tr><td><strong>Product Categories<\/strong><\/td><\/tr><tr><td>&lt;categories&gt;<\/td><td>Start of the description of the list of categories used in the XML file.<\/td><\/tr><tr><td>&lt;category id=&#8221;Category ID&#8221;&gt;Category Name&lt;\/category&gt;<\/td><td>&nbsp;<\/td><\/tr><tr><td>&lt;category id=&#8221;Category ID&#8221; parentId=&#8221;Parent Category ID&#8221;&gt;Category Name&lt;\/category&gt;<\/td><td>Description of the child category.<\/td><\/tr><tr><td>&lt;\/categories&gt;<\/td><td>End of the description of the list of categories.<\/td><\/tr><tr><td><strong>Products<\/strong><\/td><\/tr><tr><td>&lt;offers&gt;<\/td><td>Start of the description of the list of products.<\/td><\/tr><tr><td>&lt;offer&gt;<\/td><td>&nbsp;<\/td><\/tr><tr><td>&lt;name&gt;Product Name&lt;\/name&gt;<\/td><td>Limit of 200 characters<\/td><\/tr><tr><td>&lt;categoryId&gt;Product Category ID&lt;\/categoryId&gt;<\/td><td>Must match the category declared in the category block. The first of all categories given in the product description is selected.<\/td><\/tr><tr><td>&lt;oldprice&gt;Product Price without Discount&lt;\/oldprice&gt;<\/td><td>If the oldprice field is absent, the price field is used.<\/td><\/tr><tr><td>&lt;price&gt;Product Price with Discount&lt;\/price&gt;<\/td><td>&nbsp;<\/td><\/tr><tr><td>&lt;quantity_in_stock&gt;Quantity of Product&lt;\/quantity_in_stock&gt;<br>or<br>&lt;quantity&gt;Quantity of Product&lt;\/quantity&gt;<\/td><td>The quantity_in_stock field is checked first. If quantity_in_stock is present, the quantity field is ignored.<\/td><\/tr><tr><td>&lt;picture&gt;Link to Image&lt;\/picture&gt;<\/td><td>If multiple picture fields are given, all will be considered.<\/td><\/tr><tr><td>&lt;vendor&gt;Brand, Trademark, or Manufacturer Name&lt;\/vendor&gt;<\/td><td>&nbsp;<\/td><\/tr><tr><td>&lt;vendorCode&gt; Product Article, SKU &lt;\/vendorCode&gt;<br>or<br>&lt;barcode&gt; Product Article, SKU &lt;\/barcode&gt;<\/td><td>The vendorCode field is checked first. If vendorCode is present, the barcode field is ignored.<\/td><\/tr><tr><td>&lt;param name=&#8221;Product Attribute Name&#8221;&gt; Product Attribute Value &lt;\/param&gt;<\/td><td>If multiple param fields are given, all will be considered.<\/td><\/tr><tr><td>&lt;description&gt;Product Description&lt;\/description&gt;<\/td><td>&nbsp;<\/td><\/tr><tr><td>&lt;\/offer&gt;<\/td><td>End of the product description.<\/td><\/tr><tr><td>&lt;\/offers&gt;<\/td><td>End of the list of products description.<\/td><\/tr><tr><td>&lt;\/shop&gt;<\/td><td>End of the file.<\/td><\/tr><tr><td>&lt;\/yml_catalog&gt;<\/td><td>Close the parent tag.<\/td><\/tr><\/tbody><\/table><\/figure>\n<\/div><\/div>\n<\/div><\/div>\n\n\n\n<p>File example:<\/p>\n\n\n\n<p><a href=\"https:\/\/h-profit.com\/blog\/xml_example.xml\">https:\/\/h-profit.com\/blog\/xml_example.xml<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Field Description &lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt; XML file encoding &lt;yml_catalog date=&#8221;2018-09-25 17:22&#8243;&gt; Parent tag &lt;shop&gt; File start Product Categories &lt;categories&gt; Start &hellip; <\/p>\n","protected":false},"author":1,"featured_media":3939,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[698],"tags":[],"class_list":["post-3938","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-documentation-en"],"_links":{"self":[{"href":"https:\/\/h-profit.com\/blog\/wp-json\/wp\/v2\/posts\/3938","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/h-profit.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/h-profit.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/h-profit.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/h-profit.com\/blog\/wp-json\/wp\/v2\/comments?post=3938"}],"version-history":[{"count":1,"href":"https:\/\/h-profit.com\/blog\/wp-json\/wp\/v2\/posts\/3938\/revisions"}],"predecessor-version":[{"id":3940,"href":"https:\/\/h-profit.com\/blog\/wp-json\/wp\/v2\/posts\/3938\/revisions\/3940"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/h-profit.com\/blog\/wp-json\/wp\/v2\/media\/3939"}],"wp:attachment":[{"href":"https:\/\/h-profit.com\/blog\/wp-json\/wp\/v2\/media?parent=3938"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/h-profit.com\/blog\/wp-json\/wp\/v2\/categories?post=3938"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/h-profit.com\/blog\/wp-json\/wp\/v2\/tags?post=3938"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}