Skip navigation
PG Media
Currently Being Moderated

checkbox button to add 3% to total amount to cover credit card fee

May 16, 2012 3:17 PM

Tags: #code #percentage #checkbox #cost #total #amount

I want to put a box in the check out where the customer can click it and it will automatically add 3% to cover the Credit Card fees for the nonprofit.

 

here is an example:

 

 

 

 

Does anyone know what code I can write that automatically adds the 3% to the total cost and automatically reflect on the grand total?

 

Paul

 
Replies
  • Currently Being Moderated
    May 24, 2012 4:24 PM   in reply to PG Media

    probably the easiest way would be to create a 'tax' for 3%.

     
    |
    Mark as:
  • mario_gudelj
    1,579 posts
    Oct 13, 2010
    Currently Being Moderated
    May 24, 2012 8:58 PM   in reply to PG Media

    All your costs have to be added on at either a product layout or the shopping cart. Once you're on the registration page you can not manipulate the amount field.

     

    Cheers,

     

    -mario

     
    |
    Mark as:
  • Liam Dilley
    4,053 posts
    Feb 28, 2012
    Currently Being Moderated
    Aug 22, 2012 4:22 PM   in reply to PG Media

    You can not do this for the eCommerce payment form.

    You can do this on custom web forms though by using javascript and updating the price amount to include 3% when that option is selected.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points