Re: Problem 2 of 2 (was: Shipping Confusion)

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 33733
interpreted = N
texte = *What* exactly is not working? I can be most helpful to debug one small thing at a time (as that is the time I have for this). Isolate the issue and if you can't figure out why that one small thing is not acting the way you think it should, then ask me that. Not why is this whole page of code not working. :-) Are we sure [NumLineItems] returns the # we think it will? Put this- NumLineItems=[NumLineItems] in the template and see if it returns the number of lineitems in the cart.And yes remove all carriage returns from any context. I.e. [setheader] and [SetLineItem] and [lookup] ... should NOT be broken into 2 or more lines. Email is not great for showing code...-JohnChristopher Mackay wrote:> Hi again (getting sick of me yet? :) > > Thanks for your help so far, John. It's starting to feel as though > the end's in sight! Here's what I've got on my invoice.tpl page > (still not working): > > [SetHeader > cart=[cart]]shipVia=[url][__shipVia][/url]&shipToState=[url][__shipToState][/url]&CartIPAddress=[ipAddress][/SetHeader] > > [lineitems] > [SetLineItem > cart=[cart]&index=[lineindex]]quantity=[interpret][quantity[lineindex]][/interpret]&textA=[url][lookup > db=tantramar_publishing.db&lookinfield=sku&value=[url][sku][/url]&returnfield=title][/url][/SetLineItem] > [showif [url][itemType][/url]=poster] > [text show=F]needsTube=yes[/text] > [/showif] > [/lineitems] > > [showif [url][needsTube][/url]=yes] > [SetLineItem cart=[cart]&index=[math > show=T][NumLineItems]+1[/math]]quantity=1&price=0&UnitShipCost=5[/SetLineItem] > [/showif] > > I did add the itemType field, with a value of poster for each > record in the tantramar_publishing.db. > > I also changed the price to 0 from 5, and added UnitShipCost of 5. It > didn't work before I made this change, either, though. Could the line > breaks be the problem? > -- > > Regards, > > Christopher Mackay, Multimedia Developer > Tantramar Interactive, http://www.tantramar.com/ > 506/364-1097 cell: 364-7659 fax: 536-2409 > > ------------------------------------------------------------- > 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:

    
  1. Re: Problem 2 of 2 (was: Shipping Confusion) (Christopher Mackay 2000)
  2. Re: Problem 2 of 2 (was: Shipping Confusion) (Christopher Mackay 2000)
  3. Re: Problem 2 of 2 (was: Shipping Confusion) (Rob Marquardt 2000)
  4. Re: Problem 2 of 2 (was: Shipping Confusion) (John Peacock 2000)
  5. Re: Problem 2 of 2 (was: Shipping Confusion) (John Butler 2000)
  6. Re: Problem 2 of 2 (was: Shipping Confusion) (Christopher Mackay 2000)
  7. Re: Problem 2 of 2 (was: Shipping Confusion) (John Peacock 2000)
  8. Re: Problem 2 of 2 (was: Shipping Confusion) (Christopher Mackay 2000)
  9. Re: Problem 2 of 2 (was: Shipping Confusion) (John Butler 2000)
  10. Problem 2 of 2 (was: Shipping Confusion) (Christopher Mackay 2000)
*What* exactly is not working? I can be most helpful to debug one small thing at a time (as that is the time I have for this). Isolate the issue and if you can't figure out why that one small thing is not acting the way you think it should, then ask me that. Not why is this whole page of code not working. :-) Are we sure [NumLineItems] returns the # we think it will? Put this- NumLineItems=[NumLineItems] in the template and see if it returns the number of lineitems in the cart.And yes remove all carriage returns from any context. I.e. [setheader] and [setlineitem] and [lookup] ... should NOT be broken into 2 or more lines. Email is not great for showing code...-JohnChristopher Mackay wrote:> Hi again (getting sick of me yet? :) > > Thanks for your help so far, John. It's starting to feel as though > the end's in sight! Here's what I've got on my invoice.tpl page > (still not working): > > [SetHeader > cart=[cart]]shipVia=[url][__shipVia][/url]&shipToState=[url][__shipToState][/url]&CartIPAddress=[ipaddress][/SetHeader] > > [lineitems] > [SetLineItem > cart=[cart]&index=[lineindex]]quantity=[interpret][quantity[lineindex]][/interpret]&textA=[url][lookup > db=tantramar_publishing.db&lookinfield=sku&value=[url][sku][/url]&returnfield=title][/url][/SetLineItem] > [showif [url][itemType][/url]=poster] > [text show=F]needsTube=yes[/text] > [/showif] > [/lineitems] > > [showif [url][needsTube][/url]=yes] > [SetLineItem cart=[cart]&index=[math > show=T][NumLineItems]+1[/math]]quantity=1&price=0&UnitShipCost=5[/SetLineItem] > [/showif] > > I did add the itemType field, with a value of poster for each > record in the tantramar_publishing.db. > > I also changed the price to 0 from 5, and added UnitShipCost of 5. It > didn't work before I made this change, either, though. Could the line > breaks be the problem? > -- > > Regards, > > Christopher Mackay, Multimedia Developer > Tantramar Interactive, http://www.tantramar.com/ > 506/364-1097 cell: 364-7659 fax: 536-2409 > > ------------------------------------------------------------- > 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/ John Butler

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:

same product in cart (1997) WC2b12: Yes, Formulas.db is for real (1997) WebCatalog can't find database (1997) StoreBuilder Shopping Cart (2000) (1997) Setting up shop (1997) Sku numbers (1997) popups, netscape vs explorer (1997) faxing orders (2000) PCS Frames (1997) Progress !! WAS: Trouble with formula.db (1997) RE: completed orders database (1997) Emailer setup (1997) variable value locked when passed to include (2001) If Empty ? (1997) Credit card types (1997) Date Formats (1997) [BULK] [WebDNA] Candidate versions release (2010) info (1997) [WebDNA] Upgrade from OS 10.7.5 WebDNA 6.2 to Mavericks (2014)