Re: svn commit: r808331 - /ofbiz/trunk/specialpurpose/googlebase/src/org/ofbiz/googlebase/ProductsExportToGoogle.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r808331 - /ofbiz/trunk/specialpurpose/googlebase/src/org/ofbiz/googlebase/ProductsExportToGoogle.java

Jacopo Cappellato-4
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

Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r808331 - /ofbiz/trunk/specialpurpose/googlebase/src/org/ofbiz/googlebase/ProductsExportToGoogle.java

Ashish Vijaywargiya-5
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, [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
>

smime.p7s (4K) Download Attachment