Re: [WebDNA] Shopping cart code debug
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 101931
interpreted = N
texte = 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][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 SongKi 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/
Associated Messages, from the most recent to the oldest:
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][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 SongKi 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/
Ki Song
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:
[WebDNA] WebDNA Showcase? (2008)
WC2.0 Memory Requirements (1997)
Where's Cart Created ? (1997)
Database cannot be opened (2005)
Windows-based Code Editor (2002)
stats (2001)
Fwd: virtual domain and [listfile] paths and aliases (1998)
[WebDNA] grep code (2009)
FW: WebDNA-Talk searchable? (1997)
Show only certain items (2002)
database size? (1997)
[numfound] for [listfiles] (1998)
DIsplaying Search Result Relevance (2000)
Conveting Characters to Graphics (1997)
osx or redhat and / or other (2005)
Bug or syntax error on my part? (1997)
emailer (1997)
[WriteFile] problems (1997)
Search wbrk word break param (1998)
You can't buy something twice... (1997)