transferring values
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 16115
interpreted = N
texte = So. I have the Detail page setup with 2 different popup menus for Size and Color.How do I transfer the chosen values to my ShoppingCart.tmpl?The SizePopup.inc is an Included file that looks like this:
The ColorsPopup.inc is an Included file that looks like this:
------And then the Administrator enters something like this:
White Black GarnetHere's a row from the CATALOG.txtSKU Date Title Description Price Taxable CanEmail UnitShipCost Category HasPhoto PhotoName NeedsSize needsColor colors16 Nike Therma F.I.T. Pullover Takes the edge off cool days and nights. 100% polyester fleece with half-zipper and rib inset. Features feather design and embroidered FSU logo. Available in garnet with black. 100.00 T Outer Wear T 5-32.jpg T T White Black GarnetThese are the tags I have in my DETAIL.TMPL - this seems to work ok[showif [needsSize]=T][Include SizePopup.inc] [/showif][showif [needsColor]=T][Include ColorsPopup.inc] [/showif]There are the tags I have in my SHOPPINGCART.TMPL[lineItems][sku] [title] [sizeType] <--HERE[colors] <--HERE$[price] $[format .2f][math][quantity]*[price][/math][/format] $[unitShipCost] Remove this Item [/lineItems]I got these 2 different Option ideas from searching the list archives and reading Grant's posts on the subject of product sizeSo apparently both ways1) having a set Include file with preset Options - like the size options2) having the administrator input the tags manuallywill work.NOTE: Both Popup menus show up in my Detail Page. But once I select the options, How do I get those values into the ShoppingCart.tmpl?Sue Ann
Associated Messages, from the most recent to the oldest:
So. I have the Detail page setup with 2 different popup menus for Size and Color.How do I transfer the chosen values to my ShoppingCart.tmpl?The SizePopup.inc is an Included file that looks like this:The ColorsPopup.inc is an Included file that looks like this:------And then the Administrator enters something like this: White Black GarnetHere's a row from the CATALOG.txtSKU Date Title Description Price Taxable CanEmail UnitShipCost Category HasPhoto PhotoName NeedsSize needsColor colors16 Nike Therma F.I.T. Pullover Takes the edge off cool days and nights. 100% polyester fleece with half-zipper and rib inset. Features feather design and embroidered FSU logo. Available in garnet with black. 100.00 T Outer Wear T 5-32.jpg T T White Black GarnetThese are the tags I have in my DETAIL.TMPL - this seems to work ok[showif [needsSize]=T][Include SizePopup.inc] [/showif][showif [needsColor]=T][Include ColorsPopup.inc] [/showif]There are the tags I have in my SHOPPINGCART.TMPL[lineitems] [sku] [title] [sizeType] <--HERE[colors] <--HERE$[price] $[format .2f][math] [quantity]*[price][/math][/format] $[unitShipCost] [url] [sku][/url]&cart=[cart]>Remove this Item [/lineItems]I got these 2 different Option ideas from searching the list archives and reading Grant's posts on the subject of product sizeSo apparently both ways1) having a set Include file with preset Options - like the size options2) having the administrator input the tags manuallywill work.NOTE: Both Popup menus show up in my Detail Page. But once I select the options, How do I get those values into the ShoppingCart.tmpl?Sue Ann
Sue Ann Sanders
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:
LOG IN LOG OUT (1997)
carriage returns in data (1997)
Calendar (1997)
Country & Ship-to address & other fields ? (1997)
Date format problems (1997)
Thanks Grant (1997)
WebCat & WebTen (1997)
includes and cart numbers (1997)
slide show (2002)
WebTen and WebCat (1997)
AW: AW: Credit card processing - UK (1997)
RE: 2nd WebCatalog2 Feature Request (1996)
Help! WebCat2 bug (1997)
syntax question, not in online refernce (1997)
WebCat b13 CGI -shownext- (1997)
Unable to view next 101-200 (1997)
WebCat, The Trend, & Consolidating... (1997)
Moving files from one server to another... (2001)
Subtotal Taxabletotal Grandtotal **CART** (2005)
Re(2): [WebDNA] mac os for wc 6.0 (2008)