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

