To ensure a better mapping of your product categories, you can create an XML feed with the categories in your store. The feed is optional, but recommended, and can be set up in the Settings -> Products section, under Categories Feed.
The categories feed needs to be accessible on your website (eg. https://www.yourwebsite.com/categories_feed.xml)
Sample feed file:
<?xml version="1.0" encoding="UTF-8"?>
<categories>
<category>
<name>Shirts</name>
<url>https://www.yourwebsite.com/categories/shirts</url>
<id>12</id>
<hierarchy>Apparel|Men|Shirts</hierarchy>
<image_url>https://www.yourwebsite.com/categories/images/shirts.jpg</image_url> <!-- minimum recommended size is 100x100px -->
</category>
<category>
<name>Blazers</name>
<url>https://www.yourwebsite.com/categories/blazers-men</url>
<id>13</id>
<hierarchy>Apparel|Men|Blazers</hierarchy>
</category>
<category>
<name>Blazers</name>
<url>https://www.yourwebsite.com/categories/blazers-women</url>
<id>14</id>
<hierarchy>Apparel|Women|Blazers</hierarchy>
</category>
// more categories...
</categories>
In this table you can find the specific requirements for each category attribute:
Attribute | Required | Observations |
---|---|---|
id | Yes | |
name | Yes | |
hierarchy | Yes | |
url | Optional | If present, must be a valid URL with a length of minimum 10 characters. |
image_url | Optional | If present, must be a valid URL with a length of minimum 10 characters. |