alpe09ag Posted July 23, 2014 Share Posted July 23, 2014 (edited) Hi, I need EUR and DKK to switch positions in my layout (so that I have all english related to the left and danish related to the right). Anybody knows how to do that? (See attachment.) Edited July 23, 2014 by alpe09ag (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted July 23, 2014 Share Posted July 23, 2014 in this case it will be necessary to alter currency class (classes/Currency.php) there is a funciton public static function getCurrencies($object = false, $active = true, $group_by = false) { $tab = Db::getInstance()->executeS(' SELECT * FROM `'._DB_PREFIX_.'currency` c '.Shop::addSqlAssociation('currency', 'c'). ' WHERE `deleted` = 0'. ($active ? ' AND c.`active` = 1' : ''). ($group_by ? ' GROUP BY c.`id_currency`' : ''). ' ORDER BY `name` ASC'); if ($object) foreach ($tab as $key => $currency) $tab[$key] = Currency::getCurrencyInstance($currency['id_currency']); return $tab; } change order by name ASC to order by name DESC Link to comment Share on other sites More sharing options...
alpe09ag Posted July 23, 2014 Author Share Posted July 23, 2014 in this case it will be necessary to alter currency class (classes/Currency.php) there is a funciton public static function getCurrencies($object = false, $active = true, $group_by = false) { $tab = Db::getInstance()->executeS(' SELECT * FROM `'._DB_PREFIX_.'currency` c '.Shop::addSqlAssociation('currency', 'c'). ' WHERE `deleted` = 0'. ($active ? ' AND c.`active` = 1' : ''). ($group_by ? ' GROUP BY c.`id_currency`' : ''). ' ORDER BY `name` ASC'); if ($object) foreach ($tab as $key => $currency) $tab[$key] = Currency::getCurrencyInstance($currency['id_currency']); return $tab; } change order by name ASC to order by name DESC Hi Vekia, Thank you so much for your help! Link to comment Share on other sites More sharing options...
vekia Posted July 23, 2014 Share Posted July 23, 2014 you're welcome can you confirm that it works? Link to comment Share on other sites More sharing options...
alpe09ag Posted August 24, 2014 Author Share Posted August 24, 2014 you're welcome can you confirm that it works? I confirm that it works. Link to comment Share on other sites More sharing options...
Recommended Posts