TGK Posted July 29, 2018 Share Posted July 29, 2018 Hi im looking for some help i have 3 currencies USD and 2 more, usd is default currency for all clients there is not way to change it.. then i want invoices show total in all currencies because im using other 2 currencies for Bank Transfer gateway and i set Convert to process to these currencies but invoice keep showing only in usd maybe is for USD is the client default currency.. i have automated payment gateways like paypal to usd thats is not problem. but for manual gateway like bank transfer i need clients can see invoice in these other 2 currencies or atleast the currency setted on Bank transfer gateway pd: display others 2 currencies in invoice is only for informative purpose, database can keep storing invoices totals in USD.. i just need client know what amount exchange he need pay in his local bank. leave a example: client buy a 100USD product choosing bank transfer gateway checkout process redirect him to invoice then than invoice show prices in 3 currencies Total 100.00 USD currency2 total 2800.00 currency3 total 3400.00 client go to local bank then pay in any other 2 currences lets say currency2 after he pay open a ticket then notice to the admin staff and i procced to mark as paid that invoice. sorry for my bad english thank you very much for your help to anyone who can help me. 0 Quote Link to comment Share on other sites More sharing options...
TGK Posted July 29, 2018 Author Share Posted July 29, 2018 i forgot to said doesnt matter if currency exchange rates change every day is not problem in my case, thanks 😀 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 29, 2018 Share Posted July 29, 2018 6 hours ago, TGK said: Hi im looking for some help i have 3 currencies USD and 2 more, usd is default currency for all clients there is not way to change it.. before taking any orders, you could have edited the USD currency and changed it to another currency, and then added alternate currencies too... but if you've already added them, no point in changing it now. it is also worth noting that clients can order using any currency that you have added to WHMCS - but after that initial order, they can only use the same currency... e.g they couldn't make their first order in USD, and then make their second order in EUR - they must continue to use USD for all orders. 6 hours ago, TGK said: then i want invoices show total in all currencies because im using other 2 currencies for Bank Transfer gateway and i set Convert to process to these currencies but invoice keep showing only in usd maybe is for USD is the client default currency.. I wouldn't have thought Convert To For Processing would work in the way you describe with an offline payment gateway like BankTransfer. 8 hours ago, TGK said: leave a example: client buy a 100USD product choosing bank transfer gateway checkout process redirect him to invoice then than invoice show prices in 3 currencies Total 100.00 USD currency2 total 2800.00 currency3 total 3400.00 client go to local bank then pay in any other 2 currencies lets say currency2 after he pay open a ticket then notice to the admin staff and i procced to mark as paid that invoice. what you will need are 3 things... an action hook to get the exchange rates from the currencies table in the database, create alternate currency totals and pass them back to the HTML invoice template. modify the HTML invoice template to show these additional currency totals. modify the PDF invoice template to query the database, create totals and output them. if you're using a custom theme, or already have customised invoice templates, then you might need to get a developer in to help you with this - but it's not technically difficult to do what you want. 2 Quote Link to comment Share on other sites More sharing options...
TGK Posted July 29, 2018 Author Share Posted July 29, 2018 Hi brian thanks for you help i sadly i dont have any developer im using custom template i know how put it in viewinvoice and invoice pdf the i can understand php codes but idont know how make a code .. i have other idea creating a alternative {$total} that not include prefix and sufix only number but it require hook too... well i gonna try find a developer.. im using custom templates Thanks brian☺ 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.