Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.

You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page

Hook actionProductAdd

Informations

Product creation This hook is displayed after a product is created
Hook actionProductAdd
Locations
FO
Type action
Origin core
Aliases [addproduct]
Description This hook is displayed after a product is created

Located in

Origin File
core src/Adapter/Product/ProductDuplicator.php

Call of the Hook in the origin file

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