Jump to content

mexican payment flag icon is blank


durangod

Recommended Posts

I added MXN to my currency but when i show the order form the flag is all white, nothing else, just a little white box instead of a mexican flag. The flag properties says. WHMCS/images/flags/na.png

 

Whats that about, WHMCS has no mexican icon for payment?

 

 

UPDATE: I am surprised that WHMCS supports currencies as USD, EUR, JPY, BGN, CZK, DKK, EEK, GBP, HUF, LTL, LVL, PLN, RON, SEK, CHF, NOK, HRK, RUB, TRY, AUD, BRL, CAD, CNY, HKD, IDR, INR, KRW, MXN, MYR, NZD, PHP, SGD, THB & ZAR

 

But only has 9 flag icons and 1 blank icon for everything else. I guess thats the problem.

 

 

ok so i found a icon and i added it to the images directory, NOW how do i make WHMCS see it for the MXN currency?

 

Here is the image.

 

mx.png

Edited by durangod
Link to comment
Share on other sites

Figured it out. All you have to do is add the code inside of

 

templates/orderforms/comparison/products.tpl

 

Just make sure you save your image as mx.png

 

 

You can see where i added the code below right after

"ZAR"}za

 

i just added this

 

{elseif $curr.code eq "MXN"}mx

 

 

full section of code

 


{if !$loggedin && $currencies}
<div class="currencychooser">
{foreach from=$currencies item=curr}
<a href="cart.php?gid={$gid}&currency={$curr.id}"><img src="images/flags/{if $curr.code eq "AUD"}au{elseif $curr.code eq "CAD"}ca{elseif $curr.code eq "EUR"}eu{elseif $curr.code eq "GBP"}gb{elseif $curr.code eq "INR"}in{elseif $curr.code eq "JPY"}jp{elseif $curr.code eq "USD"}us{elseif $curr.code eq "ZAR"}za{elseif $curr.code eq "MXN"}mx{else}na{/if}.png" border="0" alt="" /> {$curr.code}</a>
{/foreach}
</div>
<div class="clear"></div>
{/if}


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