ePages 6.10 - DE_EPAGES/Order/Hooks/Basket.pm

Package DE_EPAGES::Order::Hooks::Basket

Hook functions for basket to order process.

Functions

OnBasket2OrderAddress
OnBasket2OrderExecutePayment
OnBasket2OrderHirePurchase
OnBasket2OrderMinAmount
OnBasket2OrderPayment
OnBasket2OrderShippingPaymentMethods
OnBasket2OrderTAC
OnBasket2OrderTax

OnBasket2OrderAddress

UI_Basket2Order triggered, to interrupt order process to give the user the possiblity to change billing, shipping address. Its possible to prevent the interruption with the basket attribute 'IsAddressOK' = 1.

Syntax
OnBasket2OrderAddress( $hParams );
Input
$hParams (ref.hash.*)
hook arguments, used keys are
  • Basket
  • Servlet

OnBasket2OrderExecutePayment

UI_Basket2Order triggered, to interrupt order process to give the user the possiblity to go to payment server. The payment method has to handle if it has already all data. Attention: everything else should be handled before!

Syntax
OnBasket2OrderExecutePayment( $hParams );
Input
$hParams (ref.hash.*)
hook arguments, used key is
  • Basket

OnBasket2OrderHirePurchase

UI_Basket2Order triggered, to interrupt order process. $PaymentLineItem->hirePurchase($hParams) is called. The payment method has to handle if it has already all data.

Syntax
OnBasket2OrderHirePurchase( $hParams );
Input
$hParams (ref.hash.*)
hook arguments, used key is
  • Basket

OnBasket2OrderMinAmount

UI_Basket2Order triggered, to interrupt order process to test if the minimal order amount was reached.

Syntax
OnBasket2OrderMinAmount( $hParams );
Input
$hParams (ref.hash.*)
hook arguments, used keys are
  • Basket
  • Servlet

OnBasket2OrderPayment

UI_Basket2Order triggered, to interrupt order process to give the user the possiblity to insert some payment data. The payment method has to handle if it has already all data.

Syntax
OnBasket2OrderPayment( $hParams );
Input
$hParams (ref.hash.*)
hook arguments, used key is
  • Basket

OnBasket2OrderShippingPaymentMethods

UI_Basket2Order triggered, to interrupt order process to test if the countries of regions from the payment- and shippingmethods consits the countries from the Billing- and Shippingaddress If the test failed the Basket Objects is shown.

Syntax
OnBasket2OrderShippingPaymentMethods( $hParams );
Input
$hParams (ref.hash.*)
hook arguments, used keys are
  • Basket
  • Servlet

OnBasket2OrderTAC

UI_Basket2Order triggered, to interrupt order process to give the user the possiblity to accept the terms and conditions. Its possible to prevent the interruption with the basket attribute 'IsTacOK' = 1.

Syntax
OnBasket2OrderTAC( $hParams );
Input
$hParams (ref.hash.*)
hook arguments, used keys are
  • Basket
  • Servlet

OnBasket2OrderTax

UI_Basket2Order triggered, to interrupt order process to give the user the possiblity to change billing, shipping address. Its possible to prevent the interruption with the basket attribute 'IsAddressOK' = 1.

Syntax
OnBasket2OrderTax( $hParams );
Input
$hParams (ref.hash.*)
hook arguments, used keys are
  • Basket
  • Servlet