PrestaShop Developer Conference
PrestaShop Developer Conference
November 6, 2024
Let's talk code, commerce and open source.

Hook actionShopDataDuplication

Informations

Hook actionShopDataDuplication
Locations
FO
Type action
Origin core
Aliases

Located in

Origin File
core classes/shop/Shop.php

Parameters details

    <?php
    array(
      'old_id_shop' => (int) Old shop ID,
      'new_id_shop' => (int) New shop ID
    );

Call of the Hook in the origin file

Hook::exec('actionShopDataDuplication', [
                        'old_id_shop' => (int) $old_id,
                        'new_id_shop' => (int) $this->id,
                    ], $m['id_module'])