web-toast Posted April 15, 2007 Share Posted April 15, 2007 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. 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted April 15, 2007 Share Posted April 15, 2007 Hey, No you can only chose one currency at this time.... From, Adam 0 Quote Link to comment Share on other sites More sharing options...
Dominic Posted April 15, 2007 Share Posted April 15, 2007 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 0 Quote Link to comment Share on other sites More sharing options...
inyerface Posted November 26, 2008 Share Posted November 26, 2008 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? 0 Quote Link to comment Share on other sites More sharing options...
gservat Posted November 27, 2008 Share Posted November 27, 2008 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. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted November 27, 2008 Share Posted November 27, 2008 (edited) Try this in the email template (${math equation="x * y" x=$invoice_total|regex_replace:"/[uSD$ ]/":"" y=1.22828 format="%.2f"} CAD) I'm working on an api to get realtime conversion rates. http://tshosting.com.au/currencyapi.php?amt=66.00&from=AUD&to=USD Edited November 27, 2008 by sparky 0 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.