Hello All,

Let me describe more, When I create Configurable product say PIZZ-E which just like Configurable product PIZZ but in PIZZ-E doesn't have Componet Small Pizza and
Large Pizza, It has only Virtual products as in case of PIZZA .
like

   PIZZA-E (Aggregated Product)
      1. PEPPER  (Virtual Product)
      2. SAUCE   (Virtual Product)

Now , The Above Configuration Product Working fine when user isn't login
but if User logged in and When click on that product then it wont show Virtual products (PEPPER and SAUCE). and
It will show error on cosole as fallow :

Java backtrace for programmers:
----------

---- exception report ---------------------------------------------------------- Error rendering included template at location [component://ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl]: freemarker.core.InvalidReferenceException: Expression configId is undefined on line 369, column 57 in component://ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl.
Exception: freemarker.core.InvalidReferenceException
Message: Expression configId is undefined on line 369, column 57 in component://ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl. ---- stack trace --------------------------------------------------------------- Expression configId is undefined on line 369, column 57 in component://ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl.
The problematic instruction:
----------
==> ${configId} [on line 369, column 55 in component://ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl]
----------

So the solution is only replace ${configId} in to ${configId!} on line 369 in in component://ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl file i mean we check cofigId if exist. after changing this . it will be working fine in both logge-In and logge-Out Case.

Plz anyone explain whether i am correct or wrong, and is this change required or not.

Thanks in Advance

Amit Sharma


Amit Sharma wrote:
In ecommerce's application we have PIZZA as a configurable product .

If we show only Peeper and Souce for Pizza as a component then its not running fine (both configuration item peeper and souce are not getting displayed on product detail page), if user is logge-in
On the other hand its working fine if user is not logged-in.

Not included --<ProductConfigItem configItemId="PZ0000" configItemTypeId="SINGLE" configItemName="Dough" description="Select type:"/> Included---- <ProductConfigItem configItemId="PZ0001" configItemTypeId="MULTIPLE" configItemName="Toppings" description="Select the Toppings:"/>

Note: I don't want to have configuration item large and small Pizza.

Thanks

Amit


Reply via email to