How to run an event after an order has been confirmed

Author Message

Eirik Alfstad Johansen

Wednesday 04 February 2004 4:13:58 am

Hi,

As mentioned in a previous post, I'm unable to run a workflow containing my custom even using the shop|confirmorder|after trigger. However, when I use the workflow in conjunction with the shop|confirmorder|before trigger, everything works fine.

The problem is that the event uses data from the order, so I really can't run it unless the order has been confirmed. Anyone know of a way around this? Willie mentioned something about a hack in a previous post, but didn't say anything about how this was accomplished.

Thanks in advance !

Sincerely,

Eirik Johansen

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Heath

Sunday 03 June 2007 7:59:36 pm

I know this thread is very old but I was searching for a similar solution and wanted to make a note of this here ...

<b>Answer</b>

Simply add an entry for 'shop_confirmorder' to the settings override file for workflow.ini

AvailableOperationList[]
AvailableOperationList[]=before_shop_confirmorder
AvailableOperationList[]=shop_confirmorder

Reference: <i>http://ez.no/doc/ez_publish/technical_manual/3_8/reference/configuration_files/workflow_ini/operationsettings/availableoperations</i>

Cheers!

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

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 18 2025 20:56:25
Script start
Timing: Jan 18 2025 20:56:25
Module start 'layout'
Timing: Jan 18 2025 20:56:25
Module start 'content'
Timing: Jan 18 2025 20:56:26
Module end 'content'
Timing: Jan 18 2025 20:56:26
Script end

Main resources:

Total runtime0.7327 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 588.1406152.6406
Module start 'layout' 0.00600.0029 740.781339.4766
Module start 'content' 0.00890.7223 780.2578530.6719
Module end 'content' 0.73120.0015 1,310.929712.1250
Script end 0.7327  1,323.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4513160.0002
Check MTime0.00130.1728160.0001
Mysql Total
Database connection0.00110.146210.0011
Mysqli_queries0.682393.1167540.0126
Looping result0.00060.0831520.0000
Template Total0.700295.620.3501
Template load0.00180.241720.0009
Template processing0.698495.320520.3492
Template load and register function0.00010.011710.0001
states
state_id_array0.00090.122210.0009
state_identifier_array0.00100.137720.0005
Override
Cache load0.00150.1989180.0001
Sytem overhead
Fetch class attribute can translate value0.00080.106820.0004
Fetch class attribute name0.00120.170540.0003
XML
Image XML parsing0.00100.142920.0005
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00170.2256230.0001
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs