Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,075 of 9,075 pages
About the help in other languages
All help pages

workflow.ini for the shop

The parts of settings/workflow.ini that matter to a store - the available event types, the four shop triggers in AvailableOperationList, the SimpleShippingWorkflow amount and description, and how extensions add event…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/e-commerce/settings/workflow-ini-for-the-shop.md

On this page

workflow.ini for the shop

This page is for developers and administrators who connect workflows to the shop. settings/workflow.ini decides which workflow event types exist, which operations can trigger a workflow, and the amount of the flat shipping event. The workflows themselves are created in the administration.

Contents

  1. EventSettings
  2. OperationSettings
  3. SimpleShippingWorkflow
  4. Event types from extensions
  5. Checking the result

EventSettings

SettingShippedMeaning
RepositoryDirectories[]kernel/classes/workflowtypesWhere kernel event types are found
ExtensionDirectories[]emptyExtensions with a workflowtypes/event/<name>/ directory
AvailableEventTypes[]event_ezapprove, event_ezwaituntildate, event_ezsimpleshipping, event_ezmultiplexer, event_ezpaymentgateway, event_ezfinishuserregisterThe event types offered when you build a workflow

Of these, three matter to a store:

Event typeAllowed triggers (from the class)Store use
ezsimpleshippingshop / confirmorder / before onlyAdds one flat shipping line (Simple shipping event)
ezpaymentgatewayanyRuns the payment gateway; put it on shop_checkout (Payment gateway event)
ezmultiplexeranyRuns another workflow when conditions match (Multiplexer in the shop)

ezapprove and ezwaituntildate are tied to content publishing and ezfinishuserregister to user registration; they cannot be connected to shop triggers.

OperationSettings

AvailableOperationList[] lists the operations that may start a workflow. An entry without a prefix (shop_checkout) offers both a before and an after trigger; an entry starting with before_ or after_ offers only that one (the trigger list page parses the names this way, kernel/private/classes/views/trigger/list.php). Shipped:

EntryOperationTriggers offeredTypical event
content_publishcontent/publishbefore, afterapproval
before_shop_confirmordershop/confirmorderbeforeshipping
shop_checkoutshop/checkoutbefore (payment), after (once the order is activated and mailed)payment; reporting
shop_addtobasketshop/addtobasketbefore, afterchecks on items
shop_updatebasketshop/updatebasketbefore, afterchecks on quantities

The confirmorder operation has no after trigger point at all (kernel/shop/operation_definition.php), which is why its entry carries the before_ prefix. How each trigger fits into its operation is in Workflows on shop triggers.

SimpleShippingWorkflow

SettingShippedMeaning
ShippingCost12The flat amount added to every order, in the shop's currency; converted to the order's currency
ShippingDescriptionShippingThe text of the shipping line on the order

The amount is the same for every order. Set it in settings/override/workflow.ini.append.php.

Event types from extensions

An extension adds an event type by placing it in workflowtypes/event/<name>/<name>type.php, adding its own name to ExtensionDirectories[] and the type to AvailableEventTypes[] in its workflow.ini.append.php. The bcwebsitestatistics extension, for example, adds an ezreceipt event type that runs after checkout to report orders to an analytics service (Analytics for stores). Writing one is described in Writing a workflow event type.

Checking the result

Setup > Triggers lists every trigger from AvailableOperationList[] with the workflow connected to it, and Setup > Workflows shows each workflow's events (Workflows). The Store dashboard's "How your shop works" names the workflows on the shop triggers and warns when there is no payment step on checkout.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x