Support

Home Forums Community Forum Add free to paypal payments

Add free to paypal payments

Posted: August 2, 2015 at 11:19 pm

Viewing 0 reply threads


Joshua Foshee

August 2, 2015 at 11:19 pm

I know there was a customer that added this to functions.php:

function add_pp_args($args){
 
  $ppamt = $args['amount_1'] + $args['tax_cart'];
  $ppamt = ( ($ppamt * .026) + .30 ); 
  $ppamt = number_format((float)$ppamt, 2, '.', '');
  //remove debug
  foreach($args as $key => $val) if( substr($key,-2) == '_2' ) unset($args[$key]);
  $args['item_name_2'] = "Booking and Service Fee";
  $args['amount_2'] = $ppamt;
  $args['quantity_2'] = 1;
  return $args;
}
 
add_filter('FHEE__EEG_Paypal_Standard__set_redirection_info__arguments','add_pp_args');

But which functions.php do you add it too?

/wp-content/plugins/event-espresso-core-reg/public/Espresso_Arabica_2014
or
/wp-includes

The first doesn’t accomplish anything and the second shows a error when I try to load the website.

Viewing 0 reply threads

The support post ‘Add free to paypal payments’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso