Help with Froogle datafeed via OsCommerce

Discussion in 'Shopping' started by drhfinegifts, Apr 11, 2006.

  1. #1
    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
     
    drhfinegifts, Apr 11, 2006 IP
  2. Matts

    Matts Berserker

    Messages:
    195
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    108
    #2
    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();
     
    Matts, May 1, 2006 IP
  3. websiteideas

    websiteideas Well-Known Member

    Messages:
    1,406
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    130
    #3
    How does this mod compare the to froogle feed contribution from chemo?
     
    websiteideas, Oct 20, 2006 IP
  4. Marifer

    Marifer Peon

    Messages:
    116
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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.
     
    Marifer, Oct 25, 2006 IP
  5. oseymour

    oseymour Well-Known Member

    Messages:
    3,960
    Likes Received:
    92
    Best Answers:
    0
    Trophy Points:
    135
    #5
    I've used that before and it works great
     
    oseymour, Dec 3, 2006 IP
  6. www.mazoo.co.uk

    www.mazoo.co.uk Peon

    Messages:
    225
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I use the feedmachine contribution which works well for me, you can get it in the official osc contributions site.
    Kathryn.
     
    www.mazoo.co.uk, Feb 28, 2007 IP
  7. kirby009

    kirby009 Peon

    Messages:
    608
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Is this all script:confused:
     
    kirby009, Mar 30, 2007 IP
  8. thechamp

    thechamp Peon

    Messages:
    45
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8
    awesome, thanks. I was wondering what was the easiest way to do this, and i'll probably have someone install this for me
     
    thechamp, Apr 5, 2007 IP
  9. www.mazoo.co.uk

    www.mazoo.co.uk Peon

    Messages:
    225
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #9
    let me know if you want me to install it for you, its very straight forward.

    Regards
     
    www.mazoo.co.uk, Apr 5, 2007 IP