Forums / Developer / Workflow Update Basket

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Workflow Update Basket

Author Message

Wenzel Wondra

Tuesday 07 April 2009 10:15:16 am

Hi @all,

I made a WorkflowEventType and assigned it to "updatebasket/before"... Now I check some attributes of the basket and if something is not ok, I need to return to the basket and set a message there.

function execute( $process, $event )
{
...
$tpl = templateInit();
$tpl->setVariable('myeventerror' , 'errorcode');
return eZWorkflowType::STATUS_REJECTED;
}

I get redirected to the basket, but $myeventerror is not available :(

What am I doing wrong?
Any help would be appreciated :)

regards,
wewo