You can run the Template Data Feed (TDF) module from a cron task without you having to log into admin. This is useful for running routine exports during slow hours at night.
Several have asked for instructions on how to do this. You must have access to the cron tab in your account so that you can create tasks which run at specific intervals. I suspect very few hosts give you access to this without having to ask for it. The host may not even allow it if you are on a shared server. What little I know about cron tasks came from David and Jen. So if you cannot get this to work, I can't help you any further than what I have posted below. The two commands below may be wrapped in the post. They are single line commands. You can also have a status of the task running sent to your email address.
This won't work on large stores because the wget command will not use the javascript needed to refresh the screen (which avoids timeouts). So before you setup the cron, you have to test the export from admin to see if it will finish before timeout. In the TDF admin there is an input "Override clock and increment every [ ] records" Set that number to be higher than the number of records in your store. The max is 9999. If it completes the export without having to refresh the screen, you are in luck.
This works for Merchant 4 and 5.
Example for data feed export:
Change Store_Code, UserName, Password, REPORTNUMBER, user interface module, path to your admin.mvc.
ExProdF_UI will be either modules/ui/mmui.mvc or modules/ui/oui.mvc depending on your user interface module.
The report number can be found by going to admin to run the export. With the drop down showing your exports, eg Froogle, Google sitemap XML, Yahoo, etc, view the source in that frame. You will see a value in the options for the various exports. Select the number of the export you want for this cron task.
Example for FTP to Google Base:
/PATHTO/ncftpput -u GOOGLEBASEFTPLOGIN -p GOOGLEBASEFTPPASSWORD uploads.google.com / /PATHTO/YOURFILE.txt
You have to get a FTP login and password at Google Base. It is different from your Google Base screen uploads. Sign into your Google Base account and look in the right column for FTP information.
The path at the beginning of this command for the ncftpput program is specific for your server.
The path at the end of this command for the txt file in your root documents directory will be specific for your server.
Several have asked for instructions on how to do this. You must have access to the cron tab in your account so that you can create tasks which run at specific intervals. I suspect very few hosts give you access to this without having to ask for it. The host may not even allow it if you are on a shared server. What little I know about cron tasks came from David and Jen. So if you cannot get this to work, I can't help you any further than what I have posted below. The two commands below may be wrapped in the post. They are single line commands. You can also have a status of the task running sent to your email address.
This won't work on large stores because the wget command will not use the javascript needed to refresh the screen (which avoids timeouts). So before you setup the cron, you have to test the export from admin to see if it will finish before timeout. In the TDF admin there is an input "Override clock and increment every [ ] records" Set that number to be higher than the number of records in your store. The max is 9999. If it completes the export without having to refresh the screen, you are in luck.
This works for Merchant 4 and 5.
Example for data feed export:
Code:
/path/to/wget --post-data='Screen=SUTL&Action=SUTL&Store_Code=YOURSTORECODE&Module_Code=exprodf&UserName=ADMINLOGIN&Password=ADMINPASSWORD&Provision=yes&Submit=Login&ExProdF_report=REPORTNUMBER&ExProdF_Custom_Fields=1&ExProdF_UI=YOURUSERINTERFACEMODULE' https://www.YOURDOMAIN.com/MERCHANTDIRECTORY/admin.mvc --no-check-certificate
ExProdF_UI will be either modules/ui/mmui.mvc or modules/ui/oui.mvc depending on your user interface module.
The report number can be found by going to admin to run the export. With the drop down showing your exports, eg Froogle, Google sitemap XML, Yahoo, etc, view the source in that frame. You will see a value in the options for the various exports. Select the number of the export you want for this cron task.
Example for FTP to Google Base:
/PATHTO/ncftpput -u GOOGLEBASEFTPLOGIN -p GOOGLEBASEFTPPASSWORD uploads.google.com / /PATHTO/YOURFILE.txt
You have to get a FTP login and password at Google Base. It is different from your Google Base screen uploads. Sign into your Google Base account and look in the right column for FTP information.
The path at the beginning of this command for the ncftpput program is specific for your server.
The path at the end of this command for the txt file in your root documents directory will be specific for your server.
Comment