RFree190 Posted May 1, 2008 Share Posted May 1, 2008 I am looking to add some text to the invoice. I already figured out how to add static text, but it doesn't solve my problem. I have two payment gateways activated. Mail in Payment and PayPal. I would like to add instructions under the two PayPal buttons explaining that one is for subscriptions and one is for a single payment. But, I would rather not have the text show up if Mail In payment is the selected gateway. Is there a way to only add the text under the PayPal buttons??? Thanks!! Rick 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted May 1, 2008 WHMCS CEO Share Posted May 1, 2008 In the invoice, you can add something like this: {if $paymentmethod eq "PayPal"} <p align="center">Text goes here...</p> {/if} Matt 0 Quote Link to comment Share on other sites More sharing options...
dutchnet Posted May 1, 2008 Share Posted May 1, 2008 I haven't tried it but would this be of any help to get you on the way? if ($paymentmethod="PayPal") { $paymentinstruction="PayPal payment instructions"; } else { $paymentinstruction="Any other payment"; } $pdf->SetX(125); $pdf->Write(5,$paymentinstruction); If you have long text to print you can also write $pdf->MultiCell(180, 3, $paymentinstruction,0,L); 0 Quote Link to comment Share on other sites More sharing options...
RFree190 Posted May 1, 2008 Author Share Posted May 1, 2008 Thank you to both of you! I will give this a try. Rick 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.