forforumita Posted October 8, 2016 Share Posted October 8, 2016 Hello guys, I would like to change the order of the laguages on the top heade of my site. Is it possible? Thanks Link to comment Share on other sites More sharing options...
El Patron Posted October 8, 2016 Share Posted October 8, 2016 Go the BO>Localizations> Languages and try to reorder them from there. are you on phone so you could not try? lol you cannot order languages, I wish. //requires modification to add ORDER to DB Call //I have not tested adding an ORDER parm //see classes/langugage.php /** * Load all languages in memory for caching */ public static function loadLanguages() { self::$_LANGUAGES = array(); $sql = 'SELECT l.*, ls.`id_shop` FROM `'._DB_PREFIX_.'lang` l LEFT JOIN `'._DB_PREFIX_.'lang_shop` ls ON (l.id_lang = ls.id_lang)'; $result = Db::getInstance()->executeS($sql); foreach ($result as $row) { if (!isset(self::$_LANGUAGES[(int)$row['id_lang']])) { self::$_LANGUAGES[(int)$row['id_lang']] = $row; } self::$_LANGUAGES[(int)$row['id_lang']]['shops'][(int)$row['id_shop']] = true; } } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now