Jump to content

[How To Guide] Conditional Display For Mass Mail Based On Client Currency


D9Hosting

Recommended Posts

We currently run a single multi-currency WHMCS system and wanted to mass mail all of our clients, but we faced an issue when we wanted to mention product prices, as we needed to show a different price based on the clients currency.

 

There is no $currency variable available by default, but (thanks to Andrew from support!) the $client_credit variable would bring back $xxx.xx USD, so we can get the currency from that.

 

So to put it to use, you can use the following in mass mail templates to display different info to your clients depending on their currency.

 

{if substr_count($client_credit, "GBP")}You are billed in GBP{else}You are billed in USD{/if}

 

Hope it's of use to someone else! :-P

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