Re: [format] problem
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 38402
interpreted = N
texte = i don't use that in this test code any more this is the result from the same code (as below) with the [format]around [price]...sku=180102quantity=1price=.2f]45.00Error: Error: expected [/LINEITEMS], but found [/format]instead[/format]discnt=texte=TIMOTHY GREENFIELD-SANDERSend of test. and this is what's in the shopingcard file:(line 1)H 1.5 09/06/2001 03:27:24 000.000000 0.0010000672 F (line 2)L 180102 1 45 F F 0ART WORLD books TIMOTHY GREENFIELD-SANDERS nothing unusual.....thanks On Thu, 6 Sep 2001, Gary J. Krockover wrote:> On this line:> [showif [discnt]>0]$[format .2f][texte][/format][/showif]> > Try:> [showif [discnt]!]$[format .2f][texte][/format][/showif]> > Since it seems that [discnt] is not carrying a value, it wouldn't be greater> than zero and I would guess that may be a break in your code, or at least> something to look into. Also, per your test below, the value of [texte] is> OLIVIER CHRISTINAT. Trying to format that with .2f, could that be a issue?> > GK> > > ----- Original Message -----> From: Kalin Mintchev
> To: WebCatalog Talk > Sent: Thursday, September 06, 2001 1:35 AM> Subject: Re: [format] problem> > > >> >> > this is what i get:> >> > sku=18020X> > quantity=1> > price=50.00> > discnt=> > texte=OLIVIER CHRISTINAT> > end of test.> >> >> > note -> price is not formated, that's how it's entered in the db. the db> > is maintained remotely from the customer. that should not affect the> > [format] anyway...> >> > the [format] tag works fine on the same page but out of the> > [lineitems] context.... i assume that the info from the shoppingcart file> > is messing it up but so far i can not find any problems there....> >> > sorry about the late reply. i was moved to another more urgent project> > for a day...> >> > thanks> >> >> >> > On Wed, 5 Sep 2001, Kenneth Grome wrote:> >> > > >ok i checked my code dosens of times then i did a test shopcart with> only> > > >this in it:> > > >> > > >> > > >[lineItems]> > > >> > > >[sku]> > > >
> > > >$[format .2f][math][quantity]*[price][/math][/format]> > > >
> > > >[showif [discnt]>0]$[format .2f][texte][/format][/showif]> > > >[showif [discnt]=]no disc.[/showif]> > > >
> > > >> > > >[/lineItems]> > >> > >> > >> > > Put this in a new *blank* .tpl file, then run your test again, then> > > post your results:> > >> > > [lineItems]> > > sku=[sku]
> > > quantity=[quantity]
> > > price=[price]
> > > discnt=[discnt]
> > > texte=[texte]
> > > end of test.> > > [/lineItems]> > >> > > ----------------------------------------------------> > > Kenneth Grome & Associates> > > web: http://kengrome.com> > > email: owner@kengrome.com> > > mobile: +63 917 254-1494> > > office: +63 32 262-8164> > > ----------------------------------------------------> > >> > > -------------------------------------------------------------> > > 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://search.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://search.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://search.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://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
i don't use that in this test code any more this is the result from the same code (as below) with the [format]around [price]...sku=180102quantity=1price=.2f]45.00Error: Error: expected [/LINEITEMS], but found [/format]instead[/format]discnt=texte=TIMOTHY GREENFIELD-SANDERSend of test. and this is what's in the shopingcard file:(line 1)H 1.5 09/06/2001 03:27:24 000.000000 0.0010000672 F (line 2)L 180102 1 45 F F 0ART WORLD books TIMOTHY GREENFIELD-SANDERS nothing unusual.....thanks On Thu, 6 Sep 2001, Gary J. Krockover wrote:> On this line:> [showif [discnt]>0]$[format .2f][texte][/format][/showif]> > Try:> [showif [discnt]!]$[format .2f][texte][/format][/showif]> > Since it seems that [discnt] is not carrying a value, it wouldn't be greater> than zero and I would guess that may be a break in your code, or at least> something to look into. Also, per your test below, the value of [texte] is> OLIVIER CHRISTINAT. Trying to format that with .2f, could that be a issue?> > GK> > > ----- Original Message -----> From: Kalin Mintchev > To: WebCatalog Talk > Sent: Thursday, September 06, 2001 1:35 AM> Subject: Re: [format] problem> > > >> >> > this is what i get:> >> > sku=18020X> > quantity=1> > price=50.00> > discnt=> > texte=OLIVIER CHRISTINAT> > end of test.> >> >> > note -> price is not formated, that's how it's entered in the db. the db> > is maintained remotely from the customer. that should not affect the> > [format] anyway...> >> > the [format] tag works fine on the same page but out of the> > [lineitems] context.... i assume that the info from the shoppingcart file> > is messing it up but so far i can not find any problems there....> >> > sorry about the late reply. i was moved to another more urgent project> > for a day...> >> > thanks> >> >> >> > On Wed, 5 Sep 2001, Kenneth Grome wrote:> >> > > >ok i checked my code dosens of times then i did a test shopcart with> only> > > >this in it:> > > >> > > >> > > >[lineitems]> > > >> > > >[sku]> > > >
> > > >$[format .2f][math][quantity]*[price][/math][/format]> > > >
> > > >[showif [discnt]>0]$[format .2f][texte][/format][/showif]> > > >[showif [discnt]=]no disc.[/showif]> > > >
> > > >> > > >[/lineItems]> > >> > >> > >> > > Put this in a new *blank* .tpl file, then run your test again, then> > > post your results:> > >> > > [lineitems]> > > sku=[sku]
> > > quantity=[quantity]
> > > price=[price]
> > > discnt=[discnt]
> > > texte=[texte]
> > > end of test.> > > [/lineItems]> > >> > > ----------------------------------------------------> > > Kenneth Grome & Associates> > > web: http://kengrome.com> > > email: owner@kengrome.com> > > mobile: +63 917 254-1494> > > office: +63 32 262-8164> > > ----------------------------------------------------> > >> > > -------------------------------------------------------------> > > 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://search.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://search.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://search.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://search.smithmicro.com/
Kalin Mintchev
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:
WCS Newbie question (1997)
Some Questions (1997)
[WebDNA] help with [ReturnRaw] - why is it killing the parse of the [include] file? (2009)
[WebDNA] php/mySQL version of WebDNA Speed Test? (2009)
update on wn searching (1997)
Re:[ShowIf] and empty fields (1997)
SSL, WebSTAR, WebCatalog (1998)
sendmail Q (2001)
aol (2000)
Time to opensource? was [SMSI] WebDNA is too good to (2006)
Configuring E-mail (1997)
default value from Lookup (was Grant, please help me) (1997)
WebCat/PDF Integration Time Est (2000)
Interfacing WebMerchant to www.fedex.com (1997)
WebDNA Feature Request (2006)
[WebDNA] Anyone have a unix epoch converter? (2016)
Hello??? (1997)
Re:Signal Raised (1997)
WebServer (2000)
WebDNA for Dummies (2004)