You are here:  » Auto update feed


Auto update feed

Submitted by Willem Siebe Sp... on Sat, 2013-07-27 20:13 in

Hi,

I just discovered that I have to manually update the feed every time, is this the only way to automate this process?
Or is there a simple way for a not that technical guy?

http://www.pricetapestry.com/node/198

Buy the way, I use it on Wordpress, do I need to be active on the forum from the .org site or is this also oke?

Willem-Siebe

Submitted by support on Sun, 2013-07-28 09:41

Hello Willem,

That thread is several years old and has been superseded by the Automation Tool so now, all you need to know is the URL of your feeds, and you can set-up Automation Tool jobs for each feed, and then to automate everything all you need to do is create a CRON job on your server using one of the commands that are automatically worked out for you on the Support Info page of your Price Tapestry /admin/ area...

No problem posting here - particularly when Price Tapestry related as is the case here. Anything specifically related to the plugin if you could post on PriceTapestry.org that helps to keep topics organised so that other users can find relevant threads easily - thanks!

Cheers,
David.
--
PriceTapestry.com

Submitted by Willem Siebe Sp... on Sun, 2013-07-28 13:54

Hi David, OK, good news this tool.

I made a job for this, but I don't kwow which commands you are talking about on the Support info page? I don't see anything there what I think could help me. Can I do this myself or should I asked my webhost (WP Engine) to do this for me?

This job was for a new feed. I already uploaded one, this is mentioned:

If setting up a job for a feed that you have already uploaded, registered and imported manually, don't forget to make sure that the Filename to save as exactly matches the existing file.

The productfeed now had a to general name: productfeed.xml. Can I just change this in my FTP folder to an other name? And is this also the way to remove feeds? Or should I remove feeds in the PT admin section (but I can't find this option).

Kind regards,

Willem

Submitted by support on Mon, 2013-07-29 08:39

Hello Willem,

If you go to /pt/admin/ and then click on the Support Info tab, at the end of the page, you will see a section with the title "CRON" and then two options - Option 1 and Option 2. Do you see a command next to either of the options, or do they both say "Not Available"? For example, beside Option 1, you might see something like this:

cd /path/to/httpdocs/pt/scripts;/usr/bin/php cron.php

This is the "CRON" command that you would enter into your hosting control panel. In your web hosting control panel, look for a CRON section, and you should be able to create a new job by entering a command (the command copied from your Support Info page) and by selecting a schedule on which you wish the job to run. Middle of the night, when your site is quietest is best. When that command is run, Price Tapestry will run all of your Automation Tool jobs, and then import all feeds.

About your existing file, if you have already used a not very descriptive name, it is probably best to

1) Delete the feed (productfeed.xml) using your FTP program
2) From /pt/admin/ click De-Register alongside the feed name to remove from the system
3) Create a new Automation Tool job, using a more descriptive filename to Save As... e.g. merchantname.xml
4) Save and Run the job
5) From /pt/admin/ click Register alongside merchantname.xml and re-register the feed to set it up again using the new name...

Cheers,
David.
--
PriceTapestry.com

Submitted by Willem Siebe Sp... on Tue, 2013-07-30 07:56

Hi David,

Thanks, option 2 is visible, only option 1 is 'not available'.
I asked my webhost (I don't have CRON section in control panel), if they can add this for me.

I do have a question about development.

At this moment I have a temporary URL from my host (WP Engine) like tempurl.wpengine.com.
I installed WP and PT on it, and I'm working on this temporary URL right now.

Normally, when I create a website on a temporary URL, I change the database URL's with a really good search and replace script.
Is this going to cause any problems in PT and/or the CRON? Because in the CRON I also see the temporary URL at this moment...

An other way of developing is I can change my hosts file on my PC, this way the URL's in the database and right from the beginnen, don't know if that changes anything for the CRON, but please advice which of those methods I can better use or if it doens't make any difference.

At this point, I can still change ;-).

Kind regards,

Willem

Submitted by support on Tue, 2013-07-30 08:34

Hello Willem,

Nothing in the script references the full domain name so it's no problem, when you update the URL there will be nothing to change!

Cheers,
David.
--
PriceTapestry.com