Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: XML Import with Categories

  1. #1
    johnp@northwoodsoft.com is offline Junior Member
    Join Date
    Jan 2010
    Posts
    1

    Default XML Import with Categories

    Hello, I'm using AspDotNetStorefront ML 8.0.1.2/8.0.1.2 64-bit.

    We've written an XML Product import where we tried to specify only the category name as shown in the sample (<CategoryRef>Category 1</CategoryRef>).

    "Category 1" is a subcategory. In xpath: /TopCategory/SubCategory/Category 1

    If we supply the full xpath, the import works properly.

    If we supply the single category name, the XML Import process creates a new "Category 1" at the top of the category listing, but still adds the new product to the "Category 1" deep in the tree.

    It is difficult for us to put the full category tree for each product into the XML, but we're preplexed why the import would create a category at the top, but then never actually use it.

    We did go through and make sure that we were using the exact name of the category in the XML - which it must be, because the product gets added to it (and the newly created one at the top has no products in it.

    Does anyone have any ideas?

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    If you're going to use the standard XML import, you need to use the full xpath, or you're going to get strange results like that. If xpaths are too much trouble you can use the WSI import, where you can specify categories by ID.