David, good day!
I've got most of feeds like this:
<categories>
<category id="147">Cотовые телефоны и аксессуары</category>
<category id="158">Эхолоты, Навигация, Рации</category>
<category id="159" parentId="147">Nokia</category>
<category id="155">Фотоаппараты</category>
<category id="161" parentId="147">Samsung</category>
<offers>
<offer id="491" available="true">
<url>http://..../invent&id=491</url>
<price>740</price>
<currencyId>RUR</currencyId>
<categoryId>159</categoryId>
<picture>http://..../491.jpg</picture>
<name>сотовый телефон Nokia 1280 black</name>
<vendor>Nokia</vendor>
<vendorCode />
<description>сотовый телефон Nokia 1280 обеспечивает легкое общение и благодаря большому набору практичных функций позволяет правильно организовать вашу жизнь и держать все под контролем.
GSM 900 / GSM 1800
Li-Ion, 970 мАч
45x107x15 мм
82 г
MP3 / FM / SMS / Будильник</description>
</offer>
As you can see there are category and sub-category. In step 2 of registration feeds categories are displayed like numbers.
What can you advise?
With best regards.
Hi Andrew,
I guess you're seeing on Feed Registration Step 2 options like
CATEGORIES/CATEGORY
CATEGORIES/CATEGORY@1
CATEGORIES/CATEGORY@2
(this is Magic Parser's way of resolving duplicate XML tags in the record)
I would register the first shown which is guaranteed to exist whereas the additional entries I suspect depend on the depth of category information available for the product.
If this doesn't result in an acceptable category list it would be possible to work out some code to go in the import record handler to look for the last CATEGORY/CATEGORY@x entry which should be the deepest sub-category but looking at your example record that would generate a category of "Samsung" which is more appropriate as a Brand value, but let me know if you'd like to explore this option...
Cheers,
David.
--
PriceTapestry.com