By Michael Stanek on Wednesday, 06 April 2022
Posted in General Issues
Likes 0
Views 485
Votes 0
Hi Manisha,
I have a couple of important questions I have not been able to solve.

1) how to add a client's VAT ID to the admin.php email template? I don't see anything like USER_TAX_ID in the variables...

2) in the user.completed.php email template being sent when bank transfer, the invoice is being attached. How do I NOT attach the invoice?

3) general Documentation question: I would love to find all the answers in your documentation, but it is just not possible. Since your search is Google based and most of your Documentation is hidden after loging, Google will not index it, hence it will not search it. I would love NOT to bother you with these questions, but I can't find the answers to them...

Thanks a lot.
Hey Manisha,

1) thanks for this. Btw. this is a great example of the docs returning no result. I searched for the [[USER_PREFERENCE_TIN]] variable because I didn't know what it meant and the search returned zero results. See attached image.

2) great, thanks. It would be great to have it as a setting in the backend.

3) no inconvenience caused :-) All being just a friendly suggestion.

Thanks a lot.You can close this ticket.
·
Thursday, 07 April 2022 15:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Micheal,

1) how to add a client's VAT ID to the admin.php email template? I don't see anything like USER_TAX_ID in the variables...
To use Vat id, you need to use the token [[USER_PREFERENCE_TIN]].
Refer to the below-mentioned document to see the available variables.
https://stackideas.com/docs/payplans/administrators/customization/using-tokens

2) in the user.completed.php email template being sent when bank transfer, the invoice is being attached. How do I NOT attach the invoice?
If you don't want to attach the invoice then you need to do the changes in the below-mentioned file path.
root\plugins\payplans\offlinepay\app\offline.php, near line no. 207, find below mentioned code.

$attachment = [];

if ($this->config->get('enable_pdf_invoice')) {

$pdf = PP::pdf($invoice);
$pdf->generateFile();
$pdfFile = $pdf->getFilePath();

// If the filepath is exist, include it in attachment
if ($pdfFile) {
$attachment[] = $pdfFile;
}
}

$state = $mailer->send($buyer->getEmail(), $subject, $namespace, $data, [$attachment]);


Replace with

$state = $mailer->send($buyer->getEmail(), $subject, $namespace, $data);


3) general Documentation question: I would love to find all the answers in your documentation, but it is just not possible. Since your search is Google based and most of your Documentation is hidden after loging, Google will not index it, hence it will not search it. I would love NOT to bother you with these questions, but I can't find the answers to them...

I am sorry for the inconvenience caused to you, the documentation search bar is based on the keyword we added, for example, if you would like to find how to set up the Stripe payment gateway in Payplans, you can search this keyword "stripe".

But remember don't hesitate to ask if you still can't manage to find anything from our documentation, you can always ask in our forums.

Let me know if you will have any queries.
·
Thursday, 07 April 2022 12:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Micheal,

You are most welcome. Glad to hear that your issue has been resolved now.

Just for your information, I have locked and marked this thread as resolved to avoid confusion in the future. Please start a new thread if you have any other issues in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Thursday, 07 April 2022 16:29
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post