Page 1 of 1
Auto update currency
Posted: Thu Sep 03, 2009 7:22 am
by Carolharry
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.
Re: Auto update currency
Posted: Thu Sep 03, 2009 9:43 am
by Logan Rhodehamel
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.
Re: Auto update currency
Posted: Thu Oct 22, 2009 7:43 am
by Carolharry
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.
Re: Auto update currency
Posted: Thu Oct 22, 2009 7:59 am
by mazhar