unclouded Posted June 21, 2015 Share Posted June 21, 2015 Hey all, I'm looking to use {$invoice_link} as a button in an HTML email, but {$invoice_link} produces the a tag as well. I want to use something like this: <a href="{$invoice_link}">Click Here</a> But what I get is <a href="<a href="http://linktoinvoice.com">http://linktoinvoice.com</a>">Click Here</a> I'd like a merge tag which just produces the actual URL, not an hypertext link. Is there a way we can do this? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 22, 2015 Share Posted June 22, 2015 I can think of three ways to do this... either write an action hook to create a new merge field without the html; use multiple Smarty replaces to remove the parts you don't want... or use other existing variables to recreate the URL - something along the lines of... <a href="{$whmcs_url}/viewinvoice.php?id={$invoice_id}">Click Here</a> 1 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.