You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Boris Hamanov <bs...@gmail.com> on 2011/11/11 00:26:19 UTC
How to override default WebSite with another ProductStore
Hi,
I am using latest Ofbiz 09.04 Stable;
I created my own store and I need the default ecommerce app to use it instead of the built-in one (ID 9000)
I saw that webSiteId="WebStore" in web.xml of the ecommerce web app. I don’t know how to override that, so I just put into my component seed data this file:
My store has productStoreId of 90000
<?xml version="1.0" encoding="UTF-8"?>
<entity-engine-xml>
<WebSite webSiteId="WebStore" siteName="eCommerce Web Site" productStoreId="90000" visualThemeSetId="ECOMMERCE"/>
</entity-engine-xml>
I referenced that in my component ofbiz-component.xml like this:
<entity-resource type="data" reader-name="seed" loader="main" location="data/overrideMainPageData.xml"/>
I do ant clean run-install while my component is in the hot-deploy, but it does not work. It works when I manually import overrideMainPageData.xml from web tools, so the problem must be in the seed order. I read somewhere that components in hot deploy are loaded last. So why is this happening? Any better way to do what I want?
Thank you for any time you can spare on this. I would appreciate it!
Re: How to override default WebSite with another ProductStore
Posted by Deepak Dixit <de...@hotwaxmedia.com>.
Yes, But it depends upon target to target,
For run-install sequence of data load is :seed, seed-initial, demo, ext, ext-test, ext-demo
Thanks & Regards
--
Deepak Dixit
Sr. Enterprise Software Developer
HotWax Media Pvt. Ltd.
www.hotwaxmedia.com
Contact :- +91-98267-54548
Skype :- deepakdixit
On Nov 11, 2011, at 2:06 PM, Boris Hamanov wrote:
> Thanks Deepak!
>
> So, you are saying that my data gets overriden, because it is a seed data and the DemoProduct.xml is a demo data?
>
> Is demo data applied after seed data?
>
> -----Original Message----- From: Deepak Dixit
> Sent: Friday, November 11, 2011 7:47 AM
> To: user@ofbiz.apache.org
> Subject: Re: How to override default WebSite with another ProductStore
>
> Hi Boirs,
>
> You are using ant-run-install target to load data, this target load all the data (seed, demo,test...).
>
>
> And WebSite data for WebStore define in ecommerce/data/DemoProductData.xml, so its override the seed data loaded by you.
>
> <WebSite webSiteId="WebStore" siteName="eCommerce Web Site" productStoreId="9000" visualThemeSetId="ECOMMERCE"/>
>
> You have to try the run-install-seed or runi-install-extseed or run-install-readers target to load data.
>
>
> Thanks & Regards
> --
> Deepak Dixit
> Sr. Enterprise Software Developer
> HotWax Media Pvt. Ltd.
> www.hotwaxmedia.com
> Contact :- +91-98267-54548
> Skype :- deepakdixit
>
> On Nov 11, 2011, at 4:56 AM, Boris Hamanov wrote:
>
>> Hi,
>>
>> I am using latest Ofbiz 09.04 Stable;
>>
>> I created my own store and I need the default ecommerce app to use it instead of the built-in one (ID 9000)
>>
>> I saw that webSiteId="WebStore" in web.xml of the ecommerce web app. I don’t know how to override that, so I just put into my component seed data this file:
>>
>> My store has productStoreId of 90000
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <entity-engine-xml>
>> <WebSite webSiteId="WebStore" siteName="eCommerce Web Site" productStoreId="90000" visualThemeSetId="ECOMMERCE"/>
>> </entity-engine-xml>
>>
>> I referenced that in my component ofbiz-component.xml like this:
>>
>> <entity-resource type="data" reader-name="seed" loader="main" location="data/overrideMainPageData.xml"/>
>>
>> I do ant clean run-install while my component is in the hot-deploy, but it does not work. It works when I manually import overrideMainPageData.xml from web tools, so the problem must be in the seed order. I read somewhere that components in hot deploy are loaded last. So why is this happening? Any better way to do what I want?
>>
>> Thank you for any time you can spare on this. I would appreciate it!
>>
>
Re: How to override default WebSite with another ProductStore
Posted by Boris Hamanov <bs...@gmail.com>.
Thanks Deepak!
So, you are saying that my data gets overriden, because it is a seed data
and the DemoProduct.xml is a demo data?
Is demo data applied after seed data?
-----Original Message-----
From: Deepak Dixit
Sent: Friday, November 11, 2011 7:47 AM
To: user@ofbiz.apache.org
Subject: Re: How to override default WebSite with another ProductStore
Hi Boirs,
You are using ant-run-install target to load data, this target load all the
data (seed, demo,test...).
And WebSite data for WebStore define in ecommerce/data/DemoProductData.xml,
so its override the seed data loaded by you.
<WebSite webSiteId="WebStore" siteName="eCommerce Web Site"
productStoreId="9000" visualThemeSetId="ECOMMERCE"/>
You have to try the run-install-seed or runi-install-extseed or
run-install-readers target to load data.
Thanks & Regards
--
Deepak Dixit
Sr. Enterprise Software Developer
HotWax Media Pvt. Ltd.
www.hotwaxmedia.com
Contact :- +91-98267-54548
Skype :- deepakdixit
On Nov 11, 2011, at 4:56 AM, Boris Hamanov wrote:
> Hi,
>
> I am using latest Ofbiz 09.04 Stable;
>
> I created my own store and I need the default ecommerce app to use it
> instead of the built-in one (ID 9000)
>
> I saw that webSiteId="WebStore" in web.xml of the ecommerce web app. I don’t
> know how to override that, so I just put into my component seed data this
> file:
>
> My store has productStoreId of 90000
>
> <?xml version="1.0" encoding="UTF-8"?>
> <entity-engine-xml>
> <WebSite webSiteId="WebStore" siteName="eCommerce Web Site"
> productStoreId="90000" visualThemeSetId="ECOMMERCE"/>
> </entity-engine-xml>
>
> I referenced that in my component ofbiz-component.xml like this:
>
> <entity-resource type="data" reader-name="seed" loader="main"
> location="data/overrideMainPageData.xml"/>
>
> I do ant clean run-install while my component is in the hot-deploy, but it
> does not work. It works when I manually import overrideMainPageData.xml
> from web tools, so the problem must be in the seed order. I read somewhere
> that components in hot deploy are loaded last. So why is this happening?
> Any better way to do what I want?
>
> Thank you for any time you can spare on this. I would appreciate it!
>
Re: How to override default WebSite with another ProductStore
Posted by Deepak Dixit <de...@hotwaxmedia.com>.
Hi Boirs,
You are using ant-run-install target to load data, this target load all the data (seed, demo,test...).
And WebSite data for WebStore define in ecommerce/data/DemoProductData.xml, so its override the seed data loaded by you.
<WebSite webSiteId="WebStore" siteName="eCommerce Web Site" productStoreId="9000" visualThemeSetId="ECOMMERCE"/>
You have to try the run-install-seed or runi-install-extseed or run-install-readers target to load data.
Thanks & Regards
--
Deepak Dixit
Sr. Enterprise Software Developer
HotWax Media Pvt. Ltd.
www.hotwaxmedia.com
Contact :- +91-98267-54548
Skype :- deepakdixit
On Nov 11, 2011, at 4:56 AM, Boris Hamanov wrote:
> Hi,
>
> I am using latest Ofbiz 09.04 Stable;
>
> I created my own store and I need the default ecommerce app to use it instead of the built-in one (ID 9000)
>
> I saw that webSiteId="WebStore" in web.xml of the ecommerce web app. I don’t know how to override that, so I just put into my component seed data this file:
>
> My store has productStoreId of 90000
>
> <?xml version="1.0" encoding="UTF-8"?>
> <entity-engine-xml>
> <WebSite webSiteId="WebStore" siteName="eCommerce Web Site" productStoreId="90000" visualThemeSetId="ECOMMERCE"/>
> </entity-engine-xml>
>
> I referenced that in my component ofbiz-component.xml like this:
>
> <entity-resource type="data" reader-name="seed" loader="main" location="data/overrideMainPageData.xml"/>
>
> I do ant clean run-install while my component is in the hot-deploy, but it does not work. It works when I manually import overrideMainPageData.xml from web tools, so the problem must be in the seed order. I read somewhere that components in hot deploy are loaded last. So why is this happening? Any better way to do what I want?
>
> Thank you for any time you can spare on this. I would appreciate it!
>