On Aug 27, 2009, at 11:04 AM,
[hidden email] wrote:
> +
> + // adding the default values for products types.
> + // TODO: Figure out how best we can use the
> product_type along with OOTB ProductType associated with Product.
> + // Google base support big list of product type and
> here is the link (Refer title "Browse the taxonomy"):
http://base.google.com/support/bin/answer.py?hl=en&answer=66818> + UtilXml.addChildElementNSValue(entryElem,
> "g:product_type", "Electronics", feedDocument, googleBaseNSUrl);
> + UtilXml.addChildElementNSValue(entryElem,
> "g:product_type", "Business & Industrial", feedDocument,
> googleBaseNSUrl);
> +
I would suggest to add a new category type:
<ProductCategoryType description="Google Base" hasTable="N"
parentTypeId="" productCategoryTypeId="GOOGLE_BASE_CATEGORY"/>
and then define ProductCategory (of that type) that will match with
the ones in Google.
Then the export service will retrieve them and create "g:product_type"
elements.
Jacopo