I've used the one from your contribution, looks like this :
<?php
/**
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
/*
Google Product feed configuration for The Feedmachine Solution
based on google-simple.php by: Lech Madrzyk
----------------------------
This configuration is complient with the Google-Feed specifications from 22nd of september 2011.
It has to be used together with the modified feedmachine.php file which includes the 'IS_IN_STOCK' Keyword definition.
*/
$feed_config = array('name' => 'Google Product Search',
'authors' => 'Musicstreet',
'filename' => 'musicstreet.txt',
'schema_version' => '2.0',
'fields' => array('id' => array('output' => 'FM_RS_product_id_us_en',
'type' => 'FUNCTION'
),
'title' => array('output' => 'products_name',
'type' => 'DB',
'options' => array('STRIP_HTML', 'STRIP_CRLF')
),
'price' => array('output' => 'FINAL_PRICE_WITH_TAX',
'type' => 'KEYWORD',
),
'brand' => array('output' => 'manufacturers_name',
'type' => 'DB',
'options' => array('STRIP_HTML', 'HTML_ENTITIES', 'STRIP_CRLF')
),
'mpn' => array('output' => 'products_model',
'type' => 'DB'
),
'Google product category' => array('output' => 'FM_RS_google_categories_us_en',
'type' => 'FUNCTION'
),
'product_type' => array('output' => 'CATEGORY_TREE',
'type' => 'KEYWORD',
'options' => array('STRIP_HTML', 'STRIP_CRLF')
),
'link' => array('output' => 'PRODUCTS_URL',
'type' => 'KEYWORD'
),
'image_link' => array('output' => 'IMAGE_URL',
'type' => 'KEYWORD'
),
'condition' => array('output' => 'new',
'type' => 'VALUE'
),
'description' => array('output' => 'products_description',
'type' => 'DB',
'options' => array('STRIP_HTML', 'STRIP_CRLF')
),
'shipping_weight' => array('output' => 'FM_RS_shipping_weight_and_unit',
'type' => 'FUNCTION',
),
'availability' => array('output' => 'in stock',
'type' => 'VALUE',
)
),
'currency_decimal_override' => false,
'currency_thousands_override' => '',
'add_field_names' => true,
'category_tree_seperator' => ' ',
'seperator' => "\t",
'text_qualifier' => '',
'newline' => "\n",
'encoding' => 'false',
'include_record_function' => ''
);
//FEED FUNCTIONS BEGIN
function FM_RS_product_id_us_en($product) {
return 'Your_shops_shortname_' . $product['products_id'] . '_us_en';
}
function FM_RS_google_categories_us_en($product) {
$output_field_category = ($product['parent_id'] > 0) ? $product['parent_id'] : $product['categories_id'];
return (($output_field_category == 1) ? 'Google > Category > Tree1' :
(($output_field_category == 2) ? 'Google > Category > Tree2':
(($output_field_category == 3) ? 'Google > Category > Tree3':
(($output_field_category == 4) ? 'Google > Category > Tree4':
(($output_field_category == 5) ? 'Google > Category > Tree5':
(($output_field_category == 6) ? 'Google > Category > Tree6':
(($output_field_category == 7) ? 'Google > Category > Tree7':
(($output_field_category == 8) ? 'Google > Category > Tree8':
(($output_field_category == 9) ? 'Google > Category > Tree9':
(($output_field_category == 10) ? 'Google > Category > Tree10':
(($output_field_category == 11) ? 'Google > Category > Tree11':
(($output_field_category == 12) ? 'Google > Category > Tree12':
(($output_field_category == 13) ? 'Google > Category > Tree13':
(($output_field_category == 14) ? 'Google > Category > Tree14':
(($output_field_category == 15) ? 'Google > Category > Tree15':
(($output_field_category == 10000) ? '':
(($output_field_category == 10000) ? '':
(($output_field_category == 10000) ? '':
(($output_field_category == 10000) ? '':
(($output_field_category == 10000) ? '':
''))))))))))))))))))));
}
//FEED FUNCTIONS END
?>