Shop-Checkout-After trigger

Shop-Checkout-After trigger

Tuesday 15 June 2010 8:45:39 am - 2 replies

Modified on Tuesday 15 June 2010 8:46:54 am by Sergi A

Author Message

Carlos Revillo

Tuesday 15 June 2010 11:24:58 am

have you tried...

eZBasket::currentBasket();

?

Since there, you can get all the info about the basket.

H-Works Agency

Friday 25 February 2011 3:59:01 am

Hello,

When does "checkout-after" trigger is supposed to execute the workflow code ?

When i try to add a workflow on that trigger its never executed.

Is it in kernel/shop/checkout.php ?

I identified that trigger "checkout->after" is only executed at this line in kernel/shop/checkout :

$operationResult = eZOperationHandler::execute( 'shop', 'checkout', array( 'order_id' => $orderID) ) ;

The problem is : This line is in a "if" statement testing if order is temporary or not (= accepted or not) thus "checkout->after" is never triggered if the order has been accepted.

It looks like a serious misconception has its not possible in ezpublish to create a workflow to manage stock for example when an order is accepted.

EZP is Great

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.