Index: branches/5.2.x/units/orders/orders_config.php =================================================================== diff -u -N -r14594 -r14641 --- branches/5.2.x/units/orders/orders_config.php (.../orders_config.php) (revision 14594) +++ branches/5.2.x/units/orders/orders_config.php (.../orders_config.php) (revision 14641) @@ -1,6 +1,6 @@ 'OnRecalculateItems', ), - /* OnApplyCoupon is called as hook for OnUpdateCart/OnCheckout, which calls OnRecalcualate themself - Array ( - 'Mode' => hAFTER, + Array( + 'Mode' => hBEFORE, 'Conditional' => false, - 'HookToPrefix' => 'coup', + 'HookToPrefix' => '', 'HookToSpecial' => '', - 'HookToEvent' => Array ( 'OnApplyCoupon' ), + 'HookToEvent' => Array( 'OnUpdateCart', 'OnUpdateCartJSON', 'OnCheckout' ), 'DoPrefix' => '', 'DoSpecial' => '', - 'DoEvent' => 'OnRecalculateItems', - ),*/ + 'DoEvent' => 'OnApplyCoupon', + ), + Array ( + 'Mode' => hBEFORE, + 'Conditional' => false, + 'HookToPrefix' => '', + 'HookToSpecial' => '', + 'HookToEvent' => Array( 'OnUpdateCart', 'OnUpdateCartJSON', 'OnCheckout' ), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnApplyGiftCertificate', + ), + Array ( 'Mode' => hAFTER, 'Conditional' => false,