- Posts: 363
- Thank you received: 25
Invoice for free plans
- Stephen
-
Topic Author
- Offline
- Platinum Member
-
Less
More
9 years 10 months ago - 9 years 10 months ago #64672
by Stephen
If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.
Invoice for free plans was created by Stephen
Hi Tuan
I need that invoce is going out even for free plans.
Earlier i changed the core code like this:
to this
in file components=>com_osmembership=>helper/helper.php (line 606, earlier it was line 202)
However changing this just result in that no invoice at all are going out.
Could you please help me and point me in the right direction were to change the code so that I have an invoice going out for all plans (even those who are free)
One more thing I saw now is that if you use the offline payment and after admin approved the subscription there is no invoice going out that says that payment is ok (just the confirmation email is coming) I also need that a new invoice is sent with confirmation that payment has been done (I know that subscribers can download it but I really need it sent by email as well)
I need that invoce is going out even for free plans.
Earlier i changed the core code like this:
Code:
public static function needToCreateInvoice($row)
{
if ($row->amount > 0 || $row->gross_amount > 0)
{
return true;
}
else
{
return false;
}
}
Code:
public static function needToCreateInvoice($row)
{
return true;
}
However changing this just result in that no invoice at all are going out.
Could you please help me and point me in the right direction were to change the code so that I have an invoice going out for all plans (even those who are free)
One more thing I saw now is that if you use the offline payment and after admin approved the subscription there is no invoice going out that says that payment is ok (just the confirmation email is coming) I also need that a new invoice is sent with confirmation that payment has been done (I know that subscribers can download it but I really need it sent by email as well)
If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.
Last edit: 9 years 10 months ago by Stephen.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 10 months ago #64679
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Invoice for free plans
Hi Stephen
That should be correct change. What version of the extension you are using ?
Tuan
That should be correct change. What version of the extension you are using ?
Tuan
Please Log in or Create an account to join the conversation.
- Stephen
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 363
- Thank you received: 25
9 years 10 months ago #64685
by Stephen
If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.
Replied by Stephen on topic Invoice for free plans
Hi
I´m using the latest version 2.0.0
I´m using the latest version 2.0.0
If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.