Hook actionUpdateQuantity

Aliases:

  • updateQuantity

Information

Quantity update:

Quantity is updated only when a customer effectively places their order

Hook locations:

  • front office

Hook type: action

Located in:

Parameters details

    <?php
    array(
      'id_product' => (int) Product ID,
      'id_product_attribute' => (int) Product attribute ID,
      'quantity' => (int) New product quantity
    );

Call of the Hook in the origin file

Hook::exec(
                        'actionUpdateQuantity',
                                    [
                                        'id_product' => $id_product,
                                        'id_product_attribute' => 0,
                                        'quantity' => $product_quantity,
                                        'id_shop' => $id_shop,
                                    ]
                    )