How is auto update done to ac_currencies table. We want to update this table every 15 days insteady of every day. Is this possible. Or is it possible to point auto update to our custom currency table.
Appreciate any help.
Thank you.
Auto update currency
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
Re: Auto update currency
If you have auto update turned on through the merchant admin, no more than once per day your server calls out to the specified exchange rate provider and downloads current rates. You have a few options.
1) Implement the currently undocumented forex provider interface (CommerceBuilder.Stores.IForexProvider). To do this, create a new class that inherits from CommerceBuilder.Stores.ForexProviderBase. Make your custom provider pull exchange rates from your custom data table.
2) Disable auto updates and create some script that updates your exchange rates. Set up a scheduled task that runs your script on a schedule to update the exchange rates.
1) Implement the currently undocumented forex provider interface (CommerceBuilder.Stores.IForexProvider). To do this, create a new class that inherits from CommerceBuilder.Stores.ForexProviderBase. Make your custom provider pull exchange rates from your custom data table.
2) Disable auto updates and create some script that updates your exchange rates. Set up a scheduled task that runs your script on a schedule to update the exchange rates.
Cheers,
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Logan

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
-
- Commander (CMDR)
- Posts: 121
- Joined: Wed Dec 17, 2008 9:13 am
Re: Auto update currency
Looks like CommerceBuilder MaintenanceWorker class, Runmaintenance() method updates the currency. We have bought commerbuilder sourcecode and was wondering how this method is invoked to run on a daily basis.
Appreciate any help.
Appreciate any help.