Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
Title: actionOverrideShippingFreePrice
hidden: true
hookTitle: 'Override price that determines free shipping'
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/classes/Cart.php'
file: classes/Cart.php
locations:
- 'front office'
type: action
hookAliases:
array_return: false
check_exceptions: false
chain: false
origin: core
description: 'Allows modules to override the free shipping price and return their custom value, for example to specify it by zone or other criteria.'

---

{{% hookDescriptor %}}

## Call of the Hook in the origin file

```php
Hook::exec('actionOverrideShippingFreePrice', ['shippingFreePrice' => &$shippingFreePrice, 'id_zone' => $id_zone, 'id_currency' => $this->id_currency]);
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
Title: actionOverrideShippingFreeWeight
hidden: true
hookTitle: 'Override weight that determines free shipping'
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/classes/Cart.php'
file: classes/Cart.php
locations:
- 'front office'
type: action
hookAliases:
array_return: false
check_exceptions: false
chain: false
origin: core
description: 'Allows modules to override the free shipping weight and return their custom value, for example to specify it by zone or other criteria.'

---

{{% hookDescriptor %}}

## Call of the Hook in the origin file

```php
Hook::exec('actionOverrideShippingFreeWeight', ['shippingFreeWeight' => &$shippingFreeWeight, 'id_zone' => $id_zone, 'id_currency' => $this->id_currency]);
```
29 changes: 29 additions & 0 deletions modules/concepts/hooks/list-of-hooks/actionPresentCartProduct.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
Title: actionPresentCartProduct
hidden: true
hookTitle: ''
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/src/Adapter/Presenter/Cart/CartProductPresenter.php'
file: src/Adapter/Presenter/Cart/CartProductPresenter.php
locations:
- 'front office'
type: action
hookAliases:
array_return: false
check_exceptions: false
chain: false
origin: core
description: ''

---

{{% hookDescriptor %}}

## Call of the Hook in the origin file

```php
Hook::exec('actionPresentCartProduct',
['presentedProduct' => &$cartProductLazyArray]
);
```
27 changes: 27 additions & 0 deletions modules/concepts/hooks/list-of-hooks/displayModalContent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
Title: displayModalContent
hidden: true
hookTitle: ''
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/themes/hummingbird/templates/layouts/layout-both-columns.tpl'
file: themes/hummingbird/templates/layouts/layout-both-columns.tpl
locations:
- 'front office'
type: display
hookAliases:
array_return: false
check_exceptions: false
chain: false
origin: core
description: ''

---

{{% hookDescriptor %}}

## Call of the Hook in the origin file

```php
{hook h='displayModalContent'};
```
Loading