Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Data Feed How To
 
redegifts
Member
 
Total Posts:  41
Joined:  2007-12-04
 

I will be creating a website using the drop shipper TrademarkCommerce.  They currently have a XML inventory feed.  How would I go about setting this up so that inventory is kept up to date?  Do I need to import all the data first, and then reference by the item number?  I am extremely new to Magento and would be interested in finding out how to set this up. 

Russ Dyer

 
Magento Community Magento Community
Magento Community
Magento Community
 
RoyRubin
Enthusiast
 
Avatar
Total Posts:  968
Joined:  2007-08-07
Los Angeles, CA
 

Hello Russ - Welcome to the Community!

You may want to start here - http://www.magentocommerce.com/boards/viewthread/1840/

 
Magento Community Magento Community
Magento Community
Magento Community
 
redegifts
Member
 
Total Posts:  41
Joined:  2007-12-04
 

I have looked at that post, but am highly confused. 

the XML product feed address is http://www.trademarkcommerce.com/merchants/files/feeds/tminv_feed.xml

With the post you forwarded me to, I have created the Curl.php file according to the example. 

The next step refers to a Dataflow.xml file.  Is this created by creating the import profile?  Can you walk me through how to point the profile to http://www.trademarkcommerce.com/merchants/files/feeds/tminv_feed.xml as the profile is looking in a local directory. 

Or, am I creating a Dataflow.xml file as in the example below (which was the next step in the post)??  Where is this file saved to??  This example uses a .csv file and mine would be a .xml file.  What changes need to be made??

<action type="varien/convert_adapter_http_curl" method="load">
<var name="uri">http://compgallery.hosting4less.com/ItemDataFiles/Gallery_Complete.csv</var>
</action>
<action type="varien/convert_adapter_io" method="save">
<var name="type">file</var>
<var name="filename"><![CDATA[computer_gallery.csv]]></var>
</action>

Thank you for any help you can provide,

Russ Dyer

 
Magento Community Magento Community
Magento Community
Magento Community
 
redegifts
Member
 
Total Posts:  41
Joined:  2007-12-04
 

was working according to example as far as saving .xml feed to magento folder. 

now, when i run the script, i receive the following error:

Fatal error: Cannot redeclare class Varien_Convert_Adapter_Http_Curl in /home/redegift/public_html/magento/lib/Varien/Http/Adapter/Curl.php on line 37

Any ideas?

Russ

 
Magento Community Magento Community
Magento Community
Magento Community
 
redegifts
Member
 
Total Posts:  41
Joined:  2007-12-04
 

just downloaded on Sunday, version 0.6.13700

i see there is another version 0.6.14100

so with the newer version, I don’t need to create curl.php?

also, can the new version files just be copied over to update the version?

Russ

 
Magento Community Magento Community
Magento Community
Magento Community
 
redegifts
Member
 
Total Posts:  41
Joined:  2007-12-04
 

question about the datafeed function.  will this update inventory fields in the products?  do i need to create the products first?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

@Ron: you’ll need to edit Convert_Adapter_Http_Curl:

//after
        // read the remote file
        $data $http->read();

// add this
        
$data preg_split('/^\r?$/m'$data2);
        
$data trim($data[1]);

// right before
        // save contents into container
        
$this->setData($data);
 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

I’ve updated the code above, please note the changes.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

I will see how it would affect already implemented API calls to integrate into Varien_Http_Adapter_Curl and post an update.

Now, are you going to write also parser for the XML you fetch, so it can be imported into catalog?

 
Magento Community Magento Community
Magento Community
Magento Community
 
fluffybaby
Jr. Member
 
Total Posts:  1
Joined:  2009-10-13
 

hello everyone, I was just now reading all about the dataflow xml feed and I followed pretty much everything that was said here… I still am a little confused on how to get my product inventory updated using the

http://www.trademarkcommerce.com/merchants/files/feeds/tminv_feed.xml

I created a file called Dataflow.xml:

<action type="varien/convert_adapter_http_curl" method="load">
<var name="uri">http://www.trademarkcommerce.com/merchants/files/feeds/tminv_feed.xml</var>
</action>
<action type="varien/convert_adapter_io" method="save">
<var name="type">file</var>
<var name="filename"><![CDATA[media/feeds/trademark_commerce.xml]]></var>
</action>

and I imported it using the profile import files on the backend.
thinking with myself i figured i have no idea what is supposed to be in the file media/feeds/trademark_commerce.xml ... I dont have that file on my server so i think that is the reason why i cant get this to work…

can anyone walk me through on how to get this finally up and running?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Tredekka
Jr. Member
 
Total Posts:  1
Joined:  2012-03-06
 
RoyRubin - 04 December 2007 08:33 PM

Hello Russ - Welcome to the Community!

You may want to start here - http://www.magentocommerce.com/boards/viewthread/1840/

When I try to goto that link I receive the following error:  (& I am logged in.  wink

http://www.magentocommerce.com/boards/viewthread/1840/
Magento Forum
Error
The following errors were encountered
You are not authorized to perform this action

Please help.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Amasty
Mentor
 
Avatar
Total Posts:  3988
Joined:  2009-11-10
 

Hi!
Take a look at Product Feed Extension by Amasty.

It has all helpful functionality for creating of feeds for search engines. You can generate feeds both automatically and manually.
Enjoy flexible formatting to comply with all shopping engines and ability to have different prices and other values in each feed.

See the images attached.
Feel free to contact our support team at http://amasty.com/support.html for any additional questions.

For more information, user guide and live demo please follow the link
http://amasty.com/product-feed.html

Image Attachments
product-feed.pngproduct feeds.png
 
Magento Community Magento Community
Magento Community
Magento Community
 
GoMageTeam
Guru
 
Avatar
Total Posts:  356
Joined:  2013-01-13
Warsaw, Poland
 

Hello,

Before creating a datafeed file you should create the appropriate attributes in your Magento. All the required attributes should be filled in with the correct information, otherwise, a shopping engine will not accept the feed file.

We can advise to use GoMage Feed Pro extension for xml feed file creation and not only xml, but also txt/csv formats. Moreover, new release 3/3 has been done recently: http://www.gomage.com/extensions/gomage-feed-pro.html

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top