Product feature - country

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

Product feature - country

V.S.
Good evening.
Two small questions:
1. For what field HAS_TABLE in table PRODUCT_FEATURE_TYPE is intended
2. I need to use the country as feature for products. Whether there is a possibility in any way to use as values for feature data from GeoData (together with localisation), not to create one more list of the countries.

Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Product feature - country

Rishi Solanki
#1 The HAS_TABLE field in any entity have 2 values Y and N. Which tells that
whether the particular Id has a entity available to set its value or not.
Better to look at PARTY_TYPE in which for the type PERSON and PARTY_GROUP
entities are maintained.
#2 You can do it add new feature type as COUNTRY_FTR or FTR_COUNTRY. Put its
HAS_TABLE to Y. As you put Y here you already have the entity available for
it Geo.
Now go to ProductFeature entity and add countryIds as productFeatureIds
without maintaining any relations. Just make sure you pass the
productFeatureTypeId which you have created just as COUNTRY_FTR or
FTR_COUNTRY. How it will work can be easily understand by
/ecommerce/DemoProduct.xml, but you won't find any direct example.

HTH !


Rishi Solanki
Enterprise Software Developer
HotWax Media Pvt. Ltd.


On Fri, Dec 4, 2009 at 1:47 AM, V.S. <[hidden email]
> wrote:

>
> Good evening.
> Two small questions:
> 1. For what field HAS_TABLE in table PRODUCT_FEATURE_TYPE is intended
> 2. I need to use the country as feature for products. Whether there is a
> possibility in any way to use as values for feature data from GeoData
> (together with localisation), not to create one more list of the countries.
>
> Thanks.
> --
> View this message in context:
> http://n4.nabble.com/Product-feature-country-tp947956p947956.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: Product feature - country

V.S.
Rishi Solanki wrote
Many thanks