By Manfred on Tuesday, 20 March 2018
Posted in General Issues
Replies 9
Likes 0
Views 0.9K
Votes 0
I am seeing this bit of code


//work only when plugin is enabled
$plgEnable = XiHelperPlugin::getStatus('pdfinvoice','payplans');

if($plgEnable == true && ($invoice instanceof PayplansInvoice)){
list($instance, $attachment) = $this->_attachInvoice($invoice);
if($attachment){
$mailer->addAttachment($attachment);
}
}


in plugins/payplans/offlinepay/app/offlinepay/offlinepay.php

We have the PDF Plugin enabled (it is working on the site, users can download their own PDF invoices) but for some reason, the offline pay email does not attach the invoice

Can you advise how we can attach the invoice to offline payments?

As an aside, the PDF Invoice plugin is using a very old version of dopdf, and has very limited font support, it could probably do with a rewrite.. in fact it would be nice if you had a backend invoice email / invoice template designer as configuring an invoice layout with mutiple plugins is a nightmare that requires changes to several views.
Hello Marfred,

Ok
We got the issue regarding attachment of invoice in offlinepay method. I've created ticket for this and we will release this fix in our next release.

Let me know if you face any other issue.
·
Tuesday, 27 March 2018 12:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Manfred,

Please share site details, i need to check this issue on your site.
·
Wednesday, 21 March 2018 11:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Provided in the hidden fields
·
Thursday, 22 March 2018 18:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Manfred,

No details shown to me.
Please add your admin details on Site Details section, so i can access your site.
·
Friday, 23 March 2018 12:22
·
0 Likes
·
0 Votes
·
0 Comments
·
When I edit the ticket, your personal superadmin login info is definitely shown in the site info

I have added the site, username and password in the 'hidden section - not shown to public' section as well
·
Monday, 26 March 2018 18:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Manfred,

I checked your site code and found that they way you have done changes is wrong for download invoice link.Regarding invoice attachment to email, i am checking this issue.
You have set your domain name to http://www.pricingplatform.eu in url , it should be http://eppdev.jamaza.com.

see below mentioned code.

$emailBody .= '<p><a href="http://www.pricingplatform.eu/index.php?option=com_payplans&view=invoice&action=sitePdfInvoice&invoice_key='.$invoice->getkey() .'">Download your invoice</a></p>';


It should be

$emailBody .= '<p><a href="http://eppdev.jamaza.com/index.php?option=com_payplans&view=invoice&action=sitePdfInvoice&invoice_key='.$invoice->getkey() .'">Download your invoice</a></p>';


As per your code you want to share the download invoice link.
Correct me if i misunderstood your issue.
·
Tuesday, 27 March 2018 00:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry, yes. The download link domain was pointing incorrectly, which is fine for you to change to the development site. pricingplatform is the final end point for the live domain which I will switch support to when everything is working

However the issue is that the downloaded PDF has the name of the invoicekey (a load of random characters) whereas I want the downloaded pdf to have the SERIAL as the file name which is more relevant for the customer
·
Tuesday, 27 March 2018 00:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry ignore that last comment, i have two very similar tickets

I created the download link as the mail was not generating an actual attachment PDF, even though the code indicates this should be what is happening.

To be honest, this particular ticket can be dealt with another day as we are happy with the download link for now which was our workaround
·
Tuesday, 27 March 2018 00:30
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post