From ed09777cea9135ccf678c91aaac8e89991ef4a61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Viguier?= <16720275+jf-viguier@users.noreply.github.com> Date: Fri, 20 Oct 2023 16:02:16 +0200 Subject: [PATCH] Add actionTaxManager hook --- .../hooks/list-of-hooks/actionTaxManager.md | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 modules/concepts/hooks/list-of-hooks/actionTaxManager.md diff --git a/modules/concepts/hooks/list-of-hooks/actionTaxManager.md b/modules/concepts/hooks/list-of-hooks/actionTaxManager.md new file mode 100644 index 0000000000..a743e061de --- /dev/null +++ b/modules/concepts/hooks/list-of-hooks/actionTaxManager.md @@ -0,0 +1,30 @@ +--- +Title: actionTaxManager +hidden: true +hookTitle: 'Tax Manager Factory' +files: + - + url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/classes/tax/TaxManagerFactory.php' + file: classes/tax/TaxManagerFactory.php +locations: + - 'front office' +type: action +hookAliases: taxManager +array_return: false +check_exceptions: false +chain: false +origin: core +description: 'This hook is launched by the Tax Manager Factory' + +--- + +{{% hookDescriptor %}} + +## Call of the Hook in the origin file + +```php +$tax_manager = $module_instance->hookTaxManager([ + 'address' => $address, + 'params' => $type, +]); +```