You are here:  » Feed Version csv|9|0|0

Support Forum



Feed Version csv|9|0|0

Submitted by rd on Fri, 2009-03-27 23:17 in

This is the feed version my feed is showing up under, it is showing up a bunch of gobbly gook. It is a CJ Feed so should be fine.

Also my feeds are ftp'd to a different folder by the merchants, not the feeds folder. I would have to change all my information with all my affiliate programs to the new folder. How can I automate the upload and upload from my own folders. I need an easier way as I am not that familiar with shell scripting.

Submitted by support on Sat, 2009-03-28 05:30

Hi,

Is it possible that the feed is compressed? This is the most likely reason for a feed being unreadable in the sample data table. You could check this by downloading one of the feeds from your server and then trying to open it with Winzip (which supports all common zip formats)... and if so then upload back to the /feeds/ folder to try registration again.

Regarding automation; if you are receiving feeds automatically it probably is a CRON scheduled shell script that you would need to move the files around - the command is


mv /old/path/to/filename /new/path/to/filename

However, it would also be possible to move the files with a simple PHP script, which you could either run manually once you know that new feeds have been received, or also setup as a CRON process. This can be done with the rename() function, for example:

<?php
  rename
("/path/to/incoming/merchant.csv","/path/to/pricetapestry/feeds/merchant.csv")
?>

For this to work, the /feeds/ folder will need to be writable by whatever user PHP is running as. The easiest way to do this is probably with your FTP client. If you browse to your Price Tapestry installation folder, and then right-click on the feeds folder you should see a "Permissions..." or perhaps Properties... and then permissions. Then, set write access for all users - Owner / Group / World; after which the above rename script should work fine...

Hope this helps!

Cheers,
David.

Submitted by rd on Sat, 2009-03-28 11:39

Thats great david i'll try that. I am not a php buff, although pretty quick to spot a pattern and pick it up, but my remaining problem is the unzipping of compressed files automatically. I tried following the instructions to set up the fetch file, but I just need an exact script because all most my files are compressed.

Also I need to be able to pick up datafeeds from merchant server with a script. And more is that the datafees is in a file folder for each indidividual merchant.

Submitted by support on Sat, 2009-03-28 12:21

Hi rd.

Lots of Price Tapestry users are also using my FTPiggy service...

http://www.ftpiggy.com/

This should solve both your problems, as you can download from different locations using HTTP or FTP, FTPiggy will then unzip if necessary, and then FTP up to the /feeds/ folder of your Price Tapestry site.

Let me know if you need any help setting up; or if you would still like to work with scripts let me know where you're coming unstuck there (and perhaps post anything you've tried) and i'll help out with that...

Cheers,
David.