You have no items in your shopping cart.

Friday, April 26, 2024 2:44:34 AM

New Custom Feed Not Generate AnyThing?

Posted: 8 years ago

#1668 Quote

ibrahim_b27

Posted: 8 years ago

#1668 Quote
Hi,
I need a custom feed. i added to feed.xml this code

<FeedNetWork>
    <Id>450</Id>
    <Name>sanalpazar.com</Name>
    <Image>sanalpazar.png</Image>
    <Schema>sanalpazar.xml</Schema>
    <ExportMethodId>450</ExportMethodId>
    <DisplayOrder>1</DisplayOrder>
    <Documentations>
    </Documentations>
  </FeedNetWork>

and

and created sanalpazar.xml in feedschema directory. this is my sanalpazar.xml

<?xml version="1.0" encoding="utf-8"?>
<ArrayOfFeedAttribute xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <FeedAttribute>
    <Id>1</Id>
    <FeedCaption>SKU</FeedCaption>
    <FeedName>SKU</FeedName>
    <DefaultValue></DefaultValue>
    <FieldNameCode>sku</FieldNameCode>
    <ConvertValues />
    <CharsLimit></CharsLimit>
    <Required>true</Required>
    <IgnoreNullOrEmpty>false</IgnoreNullOrEmpty>
    <ActionId>0</ActionId>
  </FeedAttribute>
  <FeedAttribute>
    <Id>2</Id>
    <FeedCaption>Name</FeedCaption>
    <FeedName>Name</FeedName>
    <FieldNameCode>name</FieldNameCode>
    <CharsLimit></CharsLimit>
    <Required>true</Required>
    <IgnoreNullOrEmpty>false</IgnoreNullOrEmpty>
    <ActionId>0</ActionId>
  </FeedAttribute>
  <FeedAttribute>
    <Id>3</Id>
    <FeedCaption>ShortDescription</FeedCaption>
    <FeedName>ShortDescription</FeedName>
    <FieldNameCode>shortdescription</FieldNameCode>
    <CharsLimit></CharsLimit>
    <Required>true</Required>
    <IgnoreNullOrEmpty>false</IgnoreNullOrEmpty>
    <ActionId>0</ActionId>
  </FeedAttribute>
  <FeedAttribute>
    <Id>3</Id>
    <FeedCaption>FullDescription</FeedCaption>
    <FeedName>FullDescription</FeedName>
    <FieldNameCode>fulldescription</FieldNameCode>
    <CharsLimit>2048</CharsLimit>
    <Required>false</Required>
    <IgnoreNullOrEmpty>false</IgnoreNullOrEmpty>
    <ActionId>2</ActionId>
    <UseCDATA>true</UseCDATA>
  </FeedAttribute>
  <FeedAttribute>
    <Id>4</Id>
    <FeedCaption>Published</FeedCaption>
    <FeedName>Published</FeedName>
    <FieldNameCode>published</FieldNameCode>
    <ConvertValues>
      <ConvertValue>
        <Id>1</Id>
        <OldValue>true</OldValue>
        <NewValue>1</NewValue>
      </ConvertValue>
      <ConvertValue>
        <Id>2</Id>
        <OldValue>false</OldValue>
        <NewValue>0</NewValue>
      </ConvertValue>
    </ConvertValues>
    <CharsLimit></CharsLimit>
    <ConvertValues />
    <Required>false</Required>
    <IgnoreNullOrEmpty>false</IgnoreNullOrEmpty>
    <ActionId>0</ActionId>
  </FeedAttribute>
  <FeedAttribute>
    <Id>5</Id>
    <FeedCaption>DeliveryDate</FeedCaption>
    <FeedName>DeliveryDate</FeedName>
    <DefaultValue>1</DefaultValue>
    <Required>true</Required>
    <IgnoreNullOrEmpty>false</IgnoreNullOrEmpty>
    <ActionId>0</ActionId>
  </FeedAttribute>
  <FeedAttribute>
    <Id>6</Id>
    <FeedCaption>ProductCategoryId</FeedCaption>
    <FeedName>ProductCategoryId</FeedName>
    <DefaultValue></DefaultValue>
    <Required>true</Required>
    <IgnoreNullOrEmpty>false</IgnoreNullOrEmpty>
    <ActionId>0</ActionId>
  </FeedAttribute>
  <FeedAttribute>
    <Id>7</Id>
    <FeedCaption>ProductCategoryName</FeedCaption>
    <FeedName>ProductCategoryName</FeedName>
    <DefaultValue></DefaultValue>
    <Required>true</Required>
    <IgnoreNullOrEmpty>false</IgnoreNullOrEmpty>
    <ActionId>0</ActionId>
  </FeedAttribute>
  <FeedAttribute>
    <Id>8</Id>
    <FeedCaption>Price</FeedCaption>
    <FeedName>price</FeedName>
    <FieldNameCode>price</FieldNameCode>
    <Required>true</Required>
    <IgnoreNullOrEmpty>false</IgnoreNullOrEmpty>
    <ActionId>0</ActionId>
  </FeedAttribute>
  <FeedAttribute>
    <Id>9</Id>
    <FeedCaption>OldPrice</FeedCaption>
    <FeedName>OldPrice</FeedName>
    <FieldNameCode>oldprice</FieldNameCode>
    <Required>false</Required>
    <IgnoreNullOrEmpty>false</IgnoreNullOr

Posted: 8 years ago

#1669 Quote

Support

Posted: 8 years ago

#1669 Quote
You should change ExportMethodId value 99999

link
If you want to add your new personal type you should use value 99999 -  CustomCSV.
If you want to add new feed using existing feed type you should use value from parent feed. Ex. 1 for Google.

<FeedNetWork>
    <Id>450</Id>
    <Name>sanalpazar.com</Name>
    <Image>sanalpazar.png</Image>
    <Schema>sanalpazar.xml</Schema>
    <ExportMethodId>99999</ExportMethodId>
    <DisplayOrder>1</DisplayOrder>
    <Documentations>
    </Documentations>
  </FeedNetWork>

Posted: 8 years ago

#1670 Quote

ibrahim_b27

Posted: 8 years ago

#1670 Quote
Hi,
I want to create new custom feed but not csv. I want xml. Is this possible?

thanks

Posted: 8 years ago

#1671 Quote

ibrahim_b27

Posted: 8 years ago

#1671 Quote
ı want to create this xml

<Products>
<Product>
<Product_id>407171</Product_id>
<Name>Dokunmatik Akıllı Telefon A3256</Name>
<SubName>En Uygun Fiyata</SubName>
<Category_Tree>Telefon-Akıllı telefonlar</Category_Tree>
<Price>61.65</Price>
<CurrencyType>USD</CurrencyType>
<Tax>18</Tax>
<TaxPrice>72.75</TaxPrice>
<Stock>5</Stock>
<Brand>Nok</Brand>
<Image1>
http://www.xxxxxxx.com/Images/407171/telefon-4704.jpg
</Image1>
<Image2>
http://www.xxxxxxx.com/Images/407171/telefon-4705.jpg
</Image2>
<Description>Akıllı Telefon .....</Description>
</Product>
</Products>

Posted: 8 years ago

#1672 Quote

Support

Posted: 8 years ago

#1672 Quote
It's possible.

For your simple format you can use one of preselected feed types (ex. for Kieskeurig 60)

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

Try this  code

<FeedNetWork>
    <Id>450</Id>
    <Name>sanalpazar.com</Name>
    <Image>sanalpazar.png</Image>
    <Schema>sanalpazar.xml</Schema>
    <ExportMethodId>60</ExportMethodId>
    <DisplayOrder>1</DisplayOrder>
    <Documentations>
    </Documentations>
</FeedNetWork>


Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved