Re: Colors in cart
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 41289
interpreted = N
texte = Well, I can tell a few things that are wrong here.- You are sending the add command to the next page, and you are also using an addlineitem context. These both accomplish the sametask. I would remove the add command. As a rule, I always use contexts rather than commands when available. If you need todetermine what happens on your shoppincart page when accessed, change command to action or something like that. Then use[showif [action]=add]. action is not a webdna tag, so it will be treated as a simple variable, and will work with your showif todetermine what happens on that page.- Somewhere on the page, you need to specify a quantity of the product being added, as in a hidden input variable, or a text input,or you can hardcode it in the addlineitem context on the shoppincart page. The test you ran would have actually added a quantity ofthe text [quantity] since there was no variable passed.Try this code instead.... (don't forget to remove linebreaks caused by the email app)====================
========================And in your shoppincart page use this....[showif [action]=add][addlineitemcart=[cart]&sku=[sku]&db=[db]]quantity=[_quantity]&texta=[selectedsizes]&textb=[selectedcolors]&textc=[style][/addlineitem][/showif]( I wasn't sure what [style] was so I put it in textc. You can remove that part if you need. You don't need the formvariables loopUNLESS you are planning on adding multiple items with one click. If you do this you have to re-do how you name your select menusand then pull the values out in the addlineitem. for instance your select name might be