Receipt upon a certain amount

  • Denis Langevin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 9 months ago #152788 by Denis Langevin
Receipt upon a certain amount was created by Denis Langevin
Hi,

My client asked me if it was possible to setup JoomDonation to send a receipt only if donation is 20$ or over ? If it's possible to achieve this, could you please explain in details all I have to do to set it up correctly?

Thanks in advance for the help! 

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

More
1 year 9 months ago #152791 by Mr. Dam
Replied by Mr. Dam on topic Receipt upon a certain amount
Hi Denis,
Unfortunately, Joom Donation doesn't have option to send the receipt with specific amount.
But you can make the modification to have that change.
1. Open file [root] -> components -> com_jdonation -> helper -> helper.php
2. Find:
Code:
if ($config->activate_donation_receipt_feature && $config->send_receipt_via_email && $row->published == 1)

and change to
Code:
if ($config->activate_donation_receipt_feature && $config->send_receipt_via_email && $row->published == 1 && $row->amount > 20)

Good luck
Dam

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

  • Denis Langevin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 9 months ago - 1 year 9 months ago #152792 by Denis Langevin
Replied by Denis Langevin on topic Receipt upon a certain amount
Thanks for the answer!

So with that code, if the donation is 20$ or greater, it will send the receipt by email?

What it must do, is if the donation is like 15$, no receipt sent... but if the donation is 20$ or 125$, a receipt would be sent.
Last edit: 1 year 9 months ago by Denis Langevin.

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

More
1 year 9 months ago #152793 by Mr. Dam
Replied by Mr. Dam on topic Receipt upon a certain amount
Hi,
You can adjust the the amount you want the invoices to be sent:
Code:
$row->amount > 20
Thanks
Dam

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

  • Denis Langevin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 9 months ago #152794 by Denis Langevin
Replied by Denis Langevin on topic Receipt upon a certain amount
Yes, that part of the code I see... but what I want to know is if I set the code with amount > 20, and the donor sets his donation to lets say 150$, will the receipt be sent?

Does the code "amount > 20" mean amount of 20$ and up = receipt sent?

Just want to be sure.

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

More
1 year 9 months ago #152800 by Mr. Dam
Replied by Mr. Dam on topic Receipt upon a certain amount
Yes, Dennis, the invoice will be sent if the amount is higher than 20
Thanks
Dam

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

Moderators: Mr. DamDũng Nguyễn Việt