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 |
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 > |
Administrator
|
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" <[hidden email]> To: <[hidden email]> 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 >> > |
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" <[hidden email]> > To: <[hidden email]> > 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 >>> >> > > |
In reply to this post by Amit Sharma-10
On Jan 13, 2009, at 4:02 PM, 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 Hi Amit, I removed ProductConfig line from DB to get a pizza w/o large and small configuration and it works fine. Can you try this, instead of removing ProductConfigItem entrie.. <ProductConfig productId="PIZZA" configItemId="PZ0000" sequenceNum="10" fromDate="2004-08-20 12:59:26.209" configTypeId="QUESTION" isMandatory="Y"/> Bilgin |
Hi Amit, Bilgin
I also tried this its working fine when user is not signed -in. On the other hand when I log-in then its not showing the virtual products ( Peeper and sauce ). I think Amit is concerned about this. Kind regards, -- Vivek Mishra Bilgin Ibryam wrote: > > On Jan 13, 2009, at 4:02 PM, 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 > > Hi Amit, > > I removed ProductConfig line from DB to get a pizza w/o large and > small configuration and it works fine. Can you try this, instead of > removing ProductConfigItem entrie.. > > <ProductConfig productId="PIZZA" configItemId="PZ0000" > sequenceNum="10" fromDate="2004-08-20 12:59:26.209" > configTypeId="QUESTION" isMandatory="Y"/> > > Bilgin > > > smime.p7s (4K) Download Attachment |
In reply to this post by Bilgin Ibryam
Thanks Bilgin for the reply ,
I tried it as u suggest but after login its not showing virtual products. and it again showing error on console ==> ${configId} [on line 369, column 55 in component://ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl] So when we change ${configId} to ${configId!} then it will show virtual products in logged in case also, Please let me know is there is a solution or any other way to solve our problem. Thanks & Regards Amit Sharma Bilgin Ibryam wrote: > > On Jan 13, 2009, at 4:02 PM, 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 > > Hi Amit, > > I removed ProductConfig line from DB to get a pizza w/o large and > small configuration and it works fine. Can you try this, instead of > removing ProductConfigItem entrie.. > > <ProductConfig productId="PIZZA" configItemId="PZ0000" > sequenceNum="10" fromDate="2004-08-20 12:59:26.209" > configTypeId="QUESTION" isMandatory="Y"/> > > Bilgin > > > |
Vivek, Amit,
you are right, there is an error. It is caused because when you remove the first confinItem (with small and large pizza options), it is not possible to create a valid default configuration ( ie a configId) for the rest of pizza, as the other configItem has no selected options by default. To have a configid created, at least on option should be selected by default. Hope it is clear. I will take a look at it, later today. Bilgin On Jan 21, 2009, at 1:25 PM, Amit Sharma wrote: > Thanks Bilgin for the reply , > > I tried it as u suggest but after login its not showing virtual > products. and it again showing error on console > > ==> ${configId} [on line 369, column 55 in component://ecommerce/ > webapp/ecommerce/catalog/configproductdetail.ftl] > > So when we change ${configId} to ${configId!} then it will show > virtual products in logged in case also, > > Please let me know is there is a solution or any other way to solve > our problem. > > Thanks & Regards > > Amit Sharma > > Bilgin Ibryam wrote: >> >> On Jan 13, 2009, at 4:02 PM, 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 >> >> Hi Amit, >> >> I removed ProductConfig line from DB to get a pizza w/o large and >> small configuration and it works fine. Can you try this, instead >> of removing ProductConfigItem entrie.. >> >> <ProductConfig productId="PIZZA" configItemId="PZ0000" >> sequenceNum="10" fromDate="2004-08-20 12:59:26.209" >> configTypeId="QUESTION" isMandatory="Y"/> >> >> Bilgin >> >> >> > |
Free forum by Nabble | Edit this page |