Hi there,
I'm currently building a Wordpress site for a Music Video Production Company.
They want to implement a 'build to order' technique used at websites such as Apple.
I've managed to get some JS to calculate the price, I was just wondering if I could use FFC along with this final price.
<script type=text/javascript>
function getTotal(){
var form=document.theForm;
var inputs=form.getElementsByTagName('input');
var length=inputs.length;
var total='2000';
for(i=0;i<length-1;i++){
if(inputs[i].type=='radio'){
var checked=inputs[i].checked?1:0;
if(checked){
var value=inputs[i].value.split("~~")[0];
total-=-value;
}
}
}
document.getElementById('totalspan').innerHTML="Total price will be: £"+total
total='0';
}
</script>
Thanks.
Berian