What is WebDNA

WebDNA is a scripting and database system designed to easily build web applications.

WebDNA and BioType

BioType service is a biometric keystroke dynamic system. It will be part of WebDNA 8.5

Download WebDNA

Download WebDNA freeware, try it and register later if you want.

WebDNA resources

The list of all WebDNA instructions.
WebDNA
Software Corporation
Search WebDNA Site
 Menu


HOME


DOWNLOADS


LEARN


EDUCATION


NEWS


COMMUNITY


STORE


SUPPORT


CONTACT

Re: [WebDNA] Shopping cart code debug

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 101936
interpreted = N
texte = this has a bug where I marked, see below: On Feb 5, 2009, at 12:18 PM, Ki Song wrote: > I found some bugs ... here's the modified code: > > ====================================================== > ====================================================== > [text show=f]SPSubtotal=0[/text] > [text show=f]SPQualify=f[/text] > [text show=f]promoExists=f[/text] > > [lineitems] > [showif [sku]~SP] > [math show=f]SPSubtotal=[SPSubtotal]+([price]*[quantity])[/math] > [/showif] > [/lineitems] > [showif [url]SPSubtotal>99] Here, you are missing the ^^^^^ closing [/url] around [SPSubtotal]. and also it (the var [SPSubtotal] itself) should be enclosed by square brackets if you expect the value of that var to be inserted there. > > [text show=f]SPQualify=t[/text] > [/showif] > > [SPQualify],[SPSubtotal][!]I want to see what SPQualify and SPSubtotal > are set to[/!] > ====================================================== > ====================================================== > > I have an item in the cart that starts with SP and is over 100. > However, the variables show up as f and 0, respectively. > > Same result. > > > Ki Song > > Ki Song wrote: >> Can you guys take a look at the code below: >> ====================================================== >> ====================================================== >> [text show=f]SPSubtotal=0[/text] >> [text show=f]SPQualify=f[/text] >> [text show=f]promoExists=f[/text] >> [lineitems] >> [showif [url][sku][/url]~SP] >> [showif [math show=f]SPSubtotal=[SPSubtotal]+([price]*[quantity]) >> [/math]>99] >> [text show=f]SPQualify=t[/text] >> [/showif] >> [/showif] >> [/lineitems] >> [SPQualify],[SPSubtotal][!]I want to see what SPQualify and >> SPSubtotal are set to[/!] >> ====================================================== >> ====================================================== >> I have an item in the cart that starts with SP and is over 100. >> However, the variables show up as f and 0, respectively. >> Can you guys see anything wrong? >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> old archives: http://dev.webdna.us/TalkListArchive/ > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Shopping cart code debug (Marc Thompson 2009)
  2. Re: [WebDNA] Shopping cart code debug (Ki Song 2009)
  3. Re: [WebDNA] Shopping cart code debug (Govinda 2009)
  4. Re: [WebDNA] Shopping cart code debug (Donovan Brooke 2009)
  5. Re: [WebDNA] Shopping cart code debug (Ki Song 2009)
  6. Re: [WebDNA] Shopping cart code debug (Govinda 2009)
  7. Re: [WebDNA] Shopping cart code debug (Govinda 2009)
  8. Re: [WebDNA] Shopping cart code debug ("Dan Strong" 2009)
  9. Re: [WebDNA] Shopping cart code debug (Donovan Brooke 2009)
  10. Re: [WebDNA] Shopping cart code debug (Ki Song 2009)
  11. [WebDNA] Shopping cart code debug (Ki Song 2009)
this has a bug where I marked, see below: On Feb 5, 2009, at 12:18 PM, Ki Song wrote: > I found some bugs ... here's the modified code: > > ====================================================== > ====================================================== > [text show=f]SPSubtotal=0[/text] > [text show=f]SPQualify=f[/text] > [text show=f]promoExists=f[/text] > > [lineitems] > [showif [sku]~SP] > [math show=f]SPSubtotal=[SPSubtotal]+([price]*[quantity])[/math] > [/showif] > [/lineitems] > [showif [url]SPSubtotal>99] Here, you are missing the ^^^^^ closing [/url] around [SPSubtotal]. and also it (the var [SPSubtotal] itself) should be enclosed by square brackets if you expect the value of that var to be inserted there. > > [text show=f]SPQualify=t[/text] > [/showif] > > [SPQualify],[SPSubtotal][!]I want to see what SPQualify and SPSubtotal > are set to[/!] > ====================================================== > ====================================================== > > I have an item in the cart that starts with SP and is over 100. > However, the variables show up as f and 0, respectively. > > Same result. > > > Ki Song > > Ki Song wrote: >> Can you guys take a look at the code below: >> ====================================================== >> ====================================================== >> [text show=f]SPSubtotal=0[/text] >> [text show=f]SPQualify=f[/text] >> [text show=f]promoExists=f[/text] >> [lineitems] >> [showif [url][sku][/url]~SP] >> [showif [math show=f]SPSubtotal=[SPSubtotal]+([price]*[quantity]) >> [/math]>99] >> [text show=f]SPQualify=t[/text] >> [/showif] >> [/showif] >> [/lineitems] >> [SPQualify],[SPSubtotal][!]I want to see what SPQualify and >> SPSubtotal are set to[/!] >> ====================================================== >> ====================================================== >> I have an item in the cart that starts with SP and is over 100. >> However, the variables show up as f and 0, respectively. >> Can you guys see anything wrong? >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> old archives: http://dev.webdna.us/TalkListArchive/ > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ Govinda

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:

Email Formatting and Encryption (1998) HELP WITH DATES (1997) page chokes on hideif when false and ignored (1998) grep question - how to strip spaces from the beginning ofa string? (2002) build a select list from a db search (2004) Search in 2 or more catalogs (1997) searching for last file in a directory (1999) Max Record length restated as maybe bug (1997) Multiple fields on 1 input (1997) 3.0 [TEXT] variables (1998) Cache Access Error (2000) can WC render sites out? (1997) Username for Admin Group (1997) Not reading blanks (1998) RE: [WebDNA] WebDNA app (2013) emailer stuck (1997) Am I going senile? (Price recalc based on quantity) (1997) Problem displaying search result (1997) Permissions Ignored - PLEASE HELP (2003) problems with 2 tags shakur (1997)