MartinPorter Posted June 12, 2018 Share Posted June 12, 2018 Hi.. Can anyone tell me if you can setup a cron job to update the exchange rates in whmcs? thanks & kind regards Martin... 0 Quote Link to comment Share on other sites More sharing options...
Experthost Posted June 15, 2018 Share Posted June 15, 2018 in settings > automation settings, you'll find: Currency Auto Update Settings Exchange Rates Tick this box to attempt to auto update exchange rates daily Product Prices Tick this box to update product prices using the current exchange rate daily 0 Quote Link to comment Share on other sites More sharing options...
MartinPorter Posted June 15, 2018 Author Share Posted June 15, 2018 I was meaning, updating every 3 to 6 hrs not once a day. thanks Martin... 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Technical Analyst WHMCS Sachin Posted June 20, 2018 WHMCS Technical Analyst Share Posted June 20, 2018 Yes, you can surely create such a cron job to update the exchange rates as frequently as you want. Something like this should do the trick: php -q /path/to/cron.php do --CurrencyUpdateExchangeRates More information on how to manipulate the cron to do specific tasks can be found here: https://docs.whmcs.com/Crons 0 Quote Link to comment Share on other sites More sharing options...
MartinPorter Posted June 20, 2018 Author Share Posted June 20, 2018 Hi thanks for the information, i have look at the link you sent me and also at the cron command "--CurrencyUpdateExchangeRates" but I'm getting an output sent back to me with "No input file specified" could you help me? thanks & kind regards Martin.... 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Technical Analyst WHMCS Sachin Posted June 21, 2018 WHMCS Technical Analyst Share Posted June 21, 2018 On 6/20/2018 at 4:01 PM, MartinPorter said: Hi thanks for the information, i have look at the link you sent me and also at the cron command "--CurrencyUpdateExchangeRates" but I'm getting an output sent back to me with "No input file specified" could you help me? thanks & kind regards Martin.... Can you provide the full cron command that you are using, here? 0 Quote Link to comment Share on other sites More sharing options...
MartinPorter Posted June 21, 2018 Author Share Posted June 21, 2018 maybe have this wrong - but this how I have written it php -q /home/domain_name/whmcsdata/crons/php do --CurrencyUpdateExchangeRates thanks Martin... 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.