Share via E-Mail
Share on Twitter
Share on Facebook
E-junkie Blog
E-junkie FaceBook Page
E-junkie @ Twitter

E-junkie Ecommerce Forums » E-junkie Discussions

Tag Cloud for this topic:

Custom Price?



berian
member
Posts: 1


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


#
POSTED ON: October 10, 2011 @ 07:57 GMT -7
MODIFIED ON: October 10, 2011 @ 07:58 GMT -7




E-junkieGuru
E-Junkie Crew
Posts: 4399


You can use the &amount= URL parameter to append an arbitrary price to the Add to Cart button's href= or action= URL, like so:

<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


#
POSTED ON: October 10, 2011 @ 19:37 GMT -7


You must be logged in to make a post. Please click here to login.

30 Day Money Back Guarantee
PayPal Certified Integration
Google Checkout Certified Integration
Slam the Online Scam