the websiteID in the web.xml starts the chain
create a productStore
then in the content recreate a website with the ID you put in the web.xml
and use the ProductstoreID you created.
Now create a catalog for that productstore.
this is the catalog that will show up in the Ecommerce
you can add more catalogs to the Product store and they will show also.
SPEELGOED VOOR KINDEREN / TOYS FOR CHILDREN / JOUETS POUR ENFANTS sent
the following on 10/10/2008 2:56 PM:
> Hello,
>
> I know that this question is already showed several times but i want
> to show in the ecommerce site the current catalogus name or the
> current catalogus id. How do i have to do that?
>
> I start from the main.ftl which if i look in the ecommerce controller
> file is used for the "/ecommerce/control/main" url.
>
> In the "main.ftl" is used the "main-decorator".
>
> In the "main-decorator" there is the script "EcommerceSetup.bsh" and
> also the screen "header.ftl" is used there.
>
> In the "EcommerceSetup.bsh" i write:
>
> CurrentCatalogId = CatalogWorker.getCurrentCatalogId(request);
>
>
> if (CurrentCatalogId != null) {
> request.setAttribute("CurrentCatalogId", CurrentCatalogId);
> }
>
>
>
> I use the "header.ftl" to receive and show the "CurrentCatalogId"
> request parameter:
>
> <#if (requestAttributes.CurrentCatalogId)?exists><#assign
> CurrentCatalogId = requestAttributes.CurrentCatalogId></#if>
>
> I show the variable $CurrentCatalogId further in the header.ftl file.
>
>
> BUT this doesn't work. What do i do WRONG???
>
> thanks for help,
> Heidi
>
>