Update Exchange Rate Cron Job

Open to all! Ask other shopowners for help.
Post Reply
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Update Exchange Rate Cron Job

Post by heatherbell »

What is the correct file/path for setting up a cron job to Update Exchange Rate?
TIA


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
burt
Core Team
Posts: 4561
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 422 times

Re: Update Exchange Rate Cron Job

Post by burt »

It would be *something* like;

wget --user your_admin_username --pass your_admin_password -spider "https://your_site.com/your_admin/currencies.php?action=update" >/dev/null 2>&1

Changing the obvious bits as appropriate. If it's not that, it may be worth asking host.
I am not here to build for you.
I am here to build with you. Let's help each other.
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Update Exchange Rate Cron Job

Post by heatherbell »

burt wrote: Fri Nov 10, 2023 9:33 am It would be *something* like;
TY
Cron Jobs can be set in the control panel of our host (I think cPanel is the same) and only require the "path to the script".
So I guess, that is, your_admin/currencies.php?action=update.
User avatar
burt
Core Team
Posts: 4561
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 422 times

Re: Update Exchange Rate Cron Job

Post by burt »

Possibly. Give it a go (setting it up as your Panel suggests) and see if it runs.
If it runs...happy days.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply