Ryan..

Hi there

I am having an issue (or an understanding issue), let me explain what I would like to do.
I would like to be able to import a catalog daily with some parent categories that may change from time to time. At the same time, there may be some parent category changes that occur from inside the catalog manager.
I currently do an incremental import that does not overwrite existing hierarchies and relationships which works great except when an item needs to be removed from a parent category.

So basically my question is, how can I in the import XML specify that an item needs to be removed from a parent category

I have tried these and they do not work..
<ParentCategory action="Delete">77</ParentCategory>
<ParentCategory CategoryName="77" action="Delete"/>

I feel that I must be missing something as this seems like an obvious task.

Thanks

Ryan


Re: Commerce Server 2007 Parent Category removal on import

Max Akbar

Do nothing just add the product tag without the ParentCategory element.

-Max






Re: Commerce Server 2007 Parent Category removal on import

Ryan..

Hi Max

Thanks for the prompt reply.. This works ok if the import option for "Overwrite existing hierarchies and relationships" is selected, however we cannot import using this option as some of the categorizations may have changed and we would like to keep those, we just want to remove the item from certain parent categories.

Thanks

Ryan




Re: Commerce Server 2007 Parent Category removal on import

Max Akbar

Try an action on the product for update and make sure not to have the ParentCategory.

-Max






Re: Commerce Server 2007 Parent Category removal on import

Ryan..

Hi Max

Possibly I am not explaining this the best, let me give an example.

Product "A" currently belongs to categories "Fiction", and "New items" as set by the product import.

One of the internet managers goes and adds product "A" to the category "Special Interest" from the Commerce Server Catalog Manager.

On my import I run a day later, I need to remove product "A" from the category "New items" (as it is no longer a new item) without affecting the membership to the category "Special Interest" that the internet manager made. During the import I am unaware of this change that has occurred and as such don't want to include it in the import.

This is where I got to the point of trying to remove an item from a category without affecting the current categories that the item belongs to.

Thanks

Ryan




Re: Commerce Server 2007 Parent Category removal on import

Max Akbar

The Import APIs don't have that kind of logic so you are going to have to read the XML file your self and use the Catalog APIs to implement custom business logic.

-Max






Re: Commerce Server 2007 Parent Category removal on import

Ryan..

Ok thanks I am not sure where to start with that but I will look into it