Posted by Viz on 09/28/50 11:40
I own a computer business and I need some help with my online computer
configurator.
I have it setup to where a customer can configure their computer and click
"update price" and it will show a new update price.
What I want to do now, is take that updated price and pass along to a
confirmation page. Once the customer proceeds from the confirmation page to
the payment page I want that variable to passed along again as a hidden
variable.
Does that make sense to anyone?
Here is the script that spits out the updated price on configurator page:
Any help would be appreciated.
<script language="JavaScript"><!--
function sum(objRef) {
var result = 439.99;
result += (objRef.office_case.value - 0);
result += (objRef.office_processor.value - 0);
result += (objRef.office_memory.value - 0);
result += (objRef.office_HD.value - 0);
result += (objRef.office_Second_HD.value - 0);
result += (objRef.office_OD.value - 0);
result += (objRef.office_second_OD.value - 0);
result += (objRef.office_Video.value - 0);
result += (objRef.office_OS.value - 0);
result += (objRef.office_keyboard.value - 0);
result += (objRef.office_Monitor.value - 0);
result += (objRef.office_printer.value - 0);
result += (objRef.office_multimedia.value - 0);
result += (objRef.office_Networking.value - 0);
result += (objRef.office_Networking2.value - 0);
result += (objRef.office_warranty.value - 0);
result += (objRef.Shipping_Method.value -
0);document.getElementById("amount").innerHTML = result;
}
//--></script>
<table border=0>
<tr>
<td><b>Updated Price:</b> $</td>
<td><div id="amount"></div></td>
</tr>
Navigation:
[Reply to this message]
|