Re: New Module for $0 Orders

Posts: 15
Joined: 02/22/2008

WORKFLOW_NG "payment_entered" Event?

Just noticed that orders that were free were not having their status updated with workflow_ng. That is the payment_entered event isn't being fired.

Any Suggestions?

UPDATE:

I think i figured this one out. Please correct me if I am wrong:

in uc_free_order.module i added the following to the end of the file

<?php
/**
* Implementation of hook_order().
*/
function uc_free_order_order($op, &$arg1) {
  switch (
$op) {
    case
'submit':
      if (
module_exists('workflow_ng')) {
       
workflow_ng_invoke_event('payment_entered', uc_order_load($arg1->order_id));
      }
      break;
  }
}
?>

It seems to work fine.

--Nathan

New Module for $0 Orders By: Ryan (24 replies) Thu, 04/03/2008 - 17:47