Re: Adding Items to Cart

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 49706
interpreted = N
texte = I have made one change to the form, you can see the change below in all caps...
[search db=catalog.txt&eqitemdatarq=[item]&colorsort=1&colorsdir=as] [founditems] [/founditems] [/search]
I've also come up with this on the order.html...[loop start=1&end=[numAdd]&advance=1] [formvariables name=_[index]&exact=F] [showif [name]~sku][text show=T]sku=[value][/text][/showif] [showif [name]~quantity] [hideif [value]=0][text show=T]quantity=[value][/text][/hideif] [/showif] [AddLineItem cart=[getcookie name=perfettoinc]&sku=[sku]&db=catalog.txt] quantity=[quantity] [/AddLineItem] [/formvariables] [/loop] It doesn't work =( Am I even on the right track?-----Original Message----- From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of Kimberly D. Walls Sent: Tuesday, April 22, 2003 9:37 PM To: WebDNA Talk Subject: Re: Adding Items to CartI sort of thought it may involve [loop], but I have no clue how to make this work. The link that I provided is actually the site that I'm working on. This is what I have so far:
[search db=catalog.txt&eqitemdatarq=[item]&colorsort=1&colorsdir=as] [founditems] [/founditems] [/search]
Is this right so far? Do I name the variables using the _[index]? How do I link the item's sku to the quantity ordered of that sku??I am soooo stuck on this!!! Thanks for helping me. -----Original Message----- From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of Glenn Busbin Sent: Tuesday, April 22, 2003 9:28 PM To: WebDNA Talk Subject: Re: Adding Items to Cart>Is it possible to add more than one item to the cart at the same time? > >I want it to work like this: >http://www.netsourcery.com/perfetto/products/item.html?category=Glazes% 2 >0%26%20Colorants&sku=1069 >They're passing the sku and quantity ordered of all items shown to the cart in one form. You can do that, too. When the data is sent to the shoppingcart page, just loop through the number of items passed. If the quantity ordered is greater than 0, add to cart.Glenn ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Adding Items to Cart (Gary Krockover 2003)
  2. Re: Adding Items to Cart (Kimberly D. Walls 2003)
  3. Re: Adding Items to Cart (Gary Krockover 2003)
  4. Re: Adding Items to Cart (Kimberly D. Walls 2003)
  5. Re: Adding Items to Cart (Glenn Busbin 2003)
  6. Re: Adding Items to Cart (Glenn Busbin 2003)
  7. Re: Adding Items to Cart (Kimberly D. Walls 2003)
  8. Re: Adding Items to Cart (Kimberly D. Walls 2003)
  9. Re: Adding Items to Cart (Glenn Busbin 2003)
  10. Adding Items to Cart (Kimberly D. Walls 2003)
I have made one change to the form, you can see the change below in all caps...
[search db=catalog.txt&eqitemdatarq=[item]&colorsort=1&colorsdir=as] [founditems] [/founditems] [/search]
I've also come up with this on the order.html...[loop start=1&end=[numAdd]&advance=1] [formvariables name=_[index]&exact=F] [showif [name]~sku][text show=T]sku=[value][/text][/showif] [showif [name]~quantity] [hideif [value]=0][text show=T]quantity=[value][/text][/hideif] [/showif] [AddLineItem cart=[getcookie name=perfettoinc]&sku=[sku]&db=catalog.txt] quantity=[quantity] [/AddLineItem] [/formvariables] [/loop] It doesn't work =( Am I even on the right track?-----Original Message----- From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of Kimberly D. Walls Sent: Tuesday, April 22, 2003 9:37 PM To: WebDNA Talk Subject: Re: Adding Items to CartI sort of thought it may involve [loop], but I have no clue how to make this work. The link that I provided is actually the site that I'm working on. This is what I have so far:
[search db=catalog.txt&eqitemdatarq=[item]&colorsort=1&colorsdir=as] [founditems] [/founditems] [/search]
Is this right so far? Do I name the variables using the _[index]? How do I link the item's sku to the quantity ordered of that sku??I am soooo stuck on this!!! Thanks for helping me. -----Original Message----- From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of Glenn Busbin Sent: Tuesday, April 22, 2003 9:28 PM To: WebDNA Talk Subject: Re: Adding Items to Cart>Is it possible to add more than one item to the cart at the same time? > >I want it to work like this: >http://www.netsourcery.com/perfetto/products/item.html?category=Glazes% 2 >0%26%20Colorants&sku=1069 >They're passing the sku and quantity ordered of all items shown to the cart in one form. You can do that, too. When the data is sent to the shoppingcart page, just loop through the number of items passed. If the quantity ordered is greater than 0, add to cart.Glenn ------------------------------------------------------------- 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://webdna.smithmicro.com/ Kimberly D. Walls

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:

Email Send Delay (2004) Server crash (1997) (1997) WC1.6 to WC2 date formatting -FIXED! (1997) WebCat2b12 CGI Mac - [shownext] problem (1997) [format xs] freeze (1997) Has anyone used WebCatalog with CGatePro? (2000) OT - asp snippet similar to [!][/!] (2003) PCS Frames-Default page is solution! (1997) [WebDNA] OT - some girls like guys for their WebDNA (2010) WebCat2b15MacPlugin - showing [math] (1997) Math (1997) WebCat2 Append problem (B14Macacgi) (1997) Convert characters (2002) WebCatalog can't find database (1997) WebCatalog can't find database (1997) PCS Customer submissions ? (1997) RE: [redirect] w/o showing args? (1999) & problem (1999) WebCat2final1 crashes (1997)