durangod Posted June 10, 2014 Share Posted June 10, 2014 (edited) 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. Edited June 10, 2014 by durangod 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted June 10, 2014 Author Share Posted June 10, 2014 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}¤cy={$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} 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 10, 2014 Share Posted June 10, 2014 ha, you beat me to it - was just about to post the same! also, remember that if you're using modern/slider, then this same code is in adddomain.tpl and viewcart.tpl too. 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted June 10, 2014 Author Share Posted June 10, 2014 Thanks brian, did not know that... right on Agent Ransack saves the day again , i still cringe thinking about the old days when i used to track code down manually. 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.