PrestaShop Developer Conference
PrestaShop Developer Conference
Paris, France - November 30, 2023
Let's talk code, commerce and open source.

Hook actionProductAdd

Aliases:

  • addproduct

Information

Product creation:

This hook is displayed after a product is created

Hook locations:

  • front office

Hook type: action

Located in:

Call of the Hook in the origin file

dispatchWithParameters(
            'actionProductAdd',
            ['id_product_old' => $oldProductId, 'id_product' => $newProductId, 'product' => $newProduct]
        )