Auto rate currencies - execute via cronjob

Author Message

steve walker

Monday 25 June 2007 9:40:49 am

Hi there,

We are using the (excellent) auto rate currencies on an ecommerce website.

It's all working fine when you click 'update auto rates' in the webshop backend, but i want to automate this via cronjob.

Is there an easy way to do this?

Many thanks, Steve.

http://www.oneworldmarket.co.uk

steve walker

Tuesday 26 June 2007 7:15:37 am

any takers?

http://www.oneworldmarket.co.uk

Kristof Coomans

Tuesday 26 June 2007 9:33:03 am

Hi Steve

You'll probably have to write your own cron job to do this, AFAIK there is no cronjob yet to do this.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

kracker (the)

Tuesday 26 June 2007 10:02:12 am

While no cronjob exists to do this at this moment.

Cronjobs are one of the simplest advanced topics / constructs in eZ to create!

We created and added a cronjob to the existing contribution,
http://pubsvn.ez.no/community/trunk/extension/collectexport/

Which provides and extends the export of collected information content object information like feedback forms via the admin with a cronjob which does this job as an automated task / cronjob.

You can use this as a reference and guide to creating your own by reviewing the commit log for the added and modified files,
http://pubsvn.ez.no/websvn/log.php?repname=community&path=%2Ftrunk%2Fextension%2Fcollectexport%2F&sc=1

For more information on cronjobs, try http://ezpedia.org
http://ezpedia.org/wiki/content/search?SearchText=cronjob
http://ezpedia.org/wiki/en/ez/collectexport
http://ezpedia.org/wiki/en/ez/cronjob

<i>//kracker</i>

<b>beastie boys - (we have the ez) skills to pay the bills</b>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

steve walker

Thursday 28 June 2007 1:25:41 am

Thanks very much for the information Kracker.

Steve.

http://www.oneworldmarket.co.uk

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 01:22:18
Script start
Timing: Jan 31 2025 01:22:18
Module start 'layout'
Timing: Jan 31 2025 01:22:18
Module start 'content'
Timing: Jan 31 2025 01:22:18
Module end 'content'
Timing: Jan 31 2025 01:22:18
Script end

Main resources:

Total runtime0.0240 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.2656151.2266
Module start 'layout' 0.00550.0045 739.4922220.7188
Module start 'content' 0.00990.0126 960.21091,001.8359
Module end 'content' 0.02250.0015 1,962.046933.9922
Script end 0.0240  1,996.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003012.3212140.0002
Check MTime0.00114.5876140.0001
Mysql Total
Database connection0.00072.971410.0007
Mysqli_queries0.002510.290330.0008
Looping result0.00000.066510.0000
Template Total0.00114.410.0011
Template load0.00093.570610.0009
Template processing0.00020.794710.0002
Override
Cache load0.00052.284910.0005
General
dbfile0.00104.236480.0001
String conversion0.00000.042740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs