Alternative Film Posters
promo

[raw] $promodiscount=0; function getpromodiscount(){return $promodiscount;} function checkpromocode($ycpcode) { $ycprefix= getycprefix(); //$ycpcodeupper=$ycpcode.toUpperCase(); jQuery.post('https://www.artcircusbooks.co.uk/dbacbpromo.php' , { phpaction:'checkpromocode',ycpcode:$ycpcode,ycprefix:$ycprefix}, function (data, textStatus) { $promodiscount=jQuery( data ).find( 'promodiscount' ).text(); showpromodiscount(); }); } function setnumberofcopies() { showcheckoutform(); } function getcoverprice(){return 30.00;} function getycprefix(){return 'JA-AFP-814';} function showpromodiscount(){showcheckoutform();} function gettotalcost(){ $noofcopies=document.getElementById('noofcopies').value; return $noofcopies* getcoverprice();} function lookupdiscount($copies) { if(isNaN($copies)) return 0; switch($copies) { case… Continue reading Alternative Film Posters
promo

Published
Categorized as Promo

Alternative Film Posters 1

[raw] function getcoverprice(){return 30.00;} function getycprefix(){return 'JA-AFP-814';} function showpromodiscount(){showcheckoutform();} function gettotalcost(){ $noofcopies=document.getElementById('noofcopies').value; return $noofcopies* getcoverprice();} function lookupdiscount($copies) { if(isNaN($copies)) return 0; switch($copies) { case 0:case 1: return 0;break; case 2: return 10;break; case 3: return 15;break; case 4: return 20;break; default: return 25;break; }} function showcheckoutform(){ $noofcopies=parseInt(document.getElementById('noofcopies').value); $volumediscount=lookupdiscount($noofcopies); $promodiscount=getpromodiscount(); $discountpercent=Math.max($volumediscount, $promodiscount); $totalcost=gettotalcost(); $discountamount=$discountpercent*$totalcost/100; document.getElementById('totaldiscount').innerHTML='- '+$discountamount.toFixed(2);… Continue reading Alternative Film Posters 1

Published
Categorized as Promo