ePages 6.11.0 - DE_EPAGES/Product/Hooks/Order.pm

Package DE_EPAGES::Product::Hooks::Order

set StockLevel and test Status for Order and Basket

Functions

BeforeEditOrder2Order
OnAfterUpdateCustomerOrder
OnBeforeUpdateCustomerOrder
OnInsertCustomerOrder
OnOrderCreated
OnSaveOrder2Order

BeforeEditOrder2Order

Set the correct StockLevel for ordered Products on a editable order.

Syntax
BeforeEditOrder2Order( $hParams );
Input
$hParams (ref.hash.*)

  • Order

OnAfterUpdateCustomerOrder

Send mail with download information for order with downloadproducts if order is paid.

Syntax
OnAfterUpdateCustomerOrder ( $hParams );
Input
$hParams (ref.hash.*)

  • Object
  • OrderID

OnBeforeUpdateCustomerOrder

Set the correct StockLevel if an order was cancelled.

Syntax
OnBeforeUpdateCustomerOrder( $hParams );
Input
$hParams (ref.hash.*)

  • Object
  • OrderID

OnInsertCustomerOrder

Set the correct StockLevel for ordered Products.

Syntax
OnInsertCustomerOrder( $hParams );
Input
$hParams (ref.hash.*)

  • Order

OnOrderCreated

Send mail with download information for order with downloadproducts.

Syntax
OnOrderCreated ( $hParams );
Input
$hParams (ref.hash.*)
primary key of tax class, key is
  • Object - order - object

OnSaveOrder2Order

Triggered by hook UI_SaveOrder2Order. Saves MaxDownloadTime and MaxDownloadCounts for lineitems with downloadproducts.

Syntax
OnSaveOrder2Order ( $hParams );
Input
$hParams (ref.hash.*)

  • Servlet