hook_ec_txn_workflow

Definition

hook_ec_txn_workflow($txn, $orig_txn)
ecommerce-5--4/docs/developer/hooks/core.php, line 434

Description

Process changes to the system when the transaction workflow changes

Whenever the workflow of a transaction changes the system will invoke this hook to allow the system to make changes outside of e-Commerce such as create transactions for the General Ledger interface.

Parameters

$txn The transaction object after the transaction has been saved.

$orig_txn The transaction object before the transaction was saved.

Code

<?php
function hook_ec_txn_workflow($txn, $orig_txn) {
  // TODO - Create example
}
?>