I have try this code, the language show in text, but links are incorrect.
Code: Select all
<a href="index.php?language=<?php echo $language['code']; ?>"><?php echo $language['name']; ?>
Default code from opencart
Code: Select all
<img src="image/flags/<?php echo $language['image']; ?>" alt="<?php echo $language['name']; ?>" title="<?php echo $language['name']; ?>" onclick="$('input[name=\'language_code\']').attr('value', '<?php echo $language['code']; ?>'); $(this).parent().parent().submit();" />