Trying to make a Froogle feed via the easypopulate function in OsCommerce site. I don't quite understand what variables I need, as the feed is supposed to be a .txt file. Here is what is in the easypopulate module: // **************************************** // Froogle configuration variables // -- YOU MUST CONFIGURE THIS! IT WON'T WORK OUT OF THE BOX! // **************************************** // **** Froogle product info page path **** // We can't use the tep functions to create the link, because the links will point to the admin, since that's where we're at. // So put the entire path to your product_info.php page here global $froogle_product_info_path; $froogle_product_info_path = "http://www.MYSITE.com/product_info.php"; // **** Froogle product image path **** // Set this to the path to your images directory global $froogle_image_path; $froogle_image_path = "http://www.MYSITE.com/images/products/"; // **** Froogle - search engine friendly setting // if your store has SEARCH ENGINE FRIENDLY URLS set, then turn this to true // I did it this way because I'm having trouble with the code seeing the constants // that are defined in other places. global $froogle_SEF_urls; $froogle_SEF_urls = true; global $increaseprice; global $increaseop; // **************************************** // End Froogle configuration variables // **************************************** How do I go about directing the output to a .txt file? I created an empty file in my publichtml/temp directory, but don't know how to direct the data to go to the temp file. I'm not that good at this stuff, so if anyone can help, please do so!!! Thanks!! Denise
Assuming the script shoots a file to the screen without any html, then here's some generic download code that sends a tab-separated file. You can adjust this and add to the other code to force a download. // ------------------------------------------------------- // put the code below somewhere before any output is sent // ------------------------------------------------------- $expires = date('D, d M Y H:i:s',mktime()) . ' GMT'; header('Pragma: public'); // required for https download header('Content-Type: text/tab-separated-values'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header("Expires: $expires"); header('Content-Disposition: inline; filename="froogle.txt"'); ob_start(); // --------------------------------------- // At the end of the output add these lines. // --------------------------------------- $len = ob_get_length(); header("Content-length: $len"); ob_end_flush();
If you look in Hotscripts.com and search for oscommerce or bizrate you will find a kool add on to oscommerce that makes is really easy to export a bizrate and froogle ready feed.
I use the feedmachine contribution which works well for me, you can get it in the official osc contributions site. Kathryn.
awesome, thanks. I was wondering what was the easiest way to do this, and i'll probably have someone install this for me