I used to have a ticket image appear on the ticket that is sent to purchasers. We haven’t had an event in a while due to COVID and I have updated everything and had to update to the new ticket template. Of course I did not save an old copy of the template. Silly!
Anyway, I am trying to have an image appear on the ticket email, but I just can’t get it to work. I’m 100% sure I am doing something wrong. Can you please assist?
Currently the code I can see the adjust the ticket image is as follows:
Line 139-140
// event ticket image
$img_src = (!empty($e_pmv[‘_tix_image_id’]))? wp_get_attachment_image_src($e_pmv[‘_tix_image_id’][0],’thumbnail’): false;
Line 171-174
<img style='border-radius:50%;height:120px; width:auto; max-width:none' src="” alt=””>
I thought I just needed to add the image ID into the code on line 140 as follows:
// event ticket image
$img_src = (!empty($e_pmv[‘_?attachment_id=5017’]))? wp_get_attachment_image_src($e_pmv[‘_?attachment_id=5017′][0],’thumbnail’): false;
My PHP skills are not strong. I tried looking on the wordpress.org developer site to get some code ideas to see what I need to do. But I’m at a loss. I tried putting a direct URL to the image and that didn’t work either. This is the URL to the image: https://diamondbackfc.com/?attachment_id=5017
Is this something you can help me with?
Jun 7,2021 AT 6:31PM - 3 years ago -Hello,
Unfortunately, we unable to help with customizations. You can send us a customization request from Customize EventON Page.
Please also note that ticket email template shows Image by default:
No worries 🙂
I know I can add an image to the event but doing that removes the product image for the WC product page and replaces it with the event image. I need a different image on the ticket and the WC product page. For some reason I thought there was a work around for this by just changing some code in the email ticket template.
Thank you for your help and quick response 🙂
Great! If you have any further questions or concerns please create a new ticket.