Re: showcart problem, HELP!

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 25368
interpreted = N
texte = If you want to have access to the value of textB while using the showcart command you must write the value to the cart first. While using the showcart command you are implicitly defining an [orderfile] context so webcat is ignoring the passed value and using the value in the cart which, unless you set it does not exist. Two ways to fix it. One, write the lineitem to the cart and set textB's value, or two, change the name of the variable from textB to something else and then write that value to the cart as textB when you are ready... any further questions just postem here...- ck>I posted a question a few days ago and have not seen any response to it, so >im not sure if it made it to the list. Here it is again... (I would REALLY >appreciate any help!) >THANKS! >Mark > > >I have a results.tpl which shows sku and up to three different sizes/prices >using the TextB as follows: > > > >This work just fine. > >Now on some items I direct the user to a toppings.tpl page where they can >select (check off) different toppings for the item they just ordered. Each >topping has a different price based on the size selected from the previous >screen, and I am able to display that price here based on the TextB value. >However, it appears that by using the showcart command I am not able to >pass alone the TextB value to the ShoppingCart.tpl. I need the TextB >value in the ShoppingCart.tpl in order to display the correct price. > >Anyone know why I can use the showcart command to add items, but not be >able to pass along the TextB value? > >Here is what my toppings.tpl looks like: > > > > > > > >
>What additional toppings would you like to add to >your:
>[lookup >db=catalog.txt&lookinfield=sku&value=[sku]&returnfield=Title] >
>
> > > > >[Search db=catalog.txt&eqCATEGORYdata=999] >[FoundItems] > > > > > > >[/foundItems] >[/Search] >
Check
Topping
Select
D>
Price
> > > >[title]: > >for [showif [TextB]=SA] $[C1][/showif] [showif [TextB]=SB] >$[C2][/showif] [showif [TextB]=SC] $[C3][/showif]
> > > > >
>[include ../PageEditor] > > > > > >------------------------------------------------------------- >Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. >To end your Mail problems go to . > >This message is sent to you because you are subscribed to > the mailing list . >To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >-- _______________________________________________________________ Charles Kline ckline@macsultants.com WebMaster - eCommerce SpecialistMacSultants Professional Solutions for Computer SystemsPhone# 856-273-3255 Fax# 856-273-3721 ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Associated Messages, from the most recent to the oldest:

    
  1. Re: showcart problem, HELP! (Charles Kline 1999)
  2. showcart problem, HELP! ( 1999)
If you want to have access to the value of textB while using the showcart command you must write the value to the cart first. While using the showcart command you are implicitly defining an [orderfile] context so webcat is ignoring the passed value and using the value in the cart which, unless you set it does not exist. Two ways to fix it. One, write the lineitem to the cart and set textB's value, or two, change the name of the variable from textB to something else and then write that value to the cart as textB when you are ready... any further questions just postem here...- ck>I posted a question a few days ago and have not seen any response to it, so >im not sure if it made it to the list. Here it is again... (I would REALLY >appreciate any help!) >THANKS! >Mark > > >I have a results.tpl which shows sku and up to three different sizes/prices >using the TextB as follows: > > > >This work just fine. > >Now on some items I direct the user to a toppings.tpl page where they can >select (check off) different toppings for the item they just ordered. Each >topping has a different price based on the size selected from the previous >screen, and I am able to display that price here based on the TextB value. >However, it appears that by using the showcart command I am not able to >pass alone the TextB value to the ShoppingCart.tpl. I need the TextB >value in the ShoppingCart.tpl in order to display the correct price. > >Anyone know why I can use the showcart command to add items, but not be >able to pass along the TextB value? > >Here is what my toppings.tpl looks like: > > > > > > > >
>What additional toppings would you like to add to >your:
>[lookup >db=catalog.txt&lookinfield=sku&value=[sku]&returnfield=Title] >
>
> > > > >[Search db=catalog.txt&eqCATEGORYdata=999] >[founditems] > > > > > > >[/foundItems] >[/Search] >
Check
Topping
Select
D>
Price
> > > >[title]: > >for [showif [TextB]=SA] $[C1][/showif] [showif [TextB]=SB] >$[C2][/showif] [showif [TextB]=SC] $[C3][/showif]
>[cart]> > > > >
>[include ../PageEditor] > > > > > >------------------------------------------------------------- >Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. >To end your Mail problems go to . > >This message is sent to you because you are subscribed to > the mailing list . >To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >-- _______________________________________________________________ Charles Kline ckline@macsultants.com WebMaster - eCommerce SpecialistMacSultants Professional Solutions for Computer SystemsPhone# 856-273-3255 Fax# 856-273-3721 ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Charles Kline

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

emailer (1997) Remote Admin Design Question (1998) Server Creation - vendors (2005) Inventory Debit Procedure (1998) QuitFeedback & DBNotOpened errors (1997) Online magazine- monthly updates and such (1999) Uh...can someone help me out with the b10? (1997) [WebDNA] WebDNA Sciprt for Zipping files? (2012) choice of images (2000) Re2: Calculating multiple shipping... (1997) Is there a way to just get to the last record in the database? (1997) Spiders and Bots (2000) Unauthorized User trouble (1998) Cart problem (1999) RE: Multiple Stores and WebCatalog Prefs (1997) [OT] (waaaay OT) (2004) WebTen and WebCat (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) WebCatalog for guestbook ? (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)