Re: Counting LineItems

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 32405
interpreted = N
texte = thanks - that makes sense..--- You wrote: [addlineitem cart=[cart]&sku=2168]quantity=1&price=[lookup db=discount.db&lookInField=[quant]&value=[header40]&returnField=discamnt¬Found=0][/addlineitem] --- end of quote ---Still can't get the [addlineitem] to fire... That is to actually display a new lineitem in the CARThere is what I have.....[addlineitem cart=[cart]&sku=2168&db=products.db]quantity=1&price=[lookup db=discount.db&lookInField=[quant]&value=[header40]&returnField=discamnt¬Found=0][/addlineitem] When I put it up top of the template before the [SetHeader] and [Lineitems] contexts get Error:you are not allowed to change the priceWhen I put it below [Lineitems]... I breaks the page and not tables below the sku, desc, price, extension show...here is my code (dept of redundancy dept.) Invoice [include file=Fresh_Header.inc][orderfile cart=[cart]][SetHeader cart=[cart]]shipVia=[url][__shipVia][/url]&CartIPAddress=[ipAddress][/SetHeader][lineitems] [SetLineItem cart=[cart]&index=[lineindex]]quantity=[interpret][quantity[lineindex]][/interpret]&textA=[url][lookup db=products.db&lookinfield=sku&value=[url][sku][/url]&returnfield=CDTitle][/url]&textB=[url][lookup db=products.db&lookinfield=sku&value=[url][sku][/url]&returnfield=Type][/url]&textC=[url][lookup db=products.db&lookinfield=sku&value=[url][sku][/url]&returnfield=Tag Line][/url][/SetLineItem] [/lineitems]header40=[header40]

Final Invoice

[ Change Quantities or Shipping | Shop Some More ]

Your Final Invoice Contains the Following Items

Your Order Number is #[cart]

[lineItems] [/lineItems][addlineitem cart=[cart]&sku=2168&db=products.db]quantity=1&price=[lookup db=discount.db&lookInField=[quant]&value=[header40]&returnField=discamnt¬Found=0][/addlineitem]
Item #QtyProduct #Product NamePriceExtension
[lineIndex][quantity][sku][textA] [textB] [textC]$[price]$[format .2f][math][quantity]*[price][/math][/format]
Subtotal$[subTotal]
[shipVia] Shipping & Handling$[shippingTotal]
Grand Total$[grandTotal]

Please enter the following information so that we may process your order.

[include file=InvoiceInfo.inc]

[/orderfile] ------------------------------------------------------------- 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:

    
  1. Re: Counting LineItems (chas@valley.net (chas) 2000)
  2. Re: Counting LineItems (John Butler 2000)
  3. Re: Counting LineItems (chas@valley.net (chas) 2000)
  4. Re: Counting LineItems (John Butler 2000)
  5. Re: Counting LineItems (chas@valley.net (chas) 2000)
  6. Re: Counting LineItems (John Butler 2000)
  7. Re: Counting LineItems (Kenneth Grome 2000)
  8. Re: Counting LineItems (chas@valley.net (chas) 2000)
  9. Re: Counting LineItems (John Peacock 2000)
  10. Re: Counting LineItems (chas@valley.net (chas) 2000)
  11. Re: Counting LineItems (chas@valley.net (chas) 2000)
  12. Re: Counting LineItems (kalin@el.net 2000)
  13. Re: Counting LineItems (kalin@el.net 2000)
  14. Re: Counting LineItems (Kenneth Grome 2000)
  15. Re: Counting LineItems (kalin@el.net 2000)
  16. Re: Counting LineItems (kalin@el.net 2000)
  17. Re: Counting LineItems (John Butler 2000)
  18. Re: Counting LineItems (John Peacock 2000)
  19. Re: Counting LineItems (chas@valley.net (chas) 2000)
  20. Re: Counting LineItems (John Butler 2000)
  21. Re: Counting LineItems (John Butler 2000)
  22. Re: Counting LineItems (John Butler 2000)
  23. Re: Counting LineItems (John Peacock 2000)
  24. Re: Counting LineItems (chas@valley.net (chas) 2000)
  25. Re: Counting LineItems (John Butler 2000)
  26. Re: Counting LineItems (chas@valley.net (chas) 2000)
  27. Re: Counting LineItems (Brian Boegershausen 2000)
  28. Counting LineItems (chas@valley.net (chas) 2000)
thanks - that makes sense..--- You wrote: [addlineitem cart=[cart]&sku=2168]quantity=1&price=[lookup db=discount.db&lookInField=[quant]&value=[header40]&returnField=discamnt¬Found=0][/addlineitem] --- end of quote ---Still can't get the [addlineitem] to fire... That is to actually display a new lineitem in the CARThere is what I have.....[addlineitem cart=[cart]&sku=2168&db=products.db]quantity=1&price=[lookup db=discount.db&lookInField=[quant]&value=[header40]&returnField=discamnt¬Found=0][/addlineitem] When I put it up top of the template before the [setheader] and [lineitems] contexts get Error:you are not allowed to change the priceWhen I put it below [lineitems]... I breaks the page and not tables below the sku, desc, price, extension show...here is my code (dept of redundancy dept.) Invoice [include file=Fresh_Header.inc][orderfile cart=[cart]][cart]&sku=2168&db=products.db]quantity=1&price=[lookup db=discount.db&lookInField=[quant]&value=[header40]&returnField=discamnt¬Found=0][/addlineitem]>[SetHeader cart=[cart]]shipVia=[url][__shipVia][/url]&CartIPAddress=[ipaddress][/SetHeader][lineitems] [SetLineItem cart=[cart]&index=[lineindex]]quantity=[interpret][quantity[lineindex]][/interpret]&textA=[url][lookup db=products.db&lookinfield=sku&value=[url][sku][/url]&returnfield=CDTitle][/url]&textB=[url][lookup db=products.db&lookinfield=sku&value=[url][sku][/url]&returnfield=Type][/url]&textC=[url][lookup db=products.db&lookinfield=sku&value=[url][sku][/url]&returnfield=Tag Line][/url][/SetLineItem] [/lineitems]header40=[header40]

Final Invoice

[ [cart]>Change Quantities or Shipping | [cart]>Shop Some More ]

Your Final Invoice Contains the Following Items

Your Order Number is #[cart]

[cart]> [lineitems] [/lineItems][addlineitem cart=[cart]&sku=2168&db=products.db]quantity=1&price=[lookup db=discount.db&lookInField=[quant]&value=[header40]&returnField=discamnt¬Found=0][/addlineitem]
Item #QtyProduct #Product NamePriceExtension
[lineIndex][quantity][sku][textA] [textB] [textC]$[price]$[format .2f][math][quantity]*[price][/math][/format]
Subtotal$[subTotal]
[shipVia] Shipping & Handling$[shippingTotal]
Grand Total$[grandTotal]

Please enter the following information so that we may process your order.

[include file=InvoiceInfo.inc]

[/orderfile] ------------------------------------------------------------- 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/ chas@valley.net (chas)

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:

Assigning carts (1998) multi-paragraph fields (1997) 'does not contain' operator needed ... (1997) WebCatalog Features (1997) Product display (2000) Not really WebCat (1997) WebDNA update from Smith Micro (2002) Here's how to kill a Butler Database. (1997) carriage returns in data (1997) Bug? (1997) Snake Bites (1997) Shopping Cart Best Practices (2006) [Semi-OT] Eaaaaaasy OSX FTP (2003) More questions about serial number dishing (1997) RE: New WebCatalog Version !!! (1997) Multiple fields on 1 input (1997) [WebDNA] Data.gov & WebDNA (2010) [OT] SQL and Crackers (2000) Need relative path explanation (1997) Country & Ship-to address & other fields ? (1997)