Hook actionCheckAttributeQuantity

Informations

Check product attribute quantity availability Allows modules to validate or override the stock availability check for a specific product combination.
Hook actionCheckAttributeQuantity
Locations
FO
Type action
Origin core
Aliases
Description Allows modules to validate or override the stock availability check for a specific product combination.

This hook has a $check_exceptions parameter set to false (check permission exceptions, see explaination here).

This hook has a $chain parameter set to true (hook will chain the return of hook module, see explaination here).

Located in

Origin File
core classes/ProductAttribute.php

Call of the Hook in the origin file

Hook::exec(
            'actionCheckAttributeQuantity',
            [
                'id_product_attribute' => $idProductAttribute,
                'qty' => $qty,
                'shop' => $shop,
            ],
            null,
            false,
            true,
            false,
            null,
            true
        );