I think they will either have to make the changes - or tell you the correct command to use
Printable View
I think they will either have to make the changes - or tell you the correct command to use
Yep, you were right, thanks! I just had the cron job set up incorrectly. Works wonderfully now!
I am sorry I didn't see your questions before. Oh well at least you have it working now!
Hi,
Today i install your module and it work fine,but i check rate of USD - VND and USD -GPB in xe.com and see it just 1 USD - 16020 VND and 1 USD - 0.50 GPB
When i click on update in admin ,the rate of high then in xe.com
1 USD - 17450 VND and 1 USD - 0.53 GPB
:cry: Can you tell me how to fix this?
KIMSON
The difference is because the add-in module and Zen Cart work slightly differently.
The add-in module goes and gets the current mid-price for each currency and puts it in your database.
When you click on the update currency button to do a manual update, Zen Cart goes to the same places for the currencies but before putting them in your database, it applies a currency uplift factor to allow for the difference between the market mid-rate and the rate that you as a seller will actually get from your bank.
By default Zen Cart applies a 5% currency uplift equivalent to a whopping 10% currency spread. Unless you're working with an "exotic" currency, you will probably want to change this amount on the Admin > configuration > My Store page (near the bottom) to something more reasonable.
To apply the same uplift effect via the module would require some code changes.
Hi Kimson.
As it's Christmas, I've updated the mod to take account of Zen Cart's currency conversion ratio and uploaded the new version to the Admin section of the downloads area. So that automated and manual currency updates now give the same results.
That's curious since it only has 44 lines of code and the only loop cycles only as many times as you have currencies. With what frequency are you running your CRON job?
Hello,
The problem might not always be with cron. Generally, if you run php from console, you should define where php resides on your system. Locate your php binary and add this to the first line of the currency_update.php:
#!/usr/bin/php
When the file (with +x rights) is run, it will tell the system to use the /usr/bin/php to interpret its contents.
The plugin works extremely well, big thanks to the author :-)