outlet.ee Posted April 11, 2015 Share Posted April 11, 2015 I need the cron to update all the currencies but apparently id does only the active ones. I tried to change all the .`active` = 1' into .`active` <= 1' in currency-related files but it didn't do anything. Does anybody know a good solution for this, so all the currencies will be updated? Link to comment Share on other sites More sharing options...
PascalVG Posted April 11, 2015 Share Posted April 11, 2015 Outlet, What version of PS do you use? Can you copy the whole definition/contents of function: public static function getCurrencies($object = false, $active = true, $group_by = false) and function: public static function refreshCurrencies() (they are located in classes/Currency.php, but I think you knew already) pascal. (P.S. In 1.6.0.14, both active AND inactive are being refreshed, so maybe it's something else...) Link to comment Share on other sites More sharing options...
outlet.ee Posted April 12, 2015 Author Share Posted April 12, 2015 Thank you, PS1.5.2 but planning to move to the latest in few months, so both versions need to be changed. Link to comment Share on other sites More sharing options...
PascalVG Posted April 12, 2015 Share Posted April 12, 2015 Please copy and paste the two functions I asked above... 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