Jump to content

Price Conversion on Invoices


davoram

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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