E-Junkie Forum http://www.e-junkie.com/bb/ E-Junkie Forum RSS en-us Copyright 2012, 19.5 Degrees. All rights reserved. webmaster@e-junkie.com webmaster@e-junkie.com Tue, 11 Oct 2011 02:37:00 GMT Sat, 26 May 2012 03:38:27 GMT 681 E-JUNKIE 5 E-Junkie Forum http://www.e-junkie.com/bb/ http://www.e-junkie.com/ej/logo.gif 290 104 Post #2 http://www.e-junkie.com/bb/topic/5489/pg/0#post19075 http://www.e-junkie.com/bb/topic/5489/pg/0#post19075 Tue, 11 Oct 2011 02:37:00 GMT
<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=XXXXXX&cl=YYYYYY&ejc=2&amount=12.34" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="http://www.e-junkie.com/ej/ej_add_to_cart.gif" border="0" alt="Add to Cart"/></a>

Note that the amount specified that way for an Add to Cart button would be ADDED to the product's base price set in Seller Admin; for a Buy Now button, it would REPLACE the item's base price. This and related tips you may find helpful are documented here:
http://www.e-junkie.com/ej/help.custom.purchase-buttons.htm#custom]]>
E-junkie Discussions; E-junkieGuru
Post #1 http://www.e-junkie.com/bb/topic/5489/pg/0#post19075 http://www.e-junkie.com/bb/topic/5489/pg/0#post19075 Mon, 10 Oct 2011 14:57:47 GMT
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]]>
E-junkie Discussions; berian