[ic] Javascript Updating of Configured Price with Simple Options.

interchange-users@interchange.redhat.com interchange-users@interchange.redhat.com
Tue Nov 6 12:44:00 2001


On Tue, Nov 06, 2001 at 09:52:56AM -0700, Fred Pope wrote:
> **Platform
> RH 7.2 / IC 4.8.2 / PGSQL
> 
> **Interchange Topics
> Options
> Interchange Tags
> 
> **Overview
> We have written some Javascript that allows the user to see the configured
> price of a product with multiple options. For example, if they are buying a
> car with a base price of $11,000, and adding the CD player costs $100, upon
> selecting to add the CD player on the flypage from the options dropdown,
> this will adjust the "configured" price to $11,100 without having to click
> the buy now feature to see the configured price in the cart. As the user
> selects the various options, this automatically recalculates the configured
> price. This allows the user to quickly price out different configurations.
> We are using an additional input on the form with the default value of
> [item-price], and the Javascript updates this input on the form with a
> function that we wrote called update_total.
> 
> **Desired Goals
> We need to add an attribute (..OnChange=update_total(this)..) to the select
> statement(s) that is(are) generated on the flypage for each option. We also
> need to add this input to that table at the end after it is finished looping
> through the options.
> 

You can find some relevant javascript here:
http://www.mainelobsterdirect.com/Catalog/lobsters.cgi/50000

-- 

Christopher F. Miller, Publisher                               cfm@maine.com
MaineStreet Communications, Inc           208 Portland Road, Gray, ME  04039
1.207.657.5078                                         http://www.maine.com/
Content/site management, online commerce, internet integration, Debian linux