Using discount plugin in reverse for paypal fee

cornbread

No avatar

2006-10-17 17:24

Hey anyone know how I might go about using the discount plugin to be an additional charge plugin to have it add in the .0293% that paypal charges us?

TIA

idaryl

Avatar: idaryl

2006-10-18 23:26

Why dont you add that percentage to the original amount? just an idea of course -- here is a calculator for that purpose:

add this script to a new page in the head:
<script>
<!--

function stripBad(string) {
for (var i=0, output='', valid="eE+/*-0123456789.()"; i<string.length; i++)
if (valid.indexOf(string.charAt(i)) != -1)
output += string.charAt(i)
return output;
}

function calc1(form) {
a = stripBad(form.a.value) / 100;
b = a * stripBad(form.b.value);
form.total1.value = b;
}

// End -->
</script>

add this to the body of the page:

<form name="form1">
<table border="1" cellpadding="4" cellspacing="1">
<tr>
<td align="center">What is
<input type="text" name="a" size="5">
% of<br>
<input type="text" name="b" size="25">
?<br>
<input type="button" value="Calculate" onClick="calc1(this.form)"></td>
<td align="center">Answer:<br>
<input type="text" name="total1" size="25" maxlength="40" READONLY></td>
</tr>
</table>
</form>


This should give you a really good idea of percentages per item cost - if anyone wants to - add another round to 0 function

might work? not the best answer but it could help ---

idaryl

Avatar: idaryl

2006-10-19 04:21

Did that help?

Back to top
about us | contact