filetobackup Posted March 6, 2015 Share Posted March 6, 2015 Is there a way to add HTML to mail in payment? Right now it only allows Text. Here is Why. I am trying to accept PaySimple Echecks via WHMCS and would like a link to the Paysimple invoice forum if they choose that option. Thanks for your time. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted March 6, 2015 Share Posted March 6, 2015 yes you can use HTML inside email templates you may add IF statements and manage all of this from EmailPreSend action hook 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 6, 2015 Share Posted March 6, 2015 I suspect the simplest way to do this would be to modify the viewinvoice.tpl template -exactly how might depend on the specific template you're using, but for the "Default" theme, you could replace {$paymentbutton} with... {if $paymentmodule eq "mailin"}{$paymentbutton|cat:'additional text<br/><a href=\"http://www.google.com\">simple link</a>'}{else}{$paymentbutton}{/if} if Mail In Payment is chosen, it displays the text you've already added to the Payment Gateway and then adds some additional text with a link - if you just want to add the link, remove... additional text<br/> - all other payment gateways will just show the text and/or buttons as before. 0 Quote Link to comment Share on other sites More sharing options...
SistemasyServicios Posted November 7, 2021 Share Posted November 7, 2021 Hello, I know this is an old thread but Is there a way to add a lang key to the code above? Thanks for the reply 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.