Jump to content

Email customization variables


Recommended Posts

Hi,

I was tryng to get in the invoices email the total amount to pay but without value simbols or letters.

 

Using {$invoice_balance} I get the amount in the forma € 100,00EUR , I need to get only the 100.00 value, how can I do it?

 

Thanks to all

 

(using last WHMCS version)

Link to comment
Share on other sites

Hi,

 

You have several options. If you're using only EUR currency, you can use replace with Smarty.

{$invoice_balance|replace:'€ ':''|replace:'EUR:''}

With multiple currencies on paper you could do the same thing with multiple replace statements but it's a bit odd. In this case you should use Hooks:EmailPreSend and rebuild your $invoice_balance variable.

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.

Guest
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