Find the answer to your question
Advanced Search
What does the value for <Order> within each store category node really mean?
The order represents the order of that particular category within it's local heirarchy/level.
Lets look at an example structure such as:
Other
S:T
U:V:W
U:V:X
U:Y
Lets look at an example CustomCategories node from the GetStoreResponse for the category structure described above:
<CustomCategories>
<CustomCategory>
<CategoryID>1</CategoryID>
<Name>Other</Name>
<Order>0</Order>
</CustomCategory>
<CustomCategory>
<CategoryID>2456985</CategoryID>
<Name>Test S</Name>
<Order>1</Order>
<ChildCategory>
<CategoryID>2456989</CategoryID>
<Name>Test T</Name>
<Order>1</Order>
</ChildCategory>
</CustomCategory>
<CustomCategory>
<CategoryID>2456986</CategoryID>
<Name>Test U</Name>
<Order>2</Order>
<ChildCategory>
<CategoryID>2457012</CategoryID>
<Name>Test V</Name>
<Order>1</Order>
<ChildCategory>
<CategoryID>2457020</CategoryID>
<Name>Test W</Name>
<Order>1</Order>
</ChildCategory>
<ChildCategory>
<CategoryID>2457021</CategoryID>
<Name>Test X</Name>
<Order>2</Order>
</ChildCategory>
</ChildCategory>
<ChildCategory>
<CategoryID>2457013</CategoryID>
<Name>Test Y</Name>
<Order>2</Order>
</ChildCategory>
</CustomCategory>
</CustomCategories>
If we look at the values for <Order>:
First, Other is always 0.
Then S and U are at the same level as Other, and ordered 0:Other, 1:S, 2:U
Then, S has child category T, which has the order 1.
Then, U has children V and Y, with the order 1:V, 2: Y
Then V has children W and X, with the order 1:W, 2: X
For example, lets look at an example CustomCategories node from the GetStoreResponse:
<CustomCategories>
<CustomCategory>
<CategoryID>1</CategoryID>
<Name>Other</Name>
<Order>0</Order>
</CustomCategory>
<CustomCategory>
<CategoryID>2456985</CategoryID>
<Name>Test S</Name>
<Order>1</Order>
<ChildCategory>
<CategoryID>2456989</CategoryID>
<Name>Test T</Name>
<Order>1</Order>
</ChildCategory>
</CustomCategory>
<CustomCategory>
<CategoryID>2456986</CategoryID>
<Name>Test U</Name>
<Order>2</Order>
<ChildCategory>
<CategoryID>2457012</CategoryID>
<Name>Test V</Name>
<Order>1</Order>
<ChildCategory>
<CategoryID>2457020</CategoryID>
<Name>Test W</Name>
<Order>1</Order>
</ChildCategory>
<ChildCategory>
<CategoryID>2457021</CategoryID>
<Name>Test X</Name>
<Order>2</Order>
</ChildCategory>
</ChildCategory>
<ChildCategory>
<CategoryID>2457013</CategoryID>
<Name>Test Y</Name>
<Order>2</Order>
</ChildCategory>
</CustomCategory>
</CustomCategories>