davoram Posted January 31, 2009 Share Posted January 31, 2009 Hi new here, I need help with this, I set my currency on my whmcs in USD but in the invoice when the client chooses bank transfer I want to display the total amount in other currency. I want this to display on the top of the invoice where the Bank Transfer Instructions are. I saw this already on a website, how can I do a conversion and display it only when they choose bank transfer ? please help. Thanks in Advance 0 Quote Link to comment Share on other sites More sharing options...
dkent Posted January 31, 2009 Share Posted January 31, 2009 Hi new here, I need help with this, I set my currency on my whmcs in USD but in the invoice when the client chooses bank transfer I want to display the total amount in other currency. I want this to display on the top of the invoice where the Bank Transfer Instructions are. I saw this already on a website, how can I do a conversion and display it only when they choose bank transfer ? please help. Thanks in Advance Hmm, I don't know what to suggest to be honest, therefore I think asking Matt directly will help you better. He may suggest an idea for this. 0 Quote Link to comment Share on other sites More sharing options...
davoram Posted January 31, 2009 Author Share Posted January 31, 2009 This code makes the conversion {if $clientsdetails.country eq "Mexico"} ${math equation="x * y" x=$total y=14.50 format="%.2f"} pesos {/if} What I just cannot do is to make it appear just when the client chooses gateway "bank transfer" right now it appears on all gateways... Here is the code I have on viewinvoice.tpl , please help me with this... {if $status eq "Unpaid"} <font class="unpaid">{$LANG.invoicesunpaid}</font><br /> {if $allowchangegateway} <form method="post" action="{$smarty.server.PHP_SELF}?id={$invoiceid}">{$gatewaydropdown}</form> {else} {$paymentmethod}<br /> {/if} {$paymentbutton|replace:'https://www.paypal.com/en_US/i/btn/':'http://www.direnet.net/hosting/imagenes/'} {if $clientsdetails.country eq "Mexico"} ${math equation="x * y" x=$total y=14.50 format="%.2f"} pesos {/if} {elseif $status eq "Paid"} Thanks 0 Quote Link to comment Share on other sites More sharing options...
davoram Posted January 31, 2009 Author Share Posted January 31, 2009 I know about the Bank Transfer Instructions on the Payment Gateway setup but there I cannot add this code only text, or can I ? I have the code that makes a currency conversion until this step everything is fine What I just cannot do is to make it appear just when the client chooses gateway "bank transfer" right now it appears on all gateways... Here is the code I have on viewinvoicetpl , please help me with this... Thanks hope someone can help 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.