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:
Serving images from databases (1998)
PIXO support (1997)
Emails are Stuck (2003)
Mac Vs WindowsNT (1997)
Showif Question (2001)
[WebDNA] Styling search results [using css] (2009)
Searching with a form (2000)
Format question (2001)
WCf2 and nested tags (1997)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
ShoppingCarts (2000)
IE-caching (1998)
THANKS (1997)
spawn (1998)
Caching [include] files ... (1997)
FW: ANother SHOWIF problem (1997)
format_to_days on NT (1997)
Great product and great job ! (1997)
[WebDNA] Help with work-around format date (2013)
RE: Signal Raised (1997)