Jump to content

{$invoice_link} without the html code


Recommended Posts

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?

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated