Re: Adding insurance to an order, round 2

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 50580
interpreted = N
texte = If you're saying that insurance is available on individual items as opposed to the whole order, it would make sense to me to add it as a lineitem. It would take a bit of fiddling, but I think that it would be much clearer for your customer if, after adding an item to the cart, that they see something like:Item Category Qty Unit Price ================================================ Product A Cat Name 1 $100 $100 - insurance for Product A $5 Product B Cat Name 1 $100 $100 Product C Cat Name 1 $50 $50 - insurance for Product C $5 Product D Cat Name 1 $60 $60 Regards, Tim -- Tim Robinson IDFK Web Developments tim@idfk.com.au 114a/40 Yeo Street Neutral Bay 2089 Australia Phone +612 9908 2134 Fax +612 9908 4837> From: WJ Starck > Reply-To: (WebDNA Talk) > Date: Wed, 21 May 2003 17:45:27 > To: (WebDNA Talk) > Subject: Adding insurance to an order, round 2 > > I have a form that has a checkbox named insurance the value of which > is T if it's checked. This is so customers can elect to insure a > package (or not). > > The checkbox is submitted to another page that has the following code: > > [setheader cart=[GetCookie SessionID]header40=[insurance][/setheader] > and below that an orderfile that displays the cart info. > > Formulas.db has a [showif] that calculates an insurance amount if the > checkbox has been selected like so: > > Shipcost [showif [header40]=T]some code to add insurance to > shipcost[/showif] > > (It was suggested by Jay yesterday to use shipcost to add insurance to > an order as a whole, not as a lineitem.) > > Problem is, it seems like once items are added to the cart, the > Shipcost formula from Formulas.db has been applied and cannot be > changed - unless I remove all the items, remember what they were, check > to see if the insurance checkbox was checked, and then readd them, so > that the formula will be reapplied. > > Is there another way to do this I'm missing? > > Thanks, > > > -- > > Will Starck > NovaDerm Skincare Science > http://www.novaderm.com > wjs@novaderm.com > > > ------------------------------------------------------------- > 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 > > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- 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 Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Adding insurance to an order, round 2 (WJ Starck 2003)
  2. Re: Adding insurance to an order, round 2 (WJ Starck 2003)
  3. Re: Adding insurance to an order, round 2 (dbrooke 2003)
  4. Re: Adding insurance to an order, round 2 (Tim Robinson 2003)
  5. Re: Adding insurance to an order, round 2 (WJ Starck 2003)
  6. Re: Adding insurance to an order, round 2 (Tim Robinson 2003)
  7. Re: Adding insurance to an order, round 2 (WJ Starck 2003)
  8. Adding insurance to an order, round 2 (WJ Starck 2003)
If you're saying that insurance is available on individual items as opposed to the whole order, it would make sense to me to add it as a lineitem. It would take a bit of fiddling, but I think that it would be much clearer for your customer if, after adding an item to the cart, that they see something like:Item Category Qty Unit Price ================================================ Product A Cat Name 1 $100 $100 - insurance for Product A $5 Product B Cat Name 1 $100 $100 Product C Cat Name 1 $50 $50 - insurance for Product C $5 Product D Cat Name 1 $60 $60 Regards, Tim -- Tim Robinson IDFK Web Developments tim@idfk.com.au 114a/40 Yeo Street Neutral Bay 2089 Australia Phone +612 9908 2134 Fax +612 9908 4837> From: WJ Starck > Reply-To: (WebDNA Talk) > Date: Wed, 21 May 2003 17:45:27 > To: (WebDNA Talk) > Subject: Adding insurance to an order, round 2 > > I have a form that has a checkbox named insurance the value of which > is T if it's checked. This is so customers can elect to insure a > package (or not). > > The checkbox is submitted to another page that has the following code: > > [setheader cart=[GetCookie SessionID]header40=[insurance][/setheader] > and below that an orderfile that displays the cart info. > > formulas.db has a [showif] that calculates an insurance amount if the > checkbox has been selected like so: > > Shipcost [showif [header40]=T]some code to add insurance to > shipcost[/showif] > > (It was suggested by Jay yesterday to use shipcost to add insurance to > an order as a whole, not as a lineitem.) > > Problem is, it seems like once items are added to the cart, the > Shipcost formula from formulas.db has been applied and cannot be > changed - unless I remove all the items, remember what they were, check > to see if the insurance checkbox was checked, and then readd them, so > that the formula will be reapplied. > > Is there another way to do this I'm missing? > > Thanks, > > > -- > > Will Starck > NovaDerm Skincare Science > http://www.novaderm.com > wjs@novaderm.com > > > ------------------------------------------------------------- > 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 > > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- 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 Web Archive of this list is at: http://webdna.smithmicro.com/ Tim Robinson

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:

WebCatalog NT (1996) cybercash on OSX - was Executing remote AppleScript (2000) WebCat2 several catalogs? (1997) Webcatalog error, Plug-in for Webstar (1996) OT: Javascript Menus (2003) Uploading out of FMP (2001) PIXO support (1997) Secure Server (1997) [WebDNA] SendMail (2008) Associative lookup style? (1997) Problems with [Applescript] (1997) [ListFiles] & [loop] (1998) My Eyes doth deceive me (2002) Locking up with WebCatalog... (1997) code to phantom spacing (2001) Email encryption (1998) code to phantom spacing (2001) Version 4? (2000) [OT] OSX (unix) favorite text editor. (2002) Tea Room trouble (1997)