Support

Home Forums Event Espresso Premium Amount Owed on Payment Overview Incorrect

Amount Owed on Payment Overview Incorrect

Posted: November 13, 2013 at 6:01 am


David Sim

November 13, 2013 at 6:01 am

We’re following recommendations elsewhere in the forums to handle deposits:

– Selling a “deposit” ticket for £100
– Manually going into the attendee payment record and revising the amount owed to £300.

The system correctly amends the total amount owing to £200. Great!

However, when I send out an invoice with a link to the Payment Overview it incorrectly shows the amount owing as £300. Not just that, but when I try to pay via Paypal it also is looking for £300. In short, it ignores the payment already made!

This is obviously a bug as the system should only ever be looking for the balance outstanding, not the original ticket price. Is there a workaround?

Thanks.


Sidney Harrell

November 13, 2013 at 1:06 pm

For the payment overview, you would need to use this code.
You can add this code to:
1 – Your theme’s functions.php file. It may get overwritten the next time you update your theme.
2 – The EE custom files add-on in the custom_functions.php file.
3 – Use this blank plugin to hold the custom function.

You would then need to alter your templates/payment_overview.php to use the new variables available. Line 22, which currently reads:

<td><?php echo $org_options['currency_symbol'] ?><?php echo $total_cost ?>

You need to change to:

<td><?php echo $org_options['currency_symbol'] ?><?php echo $amount_pd . " / " . $amount_owed ?>

Note that you’ll want to copy that template file to uploads/espresso/templates before altering, so that your customization will not get overwritten by the next update.
The paypal amount is a little trickier, and I’ll work that out and post again soon.
Thanks.


Sidney Harrell

November 13, 2013 at 1:33 pm

Looking through the paypal code that determines the values passed to paypal, you have several options for how you would want to handle it. The problem is that for each attendee in a transaction, we store the original price of the attendee’s ticket, and the final price of the attendee’s ticket (after discount codes, etc). We then add up the final price for all the attendees and store that as the total_cost on the primary attendee, because they would presumably be the one responsible for paying for the entire transaction. But in order to make a pretty display on the paypal site when the user goes there to pay, we send Paypal itemized information on each attendee, including the original price of each ticket and the discount amount for each ticket. Paypal then does the adding up of all the tickets and displays that as the total price for the user.
So basically, you would have two options for how to proceed. First, you could take the amount already paid, divide that up among all the tickets, and send paypal the per-ticket price minus their share of the amount already paid. Or your second choice would be to give up the itemized display on the paypal site, and just send paypal the aggregated information, ie. the total cost minus the amount paid for the entire transaction.

The support post ‘Amount Owed on Payment Overview Incorrect’ 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