RE: error count with $purchase

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13514
interpreted = N
texte = Kevin ->I am trying to do a situation for my thanyou page, to >make sure that the require fields of address, phone number etc are inputed. >Members of my team have complained that the reqfield error page that is >returned, is not sufficient enough. >However, when the $purchase command is done, it automatically checks the >credit card number and sends email via webmerchant, regardless of what has >been done via . >Is there anyway to stop webmerch from doing this?If you're going to be doing your own custom error checking, use the [purchase] tag on the ThankYou.tmpl page instead of the $purchase command. If you use the command, the cart is purchased first, before the WebDNA on the rest of the page is executed. Set your FORM ACTION to ThankYou.tmpl (without the command), then enclose the [purchase] tag (there should be details in the online reference guide) in a [showif] context so that the cart is only purchased if the form was filled out correctly.I hope this helps,Marc Eagle StarNine Technologies http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. RE: error count with $purchase (Marc Eagle 1997)
Kevin ->I am trying to do a situation for my thanyou page, to >make sure that the require fields of address, phone number etc are inputed. >Members of my team have complained that the reqfield error page that is >returned, is not sufficient enough. >However, when the $purchase command is done, it automatically checks the >credit card number and sends email via webmerchant, regardless of what has >been done via . >Is there anyway to stop webmerch from doing this?If you're going to be doing your own custom error checking, use the [purchase] tag on the ThankYou.tmpl page instead of the $purchase command. If you use the command, the cart is purchased first, before the WebDNA on the rest of the page is executed. Set your FORM ACTION to ThankYou.tmpl (without the command), then enclose the [purchase] tag (there should be details in the online reference guide) in a [showif] context so that the cart is only purchased if the form was filled out correctly.I hope this helps,Marc Eagle StarNine Technologies http://www.smithmicro.com/ Marc Eagle

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:

[BULK] [WebDNA] [OT] BBEdit Glossary (2012) suffix mapping for NT? (1997) Execute Applescript (1997) $Replace with [founditems] (1997) WebCat2b15MacPlugin - showing [math] (1997) Subtotal help (1997) Date calculation problems (1997) textarea inputs and returns (1999) PIXO support (1997) Extended [ConvertChars] (1997) Template not found error messages (1997) PSC recommends what date format yr 2000??? (1997) Major Security Hole IIS NT (1998) [OT] PHP?MySQL Help Needed (2003) UnitShopCost (2007) WC2b12: Yes, Formulas.db is for real (1997) error (2000) Shell on MacOSX (2004) math on date? (1997) [WebDNA] Friday February 13, 2009 (2009)