thanks a lot for the reply,That is a very good explanation and is really
helpful.thanks a lot:jumping:
Ashish Vijaywargiya-4 wrote:
>
> AravindR_Pillai ,
>
> Consider the case of ecommerce component (After this discussion you can
> get
> the idea for Order Component fetching of ProductStoreId).
> Inside the web.xml file you should look into the following entries :-
> <context-param>
> <param-name>webSiteId</param-name>
> <param-value>WebStore</param-value>
> <description>A unique ID used to look up the WebSite entity to get
> information about catalogs, etc.</description>
> </context-param>
>
> In the above code webSiteId is the primary key of WebSite entity and its
> value is WebStore.
> From the above code its clear that webSiteId is kept in Application
> context
> of Ecommerce component.
> Now check it out the WebSite entity for webSiteId="WebStore" in the
> webtools.
> There is a field "productStoreId" in the WebSite entity.
>
> So we can say that there is a WebSite(In Ofbiz its Ecommerce component)
> record that has the default ProductStore associated with it.
> Now the question comes that how this productStoreId comes into picture :-
> Please open the EcommerceSetup.bsh file (included in the main-decorator of
> CommonScreens.xml file of Ecommerce component).
> See the below line :-
> productStore = ProductStoreWorker.getProductStore(request);
>
> Now go to the getProductStore method of ProductStoreWorker class.
> See Line # 71.
> This method is calling "getProductStoreId" of the same class.
> In this method code comes to the else part(because productStoreId is not
> kept in session till now).
> See the following lines of code :-
>
> GenericValue webSite = CatalogWorker.getWebSite(request);
> if (webSite != null) {
> String productStoreId =
> webSite.getString("productStoreId");
> // might be nice to do this, but not needed and has a
> problem with dependencies: setSessionProductStore(productStoreId,
> httpRequest);
> return productStoreId;
>
> Now I think I am on safer side and hope that you can find the way from
> here.
> Please let us know if you still have any doubts or question.
>
> Thanks !!!
>
> --
> Ashish Vijaywargiya
> Indore, India
>
>
> On Thu, Jul 3, 2008 at 12:04 AM, Aravind_RP <[EMAIL PROTECTED]>
> wrote:
>
>>
>> hi
>>
>> this might be a basic question.while setting the shopping cart and for
>> such
>> service we need the product store id but while creating a product cant
>> see
>> a
>> field to set it.can any one please help me to understand more about the
>> use
>> of productstore id and how it is set in ofbiz.
>> --
>> View this message in context:
>> http://www.nabble.com/query-on-productStoreId..-tp18251502p18251502.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/query-on-productStoreId..-tp18251502p18252207.html
Sent from the OFBiz - User mailing list archive at Nabble.com.