Post by CatfishTPA » Wed Jun 15, 2016 7:58 pm

On my site http://www.imc-world.com/ I have three currencies, displaying DOP - Euro - Dollar. Is there a way to change the order to Euro - Dollar - DOP ?

Newbie

Posts

Joined
Sun Sep 14, 2014 1:05 am

Post by imdevlper18 » Wed Jun 15, 2016 9:57 pm

By default it comes based on title as no sort order is given in currency.
You can open this file in filezilla.
catalog/model/localisation/currency.php

Code: Select all

Find this line
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "currency ORDER BY title ASC");

Change to
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "currency ORDER BY date_modified ASC");
Now currency shall appear based on date modified in ascending order.
You can try it.

Opencart Extensions | Professional opencart support | Support Ticket | support@cartbinder.com


User avatar
Active Member

Posts

Joined
Sun May 11, 2014 2:04 pm
Who is online

Users browsing this forum: No registered users and 3 guests