You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Amit Sharma <am...@hotwaxmedia.com> on 2009/01/15 15:21:04 UTC
Re:[Blocker] Not display Configurable Product's item on Configurable
product detail page
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
>
Re: [Blocker] Not display Configurable Product's item on Configurable
product detail page
Posted by Amit Sharma <am...@hotwaxmedia.com>.
Thanks for reply Jacques,
But one more think as u said configId is missing somewhere ,
so when we take
<ProductConfigItem configItemId="PZ0000" configItemTypeId="SINGLE"
configItemName="Dough" description="Select type:"/>
and
<ProductConfig productId="PIZZA" configItemId="PZ0000"
sequenceNum="10" fromDate="2004-08-20 12:59:26.209"
configTypeId="QUESTION" isMandatory="Y"/>
means PIZZA-E is to become completely as like PIZZA product. i.e.
if PIZZ-E does have Componet Small Pizza and Large Pizza,
PIZZA-E (Aggregated Product)
1.Small and Large Pizza (FINISHED_GOOD)
1. PEPPER (Virtual Product)
2. SAUCE (Virtual Product)
then its working fine for both login and logout case.
So there is only one case where configId is missing when PIZZA doesn't
have Small and large pizza Component as a configuration option .
It only has Pepper and souce configuration option .
So i think its an issue ,
Plz let me know whether I am right or wrong?.
Thanks & Regards
Amit
Jacques Le Roux wrote:
> I guess a Configurable product should have at least something to be
> configured...
> Else you could try to bypass
> <input type="hidden" name="configId" value="${configId}">
>
> in configproductdetail.ftl using and if exist condition. But then
> maybe configId will be missing somewhere along the call, try it...
>
> Jacques
>
> From: "Amit Sharma" <am...@hotwaxmedia.com>
> To: <us...@ofbiz.apache.org>
> Sent: Thursday, January 15, 2009 3:21 PM
> Subject: Re:[Blocker] Not display Configurable Product's item on
> Configurable product detail page
>
>
>> 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
>>>
>>
>
>
Re: Re:[Blocker] Not display Configurable Product's item on Configurable product detail page
Posted by Jacques Le Roux <ja...@les7arts.com>.
I guess a Configurable product should have at least something to be configured...
Else you could try to bypass
<input type="hidden" name="configId" value="${configId}">
in configproductdetail.ftl using and if exist condition. But then maybe configId will be missing somewhere along the call, try it...
Jacques
From: "Amit Sharma" <am...@hotwaxmedia.com>
To: <us...@ofbiz.apache.org>
Sent: Thursday, January 15, 2009 3:21 PM
Subject: Re:[Blocker] Not display Configurable Product's item on Configurable product detail page
> 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
>>
>