You have no items in your shopping cart.

Friday, March 29, 2024 2:29:05 PM

Custom feed ExportMethodId

Posted: 6 years ago

#6912 Quote

frankvdlaar

Posted: 6 years ago

#6912 Quote
Hi,

When defining a custom feed one has to provide an ExportMethodId in the FeedNetWork element. I managed to create a simple products -> product XML by choosing 60 (Kieskeurig) as mentioned here.

Is there a list of available options and what they do?

The documentation states that I can use 99999 for a custom CSV export, but can I create my own XML export method?

Thanks for replying!

Kind regards,
Frank van de Laar

Posted: 6 years ago

#6916 Quote

Support

Posted: 6 years ago

#6916 Quote
Yes and no.
CSV format is very plain. You can customer it.

I didn't find good solution for XML customer format, because you should set the name of top level element (ex. "products") and the name of item element (ex. "product").
It was the best way to take existing template (with the same logic) and custom it.
We take template Kieskeurig (Id=60), you can take any another template.
You will see the list of possible templates in this feeds.xml file.

I meant this block

<products>
    <product>
      ....
    </product>
</products>



But it's a good idea to add new CustomerXMl template with name of top element and name of elements...

Another information.
You can add sublevel for item.
Example.
Take this template bestpricegr.xml and look for this part of code

  <FeedAttribute>
    <Id>4</Id>
    <FeedCaption>img1</FeedCaption>
    <FeedName>img1</FeedName>
    <XPath>imagesURL</XPath>
    <FieldNameCode>picture</FieldNameCode>
    <Required>false</Required>
    <IgnoreNullOrEmpty>true</IgnoreNullOrEmpty>
    <ActionId>0</ActionId>
  </FeedAttribute>


Plugin will create such XML block for this parameter.

<imagesURL>
<img1>http://demo330.test.com/content/images/thumbs/0000017_100-physical-gift-card_500.jpg</img1>
</imagesURL>


Do you need another logic and have any ideas I'll try to do it...
I am interesting to improve this plugin.

Posted: 6 years ago

#6917 Quote

Support

Posted: 6 years ago

#6917 Quote
We added new feature in the last release but we didn't changed the release number.
If you need to do custom XML template

Example

<main_level_products>
    <sub_level_product>
      ....
    </sub_level_product>
</main_level_products>

      

Try this code

<FeedNetWork>
    <Id>878</Id>
    <Name>YouTemplateName</Name>
    <Image>YouTemplatePicture.png</Image>
    <Schema>YouTemplate.xml</Schema>
    <ExportMethodId>99998</ExportMethodId>
    <XMLRootElement>main_level_products</XMLRootElement>
    <XMLItemElement>sub_level_product</XMLItemElement>
    <DisplayOrder>1</DisplayOrder>
    <Documentations>
    </Documentations>
</FeedNetWork>

Posted: 6 years ago

#6923 Quote

frankvdlaar

Posted: 6 years ago

#6923 Quote
Hi,

That's great, exactly what I was looking for. Thanks for the quick support!

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved