Events Made Easy › Forums › Generic › Placeholder or calculation for Totalprice incl. Payment Gateway Extracharge
Tagged: Payment
- This topic has 20 replies, 2 voices, and was last updated 3 years ago by Anonymous.
-
AuthorPosts
-
Sun 29 Aug 2021 at 23:42 #63110AnonymousInactive
Hi Franky,
just a quick question – I use the #_EXTRACHARGE placeholder on my payment forms which works great. Is there a way to have the resulting calculated total price there as well?
#_TOTALPRICE could possibly do that? But if I inlcude #_TOTALPRICE in the “Text above payment button” field in the EME Payment settings (for PayPal, Mollie, …) it jsut does not work, shows ‘#_TOTALPRICE’ as literal text instead of the amount.
Is this intentional or a bug?Ah, and while on it – is there a way to show the extracharge not only as an absolute amount but a percentage as well?
Thanks!
kinghillMon 30 Aug 2021 at 00:55 #63111FrankyKeymasterThe text per button is not specific for events or members, that’s why I don’t replace any event/members placeholders in it. You should use the setting “RSVP Payment form header format” (or footer, and for memberships it is a template) for that.
And the charge is a calculated amount based on 2 settings per gateway, so no pct here (for now).Mon 30 Aug 2021 at 14:03 #63112AnonymousInactiveI see, makes sense, thank you.
My thinking was that it’d be nice to show to the user all the relevant info about each payment option/gateways “near” the button.
But I can certainly move this to the header, as you suggest.And just to clarify – there is no EME way for me to display the effective payment amount here (sum of #_TOTALPRICE + #_CHARGE{xx}), so that they immediately can see how much to pay in total when choosing a certain gateway.
I certainly can achieve this with some simple Javascript, just wanted to make sure that I’m not overlooking something in EME.
Thanks again!Mon 30 Aug 2021 at 14:42 #63113FrankyKeymasterThe total would be another thing, that I could add.
The next version will support #_PRICE_INCLUDING_CHARGES or #_GATEWAY_PRICE, which gives the total price for a specific gateway (only supported per gateway button).
Concerning #_EXTRACHARGE: that will change a bit too (will also be localized, not just a number).Mon 30 Aug 2021 at 16:27 #63116AnonymousInactiveThis is outstanding, thank you, Franky for implementing this!
I sent virtual Coffee + Croissant your way as token of my appreciation!
🙏🏼Mon 30 Aug 2021 at 21:55 #63118FrankyKeymasterThank you for that kind donation!
Mon 25 Oct 2021 at 23:17 #63331AnonymousInactiveHey Franky,
sorry that I’m coming back to this thread. I’m now setting up a new page on which I want to show all the info to the user about the bookings they made.
I’m using the [eme_mybookings] and it gives me almost everything that I need, incl. custom Fields etc.
Only, Total Price including the Payment Gateway surcharges are somehow missing.
On the payment form it works beautifully, thanks to your previous additions, but it seems that with the [eme_mybookings] shortcode they are not implemented?
Could you add the #_PRICE_INCLUDING_CHARGES and #_EXTRACHARGE placeholders here as well?Would it even be possible to add a specific VAT placeholder that shows the VAT part of the final total price (including the surcharges) paid?
People might get confused if I showed them only the Total price and VAT BEFORE the surcharge but find their a different amount on their bank statement.Thank you.
Tue 26 Oct 2021 at 01:01 #63332FrankyKeymasterThe next version will allow all payment gateway placeholders to be used as booking and member placeholders too. From the changelog:
* Added payment gateway placeholders #_PRICE_INCLUDING_CHARGES_NO_VAT and #_PRICE_INCLUDING_CHARGES_VAT_ONLY, #_EXTRACHARGE_NO_VAT and #_EXTRACHARGE_VAT_ONLY
* Allow all payment gateway placeholders to be used as booking and member placeholders tooTue 26 Oct 2021 at 11:33 #63334AnonymousInactiveFantastic news – thank you so much!
Tue 26 Oct 2021 at 18:02 #63338FrankyKeymasterIf you’re able to test the dev-version, that would be great 🙂
Tue 26 Oct 2021 at 20:25 #63339AnonymousInactiveI just did the test with the dev version.
It seems two placeholders work, two don’t for me.
-OK-
#_EXTRACHARGE_NO_VAT
#_EXTRACHARGE_VAT_ONLY-Not OK-
#_PRICE_INCLUDING_CHARGES
#_PRICE_INCLUDING_CHARGES_VAT_ONLYWith the latter two I get the Event price as output plus the rest of the placeholder, like this 750.00#_INCLUDING_CHARGES
My guess is that the placeholder replacement routine finds the PRICE placeholder already and stops right there..?Tue 26 Oct 2021 at 20:41 #63340FrankyKeymasterIs this for bookings or for memberships? I discovered small issues with that for memberships, but not with #_PRICE … I’m looking into the code now 🙂
Tue 26 Oct 2021 at 21:18 #63341AnonymousInactiveOh, it’s bookings.
[eme_mybookings] specifically.I don’t use Memberships so I can’t say if it’s happening there as well..
Tue 26 Oct 2021 at 22:07 #63342FrankyKeymasterWorks fine here. To be sure: can you download the latest dev-version (just updated some small things) and try again?
Tue 26 Oct 2021 at 22:25 #63343AnonymousInactiveSorry, still no luck.
Sow weird, if it works for you…So here’s the troubled part of my template, perhaps you can see something I can’t?
<p>Total:<span id="eme_calc_bookingprice">#_TOTALPRICE €<br> #_PRICE_INCLUDING_CHARGES € <br> #_PRICE_INCLUDING_CHARGES_VAT_ONLY</p> <p>Additional Online Payment Surcharge (excl./incl VAT): #_EXTRACHARGE_NO_VAT € // #_EXTRACHARGE_VAT_ONLY</p>
And this is the output I get:
Total:915.00 €
750.00_INCLUDING_CHARGES €
750.00_INCLUDING_CHARGES_VAT_ONLYAdditional Online Payment Surcharge (excl./incl VAT): 15.38 € // 18.30 €
Tue 26 Oct 2021 at 22:34 #63344AnonymousInactiveBTW – same happens if I change #_PRICE_INCLUDING_CHARGES to #_TOTALPRICE_INCLUDING_CHARGES
Wanted to try it out, maybe #_PRICE was the issue, but no #_TOTALPRICE gets processed just the same:
915.00_INCLUDING_CHARGESTue 26 Oct 2021 at 22:52 #63345FrankyKeymasterI’ll test this out, you might have given me a clue here …
Wed 27 Oct 2021 at 00:20 #63346FrankyKeymasterOk, I replaced the placeholder-replacement logic by something more resilient. Can you try dev again? But this time: test everything (also other forms,…) since the placeholder logic changed and I need to be sure I didn’t miss anything 🙂
Wed 27 Oct 2021 at 15:39 #63347AnonymousInactiveGreat, thanks!
Looks all good now, as far as I can tell!
I tested:
[eme_mybooking] shortcode
Payment form templates
Ticket PDF Template
(RSVP Form – even these placeholders are not applicable there, just wanted to check for side-effects = none. Cool)Any forms or shortcode I’m missing or should be testing?
Thank you!
And again, Memberships I don’t use at all, so I can’t test these
Wed 27 Oct 2021 at 16:04 #63348FrankyKeymasterI found a better (yet slightly more complicated) method to correctly replace substrings without interfering with other matching substrings. The new version has already been released today.
Wed 27 Oct 2021 at 19:12 #63349AnonymousInactivePerfect.
EME is even getting better every day 👍
-
AuthorPosts
- The forum ‘Generic’ is closed to new topics and replies.