Quote Originally Posted by taf View Post
I'm now looking at one other small issue i'm getting with the product_type when i'm setting the product type to top, bottom and full I don't see any difference in the output of the xml file.

I always see a comma separated listed of the top and then subsequent categories, I'm going to look into this some more.
OK i think I've found the solution to this it's a one liner:
PHP Code:
$product_type zen_froogle_get_category($products->fields['products_id']);
                                
array_pop($product_type); // removes category number from end
$product_type explode(","$product_type[0]); //Line added by taf.. 
It looks as if the $product type array is not formed properly, i.e only has element 0 that is made up of categories and sub categories separated by commas. The explode call seems to sort this out. So now top, bottom and full selections on product types work.

A slightly neater way of fixing this might be fix this problem in the function zen_froogle_get_category.

The file is googlefroogle.php