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
>
>