Events Made Easy › Forums › How do I … › …have to understand the discount placeholders?
- This topic has 5 replies, 2 voices, and was last updated 3 years, 4 months ago by Franky.
-
AuthorPosts
-
Mon 5 Jul 2021 at 11:17 #62831AnonymousInactive
Hello,
I am experimenting with some placeholders concerning the discount. So I put in the contact person’s mail code like:
`[eme_if tag='#ESC_APPLIEDDISCOUNTNAMES']Possibles words: #_APPLIEDDISCOUNTNAMES[/eme_if]
[eme_if tag='#ESC_DISCOUNTCODES_ENTERED']Tried words: #_DISCOUNTCODES_ENTERED[/eme_if]
[eme_if tag='#ESC_DISCOUNTCODES_VALID']Used words: #_DISCOUNTCODES_VALID[/eme_if]I am not sure if I didn’t understand the explanation (https://www.e-dynamics.be/wordpress/rsvp-mail-formatting/) correctly, but what I expected was
that #_APPLIEDDISCOUNTNAMES would list the discounts that can be used for this event.
that #_DISCOUNTCODES_ENTERED would list the words that someone entered, try to book and get refused with the message that it isn’t valid.Instead as far as I can see #_DISCOUNTCODES_ENTERED and #_DISCOUNTCODES_VALID have the same results and #_APPLIEDDISCOUNTNAMES also but in the way that it shows the discount name and not the discount word.
Mon 5 Jul 2021 at 11:23 #62832FrankyKeymasterI corrected the doc on #_DISCOUNTCODES_VALID a bit:
#_APPLIEDDISCOUNTNAMES returns a comma-seperated list of discount names applied to this booking
#_DISCOUNTCODES_ENTERED returns a comma-seperated list of discount names entered for this booking (just entered, not necessarily valid)
#_DISCOUNTCODES_VALID (or #_DISCOUNTCODES_USED) returns a comma-seperated list of the valid discount codes entered for this bookingAll are post-booking info (with the #_APPLIEDDISCOUNTNAMES being the names of the discounts you defined and that were applied, but not the actual discount code used)
Mon 5 Jul 2021 at 19:12 #62833AnonymousInactiveHmm, sorry, I still don’t fully get it.
Applied means what? Not the code or group that I connected as administrator to the event? It is what the booker is entering into the discount field? Or even all bookers together? If I have a discount group with three discounts and the first is used then #_APPLIEDDISCOUNTNAMES contains only that name, but when the next booker is using the second code, it contains both?
And what means entered? I experienced that when I enter a code that isn’t valid, I can’t continue/finish the booking. After replacing it with a valid one, #_DISCOUNTCODES_ENTERED only contains the valid one.
Mon 5 Jul 2021 at 20:33 #62834FrankyKeymaster#_APPLIEDDISCOUNTNAMES is per booking. One booking has nothing to do with another, so #_APPLIEDDISCOUNTNAMES will return a name (or names, if multiple discounts are applied) in the second booking (and that name can be the same as in the first booking, if the configured discount can be used multiple times).
Concerning #_DISCOUNTCODES_ENTERED and #_DISCOUNTCODES_VALID: indeed, it used to be the case that the discount wasn’t checked before being entered but now it is. So these 2 now return the same result.Tue 6 Jul 2021 at 09:23 #62838AnonymousInactiveWeird. To me it sounds like no change. But okay, I am fine so far concerning this subject.
Thanks for taking the time.
Tue 6 Jul 2021 at 12:40 #62839FrankyKeymasterThe name of the discount code is what you configured in the discount menu, the code entered is well … the code entered (the “coupon code”). So you could have a discount named “5% off for everyone” and a code that can be reused unlimited for 2 weeks. The name is then “5% off for everyone” and the code is what they actually enter in the discount field.
-
AuthorPosts
- The forum ‘How do I …’ is closed to new topics and replies.