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.
|