Re: Renaming TextA
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 19827
interpreted = N
texte = >Sandy and Bob - thanks for your help. I'm getting close but still>having problems.>>I have put the error checking and am using the addlineitem context>instead of the add command. This is what is now in my page that shows>the shopping cart (ShoppingCart.tml):If you are using the same page to remove an item, you are then adding it again with the [addlineitem]. You need a 2nd shoppingcart.tpl that doesn't have the [addlineitem] context. You need it also to change quantities, etc. The below has to go to a different page than the one with the [addlineitem]. ( or you could get tricky with [showif]s, I suppose.)
RemoveItemGood luck!Sandy>>[ShowIf [textB]=]>
Please fill in the Logo field on the previous page
[/showif]>[HideIf [textB]=]>[addlineitem>cart=[cart]&sku=[sku]&db=wmproducts.db]&textB=[textB][/addlineitem]>>>This works, but now I have I can't remove an item. The remove code (on>the same page is:>>
HREF=ShoppingCart.tpl?command=remove&db=wmproducts.db&index=[lineIndex]&c>art=[cart]&sku=[sku]>Remove>Item>>The item is not removed and the TextB information (logo) is lost and now>appears as [textB]. >>It appears to me that because the addlineitems context is on this same>page, when the remove command executes the item is readded to the cart>but the input for textB is lost. Any suggestions?>>Dick Kirsner>Competitive Edge, Inc.>
Associated Messages, from the most recent to the oldest:
>Sandy and Bob - thanks for your help. I'm getting close but still>having problems.>>I have put the error checking and am using the addlineitem context>instead of the add command. This is what is now in my page that shows>the shopping cart (ShoppingCart.tml):If you are using the same page to remove an item, you are then adding it again with the
[addlineitem]. You need a 2nd shoppingcart.tpl that doesn't have the
[addlineitem] context. You need it also to change quantities, etc. The below has to go to a different page than the one with the
[addlineitem]. ( or you could get tricky with
[showif]s, I suppose.)
[cart]&sku=[sku]>RemoveItemGood luck!Sandy>>[ShowIf [textB]=]>
Please fill in the Logo field on the previous page
[/showif]>[HideIf [textB]=]>[addlineitem>cart=
[cart]&sku=[sku]&db=wmproducts.db]&textB=[textB][/addlineitem]>>>This works, but now I have I can't remove an item. The remove code (on>the same page is:>>
HREF=ShoppingCart.tpl?command=remove&db=wmproducts.db&index=[lineIndex]&c>art=[cart]&sku=[sku]>Remove>Item>>The item is not removed and the TextB information (logo) is lost and now>appears as [textB]. >>It appears to me that because the addlineitems context is on this same>page, when the remove command executes the item is readded to the cart>but the input for textB is lost. Any suggestions?>>Dick Kirsner>Competitive Edge, Inc.>
Sandra L. Pitner
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:
Separate SSL Server (1997)
international time (1997)
WebCat2 - Getting to the browser's username/password data (1997)
Webstar 1.3.1 PPC (1997)
Questions about maximum (1999)
encripted storage (1998)
https validation (2001)
WebCat2b13 Command Reference Doc error (1997)
how to check for no value while using [URL] to prevent cr (1999)
Programmer/Analyst job vacancy (2003)
Lookup command (1998)
Web Catalog 2 demo (1997)
WebCat2b12plugin - [search] is broken ... not! (1997)
Severe Slowness (2005)
Emailer.Out (1998)
I try hard to think positively (1998)
Can't Update records (1997)
ShowNext Command (1997)
My own list archives (2001)
Determining Method (2000)