cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to enable two storefront with different context root?

Former Member
0 Kudos
647

I first created a modulegen xyz which ultimately gave me extensions: xyccockpit xyctest xycbackoffice xycinitialdata xyzstorefront xyccore xycfacade

And i tried to create a xxxstorefront extension through extgen yacceleratorstorefront template.

the product catalog for both storefront is shared in xyzinitialdata & the content catalog is maintained separately by two different cmssite ids : xyzsite and xxxsite So. I want a two different sites with different context root like localhost:9002/xyzstorefront?site=xyzsite & localhost:9002/xxxstorefront?site=xxxite (not working 404)

But I can only access both sites through xyzstorefront context root by changing site id and not through different contexts. how to achieve it ?

Accepted Solutions (1)

Accepted Solutions (1)

Marko_salonen
Contributor
0 Kudos

why would you have two storefronts? You would need to define different webroots for these. Something like xxxstorefront.webroot=/xxxstorefront xyzstorefront.webroot=/xyzstorefront

This could probably work but i still would not do it like this :)

Former Member
0 Kudos

Hi I tried adding xxxstorefront.webroot=/xxxstorefront and storefrontcontextroot is empty when I hit the site I am still facing an issue.

Answers (0)