Skip to content

Instantly share code, notes, and snippets.

@mrispoli24
Created August 20, 2014 14:10
Show Gist options
  • Save mrispoli24/49254d2be36e5287cc78 to your computer and use it in GitHub Desktop.
Save mrispoli24/49254d2be36e5287cc78 to your computer and use it in GitHub Desktop.
Adding Parent Categories to Express Feed

Adding Men's and Women's Parent Categories

<?xml version="1.0" encoding="UTF-8"?>
<Feed>
    <Categories>
        <Category>
            <CategoryUniqueID>cat1001</CategoryUniqueID>
            <Name>Men's</Name>
            <CategoryUrl>http://www.myawesomestore.com/categories/mens</CategoryUrl>
        </Category>
        <Category>
            <CategoryUniqueID>cat1002</CategoryUniqueID>
            <Name>Women's</Name>
            <CategoryUrl>http://www.myawesomestore.com/categories/mens/tshirts</CategoryUrl>
        </Category>
    </Categories>
    <Products>
            <Product>
                <Name>Awesome Men's Jean</Name>
                <ProductUniqueID>APTS</ProductUniqueID>
                <ProductUrl>http://www.myawesomestore.com/products/APTS</ProductUrl>
                <ImageUrl>http://www.myawesomestore.com/images/APTS-mainstockimage.jpg</ImageUrl>
                <CategoriesID>
                  <CategoryID>cat1001</CategoryID>
                  <CategoryID>...</CategoryID>
                  <CategoryID>...</CategoryID>
                  <CategoryID>...</CategoryID>
                <CategoriesID>
            </Product>
            <Product>
                <Name>Awesome Women's Jean</Name>
                <ProductUniqueID>APTS</ProductUniqueID>
                <ProductUrl>http://www.myawesomestore.com/products/APTS</ProductUrl>
                <ImageUrl>http://www.myawesomestore.com/images/APTS-mainstockimage.jpg</ImageUrl>
                <CategoriesID>
                  <CategoryID>cat1002</CategoryID>
                  <CategoryID>...</CategoryID>
                  <CategoryID>...</CategoryID>
                <CategoriesID>
            </Product>
    </Products>
</Feed>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment