Support

Home Forums Event Espresso Premium Email link to view and print tickets requiring WordPress login

Email link to view and print tickets requiring WordPress login

Posted: September 17, 2018 at 8:58 am


District 3

September 17, 2018 at 8:58 am

How can I disable this requirement? We do not want to force users to create an account just to print tickets. When they select the ticket # on email, it should display their ticket so they can print it.


Josh

  • Support Staff

September 17, 2018 at 10:08 am

Hi,

Normally that would not be a requirement, and Event Espresso does not have an option to make viewing tickets a requirement. May I ask are there any security plugins activated on the website?


District 3

September 17, 2018 at 1:03 pm

WordFence is installed.


Josh

  • Support Staff

September 17, 2018 at 1:20 pm

OK, if WordFence is causing the WP Login requirement then you’ll need to change the settings in WordFence to allow the tickets to open. I’m afraid I’m not familiar with WordFence to know exactly which setting that could be.


District 3

September 17, 2018 at 1:57 pm

I do not think so, but am still looking in that plugin. When reviewing EE, I saw an option to view the “System Information”. I see this in the EE4 section. Is this possibly an issue?

–> Section Heading:
user_integration
–> Details:

force_login
registration_page
auto_create_user
default_wp_user_role subscriber
sync_user_with_contact 1


District 3

September 17, 2018 at 2:13 pm

I disabled Wordfence, logged out and tried the email link again. It still prompts me for the WP login. When I do login, it takes me to the user event registration page in the administrations section and not to the Ticket URL. So, it looks like the issue is with the URL the email is generating is wrong.

Here is the URL the email is generating:
https://www.glpad3.org/d3/wp-admin/admin.php?page=espresso_registrations&action=view_registration&_REG_ID=797&view_registration_nonce=d3cab6842b

It takes the user to “View Registration”


District 3

September 17, 2018 at 2:17 pm

It should be sending user to this (taken when I view ticket from admin section):
https://www.glpad3.org/d3/?ee=msg_url_trigger&snd_msgr=html&gen_msgr=html&message_type=ticketing&context=registrant&token=5-f33bf319e16f898fbbdbbaaed6444c36&GRP_ID=15&id=0


Josh

  • Support Staff

September 17, 2018 at 7:12 pm

May I ask what’s the shortcode that’s generating the URL for that part of the email?


District 3

September 18, 2018 at 7:57 am

Here is the code for the “Ticket List” Section:

  • [TICKET_NAME]
  • Dates/Times:</br>

      [DATETIME_LIST]

  • Josh

    • Support Staff

    September 18, 2018 at 7:59 am

    Those shortcodes do not print a link to view/download a ticket. Generally you would have a shortcode wrapped in an href like this:

    <a href="[TXN_TICKETS_APPROVED_URL]">Print your ticket(s)</a>

    If you don’t have a shortcode like the above in your email template, then you don’t have an email link to view and print tickets.


    District 3

    September 18, 2018 at 8:01 am

    In the “Attendee” section:

    <h4><a href="[EDIT_ATTENDEE_LINK]">[FNAME] [LNAME]</a></h4>
    <ul>
    	<li>
    		<strong>Registration Code:</strong>
    		<a href="[EDIT_ATTENDEE_LINK]">[REGISTRATION_CODE]</a>
    	</li>
    	<li>
    		<strong>Tickets:</strong>
    		<ul>[TICKET_LIST]</ul>
    	</li>
    </ul>
    <hr/>

    “Ticket List” Section:

    <li>
    	<strong>[TICKET_NAME]</strong>
    </li>
    <li>
    	Dates/Times:</br>
    	<ul>[DATETIME_LIST]</ul>
    </li>


    Josh

    • Support Staff

    September 18, 2018 at 8:04 am

    Every one of those shortcodes will not output an email link to view and print tickets. In order to get an email link to view and print tickets, you’ll need to add something like this:

    <a href="[TXN_TICKETS_APPROVED_URL]">Print your ticket(s)</a>


    District 3

    September 18, 2018 at 8:18 am

    I do not even see that short code in the available offerings. Strange.
    Also, this was the default registration code as supplied by EE4 when we installed 2 years ago.
    All we did was modify the heading slightly.
    The email definitely has a URL link. The generated email code is as follows:

    
    <h2 style="margin: 0; padding: 0; font-family: 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000; line-height: 1.1; margin-bottom: 15px; padding-bottom: 15px; padding-top: 10px; font-size: 30px; font-weight: 200;">Registrant Details:</h2>
    <h4 style="margin: 0; padding: 0; font-family: 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000; line-height: 1.1; margin-bottom: 15px; padding-bottom: 15px; padding-top: 10px; font-size: 19px; font-weight: 500;">
    <a href="https://www.glpad3.org/d3/wp-admin/admin.php?page=espresso_registrations&action=view_registration&_REG_ID=154&view_registration_nonce=d3cab6842b" style="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; color: #2BA6CB;">Tres Sapp</a>
    </h4>
    <ul style="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; margin-bottom: 10px;">
    	<li style="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; list-style-position: inside; list-style-type: none; margin-left: 5px; padding-bottom: 5px;">
    		<strong style="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;">Registration Code:</strong>
    		<br style="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;">
    		<a href="https://www.glpad3.org/d3/wp-admin/admin.php?page=espresso_registrations&action=view_registration&_REG_ID=154&view_registration_nonce=d3cab6842b" style="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; color: #2BA6CB;">164-10-1-5987</a>
    	</li>
    	<!-- other date time stuff follows -->
    </ul>
    


    District 3

    September 18, 2018 at 8:21 am

    I know that is a lot to look at but I am not sure how else to show you what is going on. Id there a way to do a GoToMeeting and review it?


    District 3

    September 18, 2018 at 8:24 am

    I think the issue is here:

    [EDIT_ATTENDEE_LINK]”>[FNAME] [LNAME]


    ‘`
    The [EDIT_ATTENDEE_LINK] takes the user to their WP Profile. We do not want this.


    District 3

    September 18, 2018 at 8:26 am

    dang it, code didntt’t format right. Here you go:

    
    <h4><a href="[EDIT_ATTENDEE_LINK]">[FNAME] [LNAME]</a></h4>
    <ul>
    	<li>
    		<strong>Registration Code:</strong>
    		<a href="[EDIT_ATTENDEE_LINK]">[REGISTRATION_CODE]</a>
    	</li>
    	<li>
    		<strong>Tickets:</strong>
    		<ul>[TICKET_LIST]</ul>
    	</li>
    </ul>
    <hr/>
    


    District 3

    September 18, 2018 at 8:40 am

    I found this ([TICKET_URL]) Will this work? Test email takes me to the home page:
    `

  • Registration Code:
    <[TICKET_URL] [REGISTRATION_CODE]

  • District 3

    September 18, 2018 at 8:41 am

    This forum formatting is a pain:

    
    	<li>
    		<strong>Registration Code:</strong>
    		<a href="[TICKET_URL]">[REGISTRATION_CODE]</a>
    	</li>
    


    Josh

    • Support Staff

    September 18, 2018 at 8:43 am

    What you’ve posted here is sufficient.

    The [EDIT_ATTENDEE_LINK] takes the user to their WP Profile. We do not want this.

    You can remove this part of the email template:
    <strong>Registration Code:</strong>
    <a href="[EDIT_ATTENDEE_LINK]">[REGISTRATION_CODE]</a>

    and if you’d like, replace it with:
    <strong>Tickets:</strong>
    <a href="[RECIPIENT_TICKET_URL]">Download your ticket</a>


    District 3

    September 18, 2018 at 8:53 am

    I tried to apply your code and got this:
    An error has occurred:

    The following shortcodes were found in the “[ATTENDEE_LIST]” field that ARE not valid: [RECIPIENT_TICKET_URL]

    Valid shortcodes for this field are: [FNAME], [LNAME], [ATTENDEE_EMAIL], [EDIT_ATTENDEE_LINK], [REGISTRATION_ID], [REGISTRATION_CODE], [REGISTRATION_STATUS_ID], [REGISTRATION_STATUS_LABEL], [REGISTRATION_TOTAL_AMOUNT_PAID], [FRONTEND_EDIT_REG_LINK], [PHONE_NUMBER], [ADDRESS], [ADDRESS2], [CITY], [ZIP_PC], [ADDRESS_STATE], [COUNTRY], [ANSWER_*], [TICKET_URL], [EVENT_LIST], [TICKET_LIST], [QUESTION_LIST]


    Josh

    • Support Staff

    September 18, 2018 at 8:59 am

    The code I advised is intended for the [EVENT_LIST] section.

    The [TICKET_URL] shortcode is the equivalent that can be used within the [ATTENDEE_LIST] section.


    District 3

    September 18, 2018 at 9:07 am

    The shortcode: [RECIPIENT_TICKET_URL] generates an error in the Events List section as well.

    I will stick with the [TICKET_URL] in the Attendee section, that one is recognized.

    I am not sure what version you are running, but it obviously does not match mine.


    District 3

    September 18, 2018 at 9:20 am

    It works now. So strange because we never changed this template other than the logo.

    Oh well, it works.

    Rick


    Josh

    • Support Staff

    September 18, 2018 at 9:27 am

    Hi Rick,

    It may be a different email template, I don’t think you specified which template you were editing, did you?

    Also, please note that the default registration notification emails do not have the ticket shortcodes predefined. The reason being is you need to have the ticketing add-on activated in order to have/use the [TICKET_URL] shortcodes. So it’s not strange that the ticket URL shortcode wasn’t being used before if all you did was change the logo.

    The support post ‘Email link to view and print tickets requiring WordPress login’ 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