Forums / Developer / Auto rate currencies - execute via cronjob

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

eZ debug

Timing: Jan 21 2025 15:58:39
Script start
Timing: Jan 21 2025 15:58:39
Module start 'content'
Timing: Jan 21 2025 15:58:39
Module end 'content'
Timing: Jan 21 2025 15:58:39
Script end

Main resources:

Total runtime0.4658 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0098 587.8438180.8125
Module start 'content' 0.00980.0088 768.656397.9297
Module end 'content' 0.01860.4472 866.5859526.0000
Script end 0.4658  1,392.5859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00471.0088200.0002
Check MTime0.00130.2829200.0001
Mysql Total
Database connection0.00080.170410.0008
Mysqli_queries0.396185.03711410.0028
Looping result0.00190.41691390.0000
Template Total0.446295.810.4462
Template load0.00080.167110.0008
Template processing0.445495.612110.4454
Override
Cache load0.00050.113110.0005
Sytem overhead
Fetch class attribute can translate value0.00190.402510.0019
XML
Image XML parsing0.00030.069810.0003
General
dbfile0.01322.8398200.0007
String conversion0.00000.001330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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