GammaFX.com
Creative Web Solutions For Your Brand

X-Cart Froogle (Google Products) Fix

August 20th, 2008 by admin blog

Sofware

  • X-Cart 4.1x

Problem Description

Google Products rejects the automatic Froogle file upload performed by X-Cart due to formatting issues.

Solution

  1. Open froogle.php file located in /modules/Froogle/froogle.php
  2.  Around line #114 find:
    product_type\tlanguage\n
  3. Replace that code with:
    product_type\tlanguage\r\n
  4.  Around line #117 find:
    condition\tproduct_type\n
  5. Replace that code with:
    condition\tproduct_type\r\n
  6.  Around line #238 find:
    fputs($fp, $post.”\n”);
  7. Replace that code with:
    fputs($fp, $post.”\r\n”);
  8. Around line #65 find:
    return $str;
  9. Replace that line add the following code:
    //Gamma Mod - Fix Froogle
     $str = str_replace(”\”", “”", $str);
     $str = “\”".$str.”\”";
     // end mod
    return $str;
  10. NOTE: When generating the Froogle export file through X-Cart, please make sure that you leave the language code field BLANK
     
  11. You are done

Leave a Comment

You must be logged in to post a comment.