Hook actionValidateCartRule
Alter cart rule validation process
Allow modules to implement their own rules to validate a cart rule.
| Hook |
actionValidateCartRule |
| Locations |
FO |
| Type |
action |
| Origin |
core |
| Aliases |
|
| Description |
Allow modules to implement their own rules to validate a cart rule. |
Located in
Call of the Hook in the origin file
Hook::exec(
'actionValidateCartRule',
[
'cart_rule' => $this,
'cart' => $cart,
'alreadyInCart' => $alreadyInCart,
'display_error' => $display_error,
'check_carrier' => $check_carrier,
'useOrderPrices' => $useOrderPrices,
'isValidatedByModules' => &$isValidatedByModules,
'isValidatedByModulesError' => &$isValidatedByModulesError,
]
);