Re: SetLineItem LineItem where out thou?

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34896
interpreted = N
texte = Here's just one thing to try-Use a [setlineitem] context with syntax exactly as you find in the docs and put it somewhere *outside* of a [lineitems] loop. In your code all the [setlineitem] contexts are within the confines of [lineitems] contexts (loops), which means that if you do not yet have any lineitems then *none* of the code within the lineitmes loop will execute at all. Remeber that [lineitems] is a loop, executed once for each currently existing lineitem..-JohnDarrell O'Nan wrote:> As can be seen below I have tried a few different methods. > > Setheader was pretty straight forward: > > [setheader cart=[cart]]header4=SD City[/setheader] > > works just fine. I open the cart and there it is. > > SetLineItem on the other hand I don't see appear anywhere. Here is what > I've tried. > > [lineitems] > [setlineitem cart=[cart]]textB=SD City[/SetLineItem] > [setlineitem cart=[cart]]&index=1&textA=SD City[/SetLineItem] > [/lineitems] > > [!]Set the TextA-TextE fields[/!] > > [text]shopcart=[cart][/text] > [lineitems] > [SetLineItem cart=[cart]&index=[lineitemNumber]]textD=SD > City[/SetLineItem] > [setlineitem cart=[shopcart]]textA=SD City[/SetLineItem] > [search db=admin/carts.db&neCARTdatarq=find_all&rank=off][founditems] > [hideif [interpret][text[CART]][/interpret]=] > [search > db=admin/related.db&eqR_IDdatarq=[interpret][text[CART]][/interpret]][founditems] > > [setlineitem > db=admin/categories.db&index=[lineindex]&cart=[shopcart]]text[CART]=[url][R_NAME][/url][/setlineitem] > > [/founditems][/search] > [/hideif] > [/founditems][/search] > [/lineitems] > > A few Questions: > Do I have to address a db when setting the LineItem? I only want it to > show in the cart not in a database. > > If you will notice, the person who wrote this stuff changes cart to > shopcart in the first line above: [text]shopcart=[cart][/text] > > Does this mean that [SetLineItem cart=[cart] is no longer the way to > address the cart? if it is I even addressed this issue with a > SetLineItem A=SD City after that. > > Will the LineItems A-E end up in the WebMerchant LineItems folder after > WebMerchant Processes the orders? > > Thanks For The Help > > Darrell > webmaster4@home.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:

    
  1. Re: SetLineItem LineItem where out thou? (John Butler 2000)
  2. SetLineItem LineItem where out thou? (Darrell O'Nan 2000)
Here's just one thing to try-Use a [setlineitem] context with syntax exactly as you find in the docs and put it somewhere *outside* of a [lineitems] loop. In your code all the [setlineitem] contexts are within the confines of [lineitems] contexts (loops), which means that if you do not yet have any lineitems then *none* of the code within the lineitmes loop will execute at all. Remeber that [lineitems] is a loop, executed once for each currently existing lineitem..-JohnDarrell O'Nan wrote:> As can be seen below I have tried a few different methods. > > Setheader was pretty straight forward: > > [setheader cart=[cart]]header4=SD City[/setheader] > > works just fine. I open the cart and there it is. > > SetLineItem on the other hand I don't see appear anywhere. Here is what > I've tried. > > [lineitems] > [setlineitem cart=[cart]]textB=SD City[/SetLineItem] > [setlineitem cart=[cart]]&index=1&textA=SD City[/SetLineItem] > [/lineitems] > > [!]Set the TextA-TextE fields[/!] > > [text]shopcart=[cart][/text] > [lineitems] > [SetLineItem cart=[cart]&index=[lineitemNumber]]textD=SD > City[/SetLineItem] > [setlineitem cart=[shopcart]]textA=SD City[/SetLineItem] > [search db=admin/carts.db&neCARTdatarq=find_all&rank=off][founditems] > [hideif [interpret][text[cart]][/interpret]=] > [search > db=admin/related.db&eqR_IDdatarq=[interpret][text[cart]][/interpret]][founditems] > > [setlineitem > db=admin/categories.db&index=[lineindex]&cart=[shopcart]]text[cart]=[url][R_NAME][/url][/setlineitem] > > [/founditems][/search] > [/hideif] > [/founditems][/search] > [/lineitems] > > A few Questions: > Do I have to address a db when setting the LineItem? I only want it to > show in the cart not in a database. > > If you will notice, the person who wrote this stuff changes cart to > shopcart in the first line above: [text]shopcart=[cart][/text] > > Does this mean that [SetLineItem cart=[cart] is no longer the way to > address the cart? if it is I even addressed this issue with a > SetLineItem A=SD City after that. > > Will the LineItems A-E end up in the WebMerchant LineItems folder after > WebMerchant Processes the orders? > > Thanks For The Help > > Darrell > webmaster4@home.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/ 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:

[WebDNA] Require no empty field (2010) Individual Tax on Items (1998) WebSTAR and WebSTAR/SSL with WebCatalog plugins (1998) Separate SSL Server (1997) Re:Emailer setup (1997) FW: WebDNA-Talk searchable? (1997) Sorry I didn't pay attention-but ??? (1997) Denying access by IP address (2000) List Address Changed! (1998) AOL Sux and Other Thoughts (2000) problems with WebCat-Plugin () 2.0Beta Command Ref (can't find this instruction) (1997) Mac 2.1b2 speed (1997) YACBQ.....(Yet another checkbox question) (2000) v6.x & [cart] (2004) The USArea® Network web site ... (1997) WebCatalog sales (1997) creating writefile data from a nested search (1997) 3RD POST Character limit in [Search]? (1998) Problem with empty form-variables in [search] (1998)