Hi
Paypal has fees when you want to sell thru them. Can someone please help me put a 2.5% surcharge on the total so that the buyers will pay for the fees?
Please help me, I need to do this urgently.
Hi
Paypal has fees when you want to sell thru them. Can someone please help me put a 2.5% surcharge on the total so that the buyers will pay for the fees?
Please help me, I need to do this urgently.
Hi Ruby,
Here is a method you can use to accomplish this:
Thank you Thank you Thank you Thank you.
Just two more questions, Is it possible to make it so users cannot type in the surcharge field. I tried 200 and it was added to the Total with the surcharge counting it. Or can I make it hidden? (as long as it appears on the Paypal page)
Also in the address field is it possible to change "City" to "Suburb"?
Thank you so much for your help!
Currently the Product field does not support a Hidden field type, but it's a good idea and we'll look at adding that in an upcoming release (possibly the next one). Until then, you can hide the surcharge field by editing it, going to the Advanced tab and in the Custom CSS Class field enter: gform_hidden
The "City" sub-label of the Address Field can be changed via custom code you would add to your themes functions.php where any custom code would typically go. Documentation for the filter to change the "City" label can be found here:
http://www.gravityhelp.com/documentation/page/Gform_address_city
Hi Ruby,
Give the 'gform_hidden' class a try but if you find that the value is not being passed to PayPal, try replacing the old code with this updated code:
Thanks David. Works beautifully.
When I try to change City into Suburb, I can't access my sites admin, it says there's an error on the line which has <?php
The updated code doesn't let me log in to my wp admin. A blank page just comes. I have done what Carl said and that works.
The code above has been updated to prevent the surcharge from being recalculated inaccurately when validation errors force the user to submit the form again: http://pastie.org/1912751
The first solution is great and does almost exactly what I need but is there a way to have it add/subtract the amount only if the total reaches a certain amount? I appreciate your help!
Here is the link to my form: http://1106design.com/newsite/services/
Where do I add this code, as I have the exact same problem, and I want it to do this on all of the forms I create for my website, so how do I do that?