Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

'Purchase'-event

‘Purchase'-event

The ‘purchase’-event is triggered after an order has been checked out. Therefore you need to configure the buy event workflow. Follow the chapter ´Create purchase event´ to create the workflow and set the triggers.

From now on, every time an order is checked out the Recommendation extension will track each product purchased in this order.

´Purchase´-events require a volume, price and currency. The price must be the smallest unit of a currency and can only be an integer. An exemplary function call (in case you do not use the above described workflow) looks like this:

<div {generate_buy_event($node, 1, 1199, 'EUR')}>
 click here to create BUY event </div>

It will send out an event which informs the recommender engine that one item defined by the node id was bought for 1199 cents, which means 11,99 EUR.

Andrea Melo (29/05/2012 3:38 pm)

Andrea Melo (31/05/2012 9:34 am)


Comments

There are no comments.