Viewing 3 replies - 1 through 3 (of 3 total)
  • Any luck here? I’m having the same issue. When I manually enter a payment, the confirmation email is missing the fields that are set in the regular payment email.

    Hi,

    This is a bug. It’s because in the admin manual payment file, a php array is treated as an object. To fix it, go into the file:

    payments/evr_admin_payments-post.php (around line 80… not exactly sure as I’ve heavily modified my files) and change this block of code:

    $ReplaceValues = array($payment_dtl->payer_id, $payment_dtl->first_name,$payment_dtl->last_name,$payment_dtl->payer_email,stripslashes($event_dtl->event_name), $company_options['company_email'], $payment_link, $payment_dtl->mc_gross, $payment_dtl->txn_id, $payment_dtl->txn_type,$payment_dtl->address_street, $payment_dtl->address_city, $payment_dtl->address_state,$payment_dtl->address_zip,$payment_dtl->address_country, $event_dtl->start_date, $event_dtl->start_time,$event_dtl->end_date,$event_dtl->end_time);

    to this

    $ReplaceValues = array($payment_dtl['payer_id'], $payment_dtl['first_name'], $payment_dtl['last_name'],$payment_dtl['payer_email'], stripslashes($event_dtl->event_name), $company_options['company_email'], $payment_link, $payment_dtl['mc_gross'], $payment_dtl['txn_id'], $payment_dtl['txn_type'], $payment_dtl['address_street'], $payment_dtl['address_city'], $payment_dtl['address_state'], $payment_dtl['address_zip'], $payment_dtl['address_country'], $event_dtl->start_date, $event_dtl->start_time, $event_dtl->end_date, $event_dtl->end_time);

    Note that the event_dtl elements don’t need to be changed, as they are php objects. While you’re in there also change the line a few above it to:

    $payment_link = evr_permalink($company_options['return_url']). "id=".$payment_dtl['payer_id']."&fname=".$payment_dtl['first_name'];

    to fix the same error. Then also update payments/evr_admin_payments-update.php for the same two bugs.

    Plugin Author avdude

    (@avdude)

    Thanks for the fix! We have updated the source.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘payment confirmation email, fields blank in email’ is closed to new replies.