Auto update currency

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Carolharry
Commander (CMDR)
Commander (CMDR)
Posts: 121
Joined: Wed Dec 17, 2008 9:13 am

Auto update currency

Post by Carolharry » Thu Sep 03, 2009 7:22 am

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.

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: Auto update currency

Post by Logan Rhodehamel » Thu Sep 03, 2009 9:43 am

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.
Cheers,
Logan
Image.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.

Carolharry
Commander (CMDR)
Commander (CMDR)
Posts: 121
Joined: Wed Dec 17, 2008 9:13 am

Re: Auto update currency

Post by Carolharry » Thu Oct 22, 2009 7:43 am

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.


Post Reply