Can we set up a cron task

  • Posts: 110
  • Thank you received: 0
13 years 8 months ago #11200

Hi

We have the latest 1.4.7 stable version of HikaShop (the free version not the commercial version). We are also including 3 different currencies on our website: USD, GBP and EUR.

My server company are pretty good at letting us run Cron Tasks. What info do we need to set up the Cron task to update our currencies on our own server? All the doumentation I've found on your support section is focused on the commercial version of the software.

Please advise.

Last edit: 13 years 8 months ago by deborahharrison.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #11202

Hi,

The code to update the currency rates is only included in the commercial version of HikaShop. So just setting up a cron won't be enough as there won't be any code in HikaShop to update the rates. That's why we only mention the commercial editions on our end :)

Please Log in or Create an account to join the conversation.

  • Posts: 110
  • Thank you received: 0
13 years 8 months ago #11215

That is a shame :( Is there any workaround we can use for the free version?

Last edit: 13 years 8 months ago by deborahharrison.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #11217

You can always write a script to update the currency rates based on a rate feed on your end and update hikashop's currency rates in that script. Then, you can just trigger that script with your cron.

Please Log in or Create an account to join the conversation.

  • Posts: 110
  • Thank you received: 0
13 years 8 months ago #11227

OK. Any advice and help on how to achieve that would be gratefully received!!

I know basic PHP and how to amend PHP scripting but I'm about a year away from writing anything that advanced.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #11230

Well, you can look at that page: www.ecb.int/stats/exchange/eurofxref/html/index.en.html
Under the developer tab they explain how to retrieve the currency rates. Then, you can just run some queries in the table hikashop_currency to update the rates.

Not that I want to insist but buying hikashop essential to have that feature would cost you 50€. If you work one day on that script, it will cost you more in man power than what it would if you would just buy it from us.

Please Log in or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum