Re: Change Subtotal
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 36487
interpreted = N
texte = on 24.08.2000 21:26, Stephen Russo at steve@huntersolutions.com wrote:> I am using an AddLineItem on the invoice page, but it is not appearing in my> LineItems.> What am I doing wrong?> ...> > [showif [subtotal]>298][showif [subtotal]<500][AddLineItem> cart=[cart]&sku=1&db=mydbname]quantity=1[/AddlineItem][/showif][/showif]Is this mydbname without brackets again just in the mail? You shouldreally paste the origininal code if you hope to get some help...Are you in an [orderfile] context?Is the orderfile correct (if you have one)?Is the [cart] correct, or do you write to a different cart?Does a database with this name exist?Do you call it with the right path?Is there definitely a sku 1 in the database?Could this code get hidden from surrounding [showif] or [hideif]?Did you miss to close a [text] or [math] context before?Are you even editing the same template you see in the browser?Write a more structured code and add some breakpoints to see the data youare working with:
subtotal=[subtotal]
[showif [subtotal]>298] more than 298
[showif [subtotal]<500] less than 500
addline: cart=[cart], db=[mydbname]
[AddLineItem cart=[cart]&sku=1&db=[mydbname]]quantity=1[/AddlineItem] [/showif][/showif]
Peter-------------------------------------------------------------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:
on 24.08.2000 21:26, Stephen Russo at steve@huntersolutions.com wrote:> I am using an AddLineItem on the invoice page, but it is not appearing in my> LineItems.> What am I doing wrong?> ...> > [showif [subtotal]>298][showif [subtotal]<500][AddLineItem> cart=[cart]&sku=1&db=mydbname]quantity=1[/AddlineItem][/showif][/showif]Is this mydbname without brackets again just in the mail? You shouldreally paste the origininal code if you hope to get some help...Are you in an [orderfile] context?Is the orderfile correct (if you have one)?Is the [cart] correct, or do you write to a different cart?Does a database with this name exist?Do you call it with the right path?Is there definitely a sku 1 in the database?Could this code get hidden from surrounding [showif] or [hideif]?Did you miss to close a [text] or [math] context before?Are you even editing the same template you see in the browser?Write a more structured code and add some breakpoints to see the data youare working with:
subtotal=[subtotal]
[showif [subtotal]>298] more than 298
[showif [subtotal]<500] less than 500
addline: cart=[cart], db=[mydbname]
[AddLineItem cart=[cart]&sku=1&db=[mydbname]]quantity=1[/AddlineItem] [/showif][/showif]
Peter-------------------------------------------------------------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/
Peter Ostry
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:
Shipping cost out of synch (1998)
[GROUPS] followup (1997)
WebCatalog for Postcards ? (1997)
Help formatting search results w/ table (1997)
WebCat2b13MacPlugin - nested [xxx] contexts (1997)
WCS Newbie question (1997)
Search wbrk (repost) (2001)
ListFiles Bug (1998)
Generating Report Totals (1997)
Add more fields to an existent data base (1997)
[OT] Multi - Language (2007)
$flushdatabases question ... (1998)
[WebDNA] WebDNA code displaying on page (2012)
Math, Multiple Equasions and Show/Hide (1998)
forming a SKU (1999)
Smart caching problems with 2.1b3? (1997)
Prevent multiple appends with Reload Button (1997)
showif and cart (1997)
It just Does't add up!!! (1997)
Trouble with formula.db (1997)