Re:Item options w/ price adjustment
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 12879
interpreted = N
texte = >I have a project where catalog items may have up to five options which>change the item price. I've changed the preferences to allow price>changes in the shopping cart.>>The catalog page shows the results of an initial search. Clicking on>any item displays a detail page. The detail page includes a table which>appears and displays any item options, along with their pricing. Each>option has a radio button for selecting that particular option. I'm>getting these selections using a form layout.>>I want the shopping cart to include selected items with text for options>selected simply appended to the description, and the final price>adjusted accordingly. Options can be additions or deductions. I've>placed the text for the options into the texta, textb, ... texte fields>in the database, and created fields for the option costs.>>I want to allow the customer to place an item with any selected options>into the cart with a single click.>>Is this approach possible?Can be done, but you should probably use the [add ] context instead of theadd command -- so you basically make a showpage command go to some templatethat uses the incoming form variables to do the appropriate Add to thecart.... Not as simple as a add command, but tons more powerful andflexible....Jay Van Vark ******************************Pacific Coast Software | Commerce (WebCatalog)11770 Bernardo Plaza Court | Hosting & DesignSuite 453 | http://www.smithmicro.comSan Diego, CA 92128 ******************************619.675.1106
Associated Messages, from the most recent to the oldest:
|
- Re:Item options w/ price adjustment (Jay Van Vark 1997)
|
>I have a project where catalog items may have up to five options which>change the item price. I've changed the preferences to allow price>changes in the shopping cart.>>The catalog page shows the results of an initial search. Clicking on>any item displays a detail page. The detail page includes a table which>appears and displays any item options, along with their pricing. Each>option has a radio button for selecting that particular option. I'm>getting these selections using a form layout.>>I want the shopping cart to include selected items with text for options>selected simply appended to the description, and the final price>adjusted accordingly. Options can be additions or deductions. I've>placed the text for the options into the texta, textb, ... texte fields>in the database, and created fields for the option costs.>>I want to allow the customer to place an item with any selected options>into the cart with a single click.>>Is this approach possible?Can be done, but you should probably use the [add ] context instead of theadd command -- so you basically make a showpage command go to some templatethat uses the incoming form variables to do the appropriate Add to thecart.... Not as simple as a add command, but tons more powerful andflexible....Jay Van Vark ******************************Pacific Coast Software | Commerce (WebCatalog)11770 Bernardo Plaza Court | Hosting & DesignSuite 453 | http://www.smithmicro.comSan Diego, CA 92128 ******************************619.675.1106
Jay Van Vark
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:
can webcat determine an image's pixel dimensions? (2000)
Upgrade Pricing? (2003)
Protect (1997)
[WebDNA] Grep everything and replace with asterisks? (2010)
[listfiles] anomaly (2003)
[searchString] (1997)
Reversed words (1997)
Hiding HTML and page breaks (1997)
Shhh... (2006)
Using WebMerchant Only? (1998)
A Global Variable (1997)
synching databases on multiple servers (1997)
Close Databases Crash? (1998)
(2000)
in conversions.db crashes unix webcat (1999)
[Webcat 2]Next (1997)
Forms (1998)
Progress !! WAS: Trouble with formula.db (1997)
_ in front of field name (1998)
UPDATE PROBLEM (1997)