Backend New Subscription Email

  • Nina Mårtensson
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 11 months ago #133288 by Nina Mårtensson
Backend New Subscription Email was created by Nina Mårtensson
When adding new subscription backend it seems that the New subscription email is sent regardsless of if it's active or not. Is there any way to setting the emails to send only when the subscription is set to active and saved? I am prepared to change code and risk overriding. I've looked through the code but I can't find the place where the email is triggered.
I'd like to set the new subscription email to function as following:

If new subscription is created and saved as published value 2 (not active) do not send any new subscription email.
If new subscription is created/or modified and saved as published value 1 (active) send new subscription email.

Any ideas of where to look in the code would be appreciated.

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

More
3 years 11 months ago #133304 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Backend New Subscription Email
Hello Nina

The file you need to look at is administrator/components/com_osmembership/model/subscription.php , line 354 to 357

Tuan

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

  • Nina Mårtensson
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 11 months ago #133306 by Nina Mårtensson
Replied by Nina Mårtensson on topic Backend New Subscription Email
Thanks, I'll have a look at it.
Regards, Nina

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

More
3 years 11 months ago #133310 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Backend New Subscription Email
You're welcome

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