Ticket attachment in Confirmation email

  • Rubén Díez Álvarez
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 10 months ago #99288 by Rubén Díez Álvarez
Ticket attachment in Confirmation email was created by Rubén Díez Álvarez
Hi,
I'm using Event Booking 2.14.5, over Joomla 3.7.2.
At configuration tab, I've turned on Activate Tickets PDF and Send Tickets Via Email options.

I've created an event, with Activate Tickets PDF option is ON. In the event there is no Send Tickets Via Email option.

When we have a new registrant with offline payment, and we confirm it as paid, a email is sent to registrant with the ticket sent as attachment. So it's ok.
However when the registrant use an online payment and this is confirmed, and confirmation email is sent to registrant but this email doesn't contain the ticket. I want to send the ticket automatically attached in the confirmation email or other email sent after the payment is confirmed online automatically.

Are doing something wrong?

Thanks in advance,

Rubén

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #99317 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Ticket attachment in Confirmation email
Hello Rubén

Nothing wrong with your setup. I don't know why it doesn't work for the online payment method, maybe there is something wrong with the payment method code itself

So the question is what payment method you are using? Is it one of the method provided by Events Booking?

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Rubén Díez Álvarez
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 10 months ago #99353 by Rubén Díez Álvarez
Replied by Rubén Díez Álvarez on topic Ticket attachment in Confirmation email
The payment method is external one: CECA by modulosdepago.es

But I can't understand why is failing, because the confirmation email is sent, and in EB Registrant Management the tickets are generated automatically as there was a confirmation from the payment method.

When the payment method plugin confirms the payment, what is it sent to registrant? One confirmation email with the ticket attached or two emails (one confirmation email and another with the ticket?

Thanks

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #99374 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Ticket attachment in Confirmation email
When the payment is completed, in the payment plugin code, there would be some code line this executed:

JPluginHelper::importPlugin('eventbooking');
$dispatcher = JEventDispatcher::getInstance();
$dispatcher->trigger('onAfterPaymentSuccess', array($row));
EventBookingHelper::sendEmails($row, $config);

Please note that EventBookingHelper::sendEmails($row, $config); needs to be at the end (after $dispatcher->trigger('onAfterPaymentSuccess', array($row)); line)

So if for some reasons EventBookingHelper::sendEmails($row, $config); is called before, that might causes the issue. So please contact the developer of that payment plugin, ask him to check and correct the code

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Rubén Díez Álvarez
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 10 months ago #99401 by Rubén Díez Álvarez
Replied by Rubén Díez Álvarez on topic Ticket attachment in Confirmation email
As you thinked at this payment method the order of EventBookingHelper::sendEmails($row, $config); is before $dispatcher->trigger('onAfterPaymentSuccess', array($row)); so this would be the problem.

I've informed the autor, for changing it.

Thank you very much.

Rubén

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #99423 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Ticket attachment in Confirmation email
OK, thanks Rubén .

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc