You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Nick Olson <ni...@vitaminlife.com> on 2006/07/19 21:34:55 UTC
How do I force a specific catalog in the ecommerce app?
I tried to put this into the web.xml file, thinking that the website
should bring up the catalog associated with it automatically, but this
doesn't seem to affect it.
<context-param>
<param-name>webSiteId</param-name>
<param-value>MySite</param-value>
</context-param>
When I look at the site, the 'choose catalog' drop-down shows the
catalogs in my store, but the selected catalog shown is the demo
catalog, which isn't associated with the store at all.
What can I do to force the app to use a specific catalog?
-Nick
Re: How do I force a specific catalog in the ecommerce app?
Posted by Nick Olson <ni...@vitaminlife.com>.
I found a way to set the catalog id by putting this in the
EcommerceSetup.bsh file.
session.setAttribute("CURRENT_CATALOG_ID", "MyCatalog");
I'm not sure if this is the best way to set the catalog, though.
-Nick
Nick Olson wrote:
> I tried to put this into the web.xml file, thinking that the website
> should bring up the catalog associated with it automatically, but this
> doesn't seem to affect it.
>
> <context-param>
> <param-name>webSiteId</param-name>
> <param-value>MySite</param-value>
> </context-param>
>
> When I look at the site, the 'choose catalog' drop-down shows the
> catalogs in my store, but the selected catalog shown is the demo
> catalog, which isn't associated with the store at all.
>
> What can I do to force the app to use a specific catalog?
>
> -Nick
>
>