Posted: October 24, 2014 at 8:27 am
I’m looking at the receipt_body.template and I want to modify it to show only the Primary Registrant’s details. I’m guessing it’s this part in div.ticket-registrations-area:
Is there something I can replace attendee with to target only the primary registrant? I don’t ask for attendee information besides the primary, so these invoices currently list the primary registrant and details x times, once for each ticket in the transaction. thanks |
|
just making sure this question wasn’t overlooked. thanks |
|
|
Hi, Something like this should work = 1) { continue; } $ii++; |
|
Please note that our forum adds an extra space in the php eg < ?php, this needs to be removed. |
sorry, I’m probably just pasting that in the wrong place (near the top, overwriting the part I quoted in the first post):
I want it to have the ticket details and the primary registrant’s name only. Also, note that my receipts are formatted the same way (https://teens.artsconnection.org/thank-you/?ee=launch_invoice&id=1-bc7862f4c52de2c1a2894ce224ce690e&html=1&receipt=true) as my Registration page, with ticket types inside attendee divs, which I described in this thread: |
|
|
Hi, It looks like you’re missing a bit of code. Compare yours to what I have pasted here http://pastebin.com/FVVzMdw7 specifically around line 133, looks like lines 138-140 are the ones missing. |
Dean, thank you, but the output of this is the same as the default: 1)there is an attendee section for each ticket sold, and 2)ticket types don’t appear in the same list–the second ticket type sold is inside the second attendee section. |
|
|
Hi, This is what I see before the code change: http://take.ms/frgK8 and after http://take.ms/hRZ7k So it has removed the additional attendees from the invoice. Was that not what you were after?
|
Dean, that is exactly what I want, but it doesn’t happen for me. I still see all attendees. I have verified that I am editing the correct file and that changes that I make are reflected in the output. Could it be that since the Primary Registrant=Additional Attendees, it is still being listed once for each ticket? I am registering all attendees using the primary’s information (which is why I don’t want to show the other attendees.) When you tested, did you register other attendees, or did you apply Primary to all? |
|
Here is my file: http://pastebin.com/mFHAT8ke |
|
|
Hi Michael, I added your code to my EE (4.4.3) and the only change I made was to uncomment the code I added (otherwise it wont work). I then registered an event for 5 people (only taking the Primary attendee data no one elses) and it still worked: http://take.ms/KNLGF I then tested where the additional attendees data WAS requested, but the Primary attendees details were inserted (by ticking the box). The Order Confirmation Receipt still showed only the primary attendee. |
OK, this sounds promising. Can you please show me the parts you uncommented? Thank you |
|
Hi Dean, I wasn’t able to figure this out. Can you let me know which lines you uncommented? Thanks |
|
|
Hi, Sorry for the late response. Here’s a screenshot of your code from the pastebin. The 3 arrows show which lines I uncommented (the original code modifications I made) – that’s lines 120, 123 and 124 – screenshot http://take.ms/6RDEO Leave line 122 commented out, otherwise you will get debugging information on your website. |
Ah, shows what I know. The debug line was holding me up. Works great, thanks a lot. Much appreciated. |
|
The support post ‘Invoice-Primary Registrant only’ 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.