You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Jacopo Cappellato <ja...@hotwaxmedia.com> on 2009/08/27 11:58:02 UTC
Re: svn commit: r808331 - /ofbiz/trunk/specialpurpose/googlebase/src/org/ofbiz/googlebase/ProductsExportToGoogle.java
On Aug 27, 2009, at 11:04 AM, ashish@apache.org 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
Re: svn commit: r808331 - /ofbiz/trunk/specialpurpose/googlebase/src/org/ofbiz/googlebase/ProductsExportToGoogle.java
Posted by Ashish Vijaywargiya <as...@hotwaxmedia.com>.
Thanks for your comment on this Jacopo.
I will do the needful and will get back to you in case of any confusion.
--
Ashish
Jacopo Cappellato wrote:
> On Aug 27, 2009, at 11:04 AM, ashish@apache.org 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
>