Jump to content

Multi currency


web-toast

Recommended Posts

Hi i am atm selling web hosting to the uk using whmcs it is working fine but i want to sell to the US, the problem is when they click the order the currency is in GBP. So my question is .. is there a way to view USD and GBP prices when they order from me ?

 

Thanks in advance.

Link to comment
Share on other sites

You could almost certainly edit the order process to show USD prices - what we do is show dual currencies on the invoices based on our client's location. So if they're in the US, we show them GBP (our primary) and USD, based on a rough exchange rate.

 

Something like this:

 

{if $clientsdetails.country eq "US"}
~${math equation="x * y" x=$total y=1.9331 format="%.2f"} USD
{/if}

Not sure if it needs US or United States there.

 

Still charge in GBP for those pesky accountants though :)

Link to comment
Share on other sites

  • 1 year later...
This works in the email templates and returns 5. {math equation="(y / z )" y=10 z=2}

 

So how can I use the invoice_total to calculate? I tried many variations of this but it doesn't work...

 

{math equation="(y / z )" y=$invoice_total z=2}

 

Any ideas?

 

Try adding before the {math ... } line something like:

 

Invoice Total Goes Here: "{ $invoice_total }" ... just to see exactly what's inside the variable.

 

Your math equation line looks fine so it must be something to do with whats assigned to $invoice_total.

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