Hi Andrew,
Thanks - even better still :-)
A (little) bug though ...
This version is giving an extra tab ( \t ) at the end of the feed - whether options are selected or not - because the tabs are at the end of the data values.
Maybe move the "\t" to before the data values on lines 109 - 115, instead of after (as now), and remove the tab at the end of line 108?
Eg.
PHP Code:
zen_froogle_sanita($products->fields['products_name'], true) . "\t" .
zen_froogle_sanita($products->fields['products_description']) . "\t" .
str_replace('&', '&', zen_href_link(zen_get_info_page($products->fields['products_id']), 'products_id=' . $products->fields['products_id'] . $product_url_add, 'NONSSL', false)) . "\t" .
number_format($currencies->value(zen_add_tax($price, zen_get_tax_rate($products->fields['products_tax_class_id'])), true, GOOGLE_FROOGLE_CURRENCY), 2, '.', '') . "\t" .
zen_froogle_image_url($products->fields['products_image']) . "\t" .
zen_froogle_expiration_date($products->fields['products_date_added'], $products->fields['products_last_modified'], $products->fields['products_date_available']) . "\t" .
zen_froogle_get_category($products->fields['products_id']) .
(GOOGLE_FROOGLE_OFFER_ID == 'model' ? "\t" . $products->fields['products_model'] : (GOOGLE_FROOGLE_OFFER_ID == 'id' ? "\t" . $products->fields['products_id'] : '')) .
(GOOGLE_FROOGLE_IN_STOCK == 'true' ? "\t" . $products->fields['products_quantity'] : '') .
(GOOGLE_FROOGLE_SHIPPING != '' ? "\t" . GOOGLE_FROOGLE_SHIPPING : '') .
(GOOGLE_FROOGLE_MANUFACTURER == 'true' ?"\t" . zen_froogle_sanita($products->fields['manufacturers_name']) : '') .
(GOOGLE_FROOGLE_PRODUCT_TYPE_SHOW == 'true' ? "\t" . GOOGLE_FROOGLE_PRODUCT_TYPE : '') .
(GOOGLE_FROOGLE_LANGUAGE_DISPLAY == 'true' ? "\t" . $languages->fields['code'] : '') .
(GOOGLE_FROOGLE_CURRENCY_DISPLAY == 'true' ? "\t" . GOOGLE_FROOGLE_CURRENCY : '') .
"\n";