Skip to content

Commit

Permalink
Add hooks from Hummingbird
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas nares committed Dec 27, 2023
1 parent c1cd63b commit 5a42749
Show file tree
Hide file tree
Showing 47 changed files with 762 additions and 302 deletions.
19 changes: 12 additions & 7 deletions modules/concepts/hooks/list-of-hooks/actionProductOutOfStock.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
---
Title: actionProductOutOfStock
hidden: true
hookTitle: 'Out-of-stock product'
hookTitle: Out-of-stock product
files:
-
theme: Classic
url: 'https://github.com/PrestaShop/classic-theme/blob/develop/templates/catalog/_partials/product-details.tpl'
file: 'Classic Theme: templates/catalog/_partials/product-details.tpl'
theme: classic
url: https://github.com/PrestaShop/classic-theme/blob/develop/templates/catalog/_partials/product-details.tpl
file: themes/classic/templates/catalog/_partials/product-details.tpl
-
theme: hummingbird
url: https://github.com/PrestaShop/hummingbird-theme/blob/develop/templates/catalog/product.tpl
file: themes/hummingbird/templates/catalog/product.tpl

locations:
- 'front office'
- front office
type: action
hookAliases:
- productOutOfStock
- productOutOfStock
origin: theme
array_return: false
check_exceptions: false
chain: false
description: 'This hook displays new action buttons if a product is out of stock'
description: This hook displays new action buttons if a product is out of stock

---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
---
Title: displayAdditionalCustomerAddressFields
hidden: true
hookTitle: 'Display additional customer address fields'
hookTitle: Display additional customer address fields
files:
-
theme: Classic
url: 'https://github.com/PrestaShop/classic-theme/blob/develop/templates/customer/_partials/block-address.tpl'
file: 'Classic Theme: templates/customer/_partials/block-address.tpl'
theme: classic
url: https://github.com/PrestaShop/classic-theme/blob/develop/templates/customer/_partials/block-address.tpl
file: themes/classic/templates/customer/_partials/block-address.tpl
-
theme: hummingbird
url: https://github.com/PrestaShop/hummingbird-theme/blob/develop/templates/customer/_partials/block-address.tpl
file: themes/hummingbird/templates/customer/_partials/block-address.tpl

locations:
- 'front office'
- front office
type: display
hookAliases:
origin: theme
array_return: false
check_exceptions: false
chain: false
description: "This hook allows to display extra field values added in an address form using hook 'additionalCustomerAddressFields'"
description: This hook allows to display extra field values added in an address form using hook 'additionalCustomerAddressFields'

---

Expand Down
19 changes: 12 additions & 7 deletions modules/concepts/hooks/list-of-hooks/displayAfterBodyOpeningTag.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
---
Title: displayAfterBodyOpeningTag
hidden: true
hookTitle: 'Very top of pages'
hookTitle: Very top of pages
files:
-
theme: Classic
url: 'https://github.com/PrestaShop/classic-theme/blob/develop/templates/layouts/layout-both-columns.tpl'
file: 'Classic Theme: templates/layouts/layout-both-columns.tpl'
theme: classic
url: https://github.com/PrestaShop/classic-theme/blob/develop/templates/layouts/layout-both-columns.tpl
file: themes/classic/templates/layouts/layout-both-columns.tpl
-
theme: hummingbird
url: https://github.com/PrestaShop/hummingbird-theme/blob/develop/templates/layouts/layout-both-columns.tpl
file: themes/hummingbird/templates/layouts/layout-both-columns.tpl

locations:
- 'front office'
- front office
type: display
origin: theme
hookAliases:
origin: theme
array_return: false
check_exceptions: false
chain: false
description: 'Use this hook for advertisement or modals you want to load first'
description: Use this hook for advertisement or modals you want to load first

---

Expand Down
17 changes: 11 additions & 6 deletions modules/concepts/hooks/list-of-hooks/displayAfterProductThumbs.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
---
Title: displayAfterProductThumbs
hidden: true
hookTitle: 'Display extra content below product thumbs'
hookTitle: Display extra content below product thumbs
files:
-
theme: Classic
url: 'https://github.com/PrestaShop/classic-theme/blob/develop/templates/catalog/_partials/product-cover-thumbnails.tpl'
file: 'Classic Theme: templates/catalog/_partials/product-cover-thumbnails.tpl'
theme: classic
url: https://github.com/PrestaShop/classic-theme/blob/develop/templates/catalog/_partials/product-cover-thumbnails.tpl
file: themes/classic/templates/catalog/_partials/product-cover-thumbnails.tpl
-
theme: hummingbird
url: https://github.com/PrestaShop/hummingbird-theme/blob/develop/templates/catalog/_partials/product-cover-thumbnails.tpl
file: themes/hummingbird/templates/catalog/_partials/product-cover-thumbnails.tpl

locations:
- 'front office'
- front office
type: display
hookAliases:
origin: theme
array_return: false
check_exceptions: false
chain: false
description: 'This hook displays new elements below product images ex. additional media'
description: This hook displays new elements below product images ex. additional media

---

Expand Down
17 changes: 11 additions & 6 deletions modules/concepts/hooks/list-of-hooks/displayAfterTitleTag.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
---
Title: displayAfterTitleTag
hidden: true
hookTitle: 'After title tag'
hookTitle: After title tag
files:
-
theme: Classic
url: 'https://github.com/PrestaShop/classic-theme/blob/develop/templates/_partials/head.tpl'
file: 'Classic Theme: templates/_partials/head.tpl'
theme: classic
url: https://github.com/PrestaShop/classic-theme/blob/develop/templates/_partials/head.tpl
file: themes/classic/templates/_partials/head.tpl
-
theme: hummingbird
url: https://github.com/PrestaShop/hummingbird-theme/blob/develop/templates/_partials/head.tpl
file: themes/hummingbird/templates/_partials/head.tpl

locations:
- 'front office'
- front office
type: display
hookAliases:
origin: theme
array_return: false
check_exceptions: false
chain: false
description: 'Use this hook to add content after title tag'
description: Use this hook to add content after title tag

---

Expand Down
17 changes: 11 additions & 6 deletions modules/concepts/hooks/list-of-hooks/displayBanner.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
---
Title: displayBanner
hidden: true
hookTitle: 'Very top of pages'
hookTitle: Very top of pages
files:
-
theme: Classic
url: 'https://github.com/PrestaShop/classic-theme/blob/develop/templates/_partials/header.tpl'
file: 'Classic Theme: templates/_partials/header.tpl'
theme: classic
url: https://github.com/PrestaShop/classic-theme/blob/develop/templates/_partials/header.tpl
file: themes/classic/templates/_partials/header.tpl
-
theme: hummingbird
url: https://github.com/PrestaShop/hummingbird-theme/blob/develop/templates/_partials/header.tpl
file: themes/hummingbird/templates/_partials/header.tpl

locations:
- 'front office'
- front office
type: display
hookAliases:
origin: theme
array_return: false
check_exceptions: false
chain: false
description: 'Use this hook for banners on top of every pages'
description: Use this hook for banners on top of every pages

---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
---
Title: displayBeforeBodyClosingTag
hidden: true
hookTitle: 'Very bottom of pages'
hookTitle: Very bottom of pages
files:
-
theme: Classic
url: 'https://github.com/PrestaShop/classic-theme/blob/develop/templates/layouts/layout-both-columns.tpl'
file: 'Classic Theme: templates/layouts/layout-both-columns.tpl'
theme: classic
url: https://github.com/PrestaShop/classic-theme/blob/develop/templates/layouts/layout-both-columns.tpl
file: themes/classic/templates/layouts/layout-both-columns.tpl
-
theme: hummingbird
url: https://github.com/PrestaShop/hummingbird-theme/blob/develop/templates/layouts/layout-both-columns.tpl
file: themes/hummingbird/templates/layouts/layout-both-columns.tpl

locations:
- 'front office'
- front office
type: display
hookAliases:
origin: theme
array_return: false
check_exceptions: false
chain: false
description: 'Use this hook for your modals or any content you want to load at the very end'
description: Use this hook for your modals or any content you want to load at the very end

---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
---
Title: displayCMSDisputeInformation
hidden: true
hookTitle:
hookTitle: displayCMSDisputeInformation
files:
-
theme: Classic
url: 'https://github.com/PrestaShop/classic-theme/blob/develop/templates/cms/page.tpl'
file: 'Classic Theme: templates/cms/page.tpl'
theme: classic
url: https://github.com/PrestaShop/classic-theme/blob/develop/templates/cms/page.tpl
file: themes/classic/templates/cms/page.tpl
-
theme: hummingbird
url: https://github.com/PrestaShop/hummingbird-theme/blob/develop/templates/cms/page.tpl
file: themes/hummingbird/templates/cms/page.tpl

locations:
- 'front office'
- front office
type: display
hookAliases:
origin: theme
array_return: false
check_exceptions: false
chain: false
description: ''
description:

---

Expand Down
17 changes: 11 additions & 6 deletions modules/concepts/hooks/list-of-hooks/displayCMSPrintButton.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
---
Title: displayCMSPrintButton
hidden: true
hookTitle:
hookTitle: displayCMSPrintButton
files:
-
theme: Classic
url: 'https://github.com/PrestaShop/classic-theme/blob/develop/templates/cms/page.tpl'
file: 'Classic Theme: templates/cms/page.tpl'
theme: classic
url: https://github.com/PrestaShop/classic-theme/blob/develop/templates/cms/page.tpl
file: themes/classic/templates/cms/page.tpl
-
theme: hummingbird
url: https://github.com/PrestaShop/hummingbird-theme/blob/develop/templates/cms/page.tpl
file: themes/hummingbird/templates/cms/page.tpl

locations:
- 'front office'
- front office
type: display
hookAliases:
origin: theme
array_return: false
check_exceptions: false
chain: false
description: ''
description:

---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
---
Title: displayCartExtraProductActions
hidden: true
hookTitle: 'Extra buttons in shopping cart'
hookTitle: Extra buttons in shopping cart
files:
-
theme: Classic
url: 'https://github.com/PrestaShop/classic-theme/blob/develop/templates/checkout/_partials/cart-detailed-product-line.tpl'
file: 'Classic Theme: templates/checkout/_partials/cart-detailed-product-line.tpl'
theme: classic
url: https://github.com/PrestaShop/classic-theme/blob/develop/templates/checkout/_partials/cart-detailed-product-line.tpl
file: themes/classic/templates/checkout/_partials/cart-detailed-product-line.tpl
-
theme: hummingbird
url: https://github.com/PrestaShop/hummingbird-theme/blob/develop/templates/checkout/_partials/cart-detailed-product-line.tpl
file: themes/hummingbird/templates/checkout/_partials/cart-detailed-product-line.tpl

locations:
- 'front office'
- front office
type: action
hookAliases:
origin: theme
array_return: false
check_exceptions: false
chain: false
description: 'This hook adds extra buttons to the product lines, in the shopping cart'
description: This hook adds extra buttons to the product lines, in the shopping cart

---

Expand Down
21 changes: 15 additions & 6 deletions modules/concepts/hooks/list-of-hooks/displayCartModalContent.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
---
Title: displayCartModalContent
hidden: true
hookTitle: 'Content of Add-to-cart modal'
hookTitle: Content of Add-to-cart modal
files:
-
theme: Classic
url: 'https://github.com/PrestaShop/classic-theme/blob/develop/modules/ps_shoppingcart/modal.tpl'
file: 'Classic Theme: modules/ps_shoppingcart/modal.tpl'
module: ps_shoppingcart
url: https://github.com/PrestaShop/ps_shoppingcart/blob/dev/modal.tpl
file: modules/ps_shoppingcart/modal.tpl
-
theme: classic
url: https://github.com/PrestaShop/classic-theme/blob/develop/modules/ps_shoppingcart/modal.tpl
file: themes/classic/modules/ps_shoppingcart/modal.tpl
-
theme: hummingbird
url: https://github.com/PrestaShop/hummingbird-theme/blob/develop/modules/ps_shoppingcart/modal.tpl
file: themes/hummingbird/modules/ps_shoppingcart/modal.tpl

locations:
- 'front office'
- front office
type: display
hookAliases:
origin: theme
array_return: false
check_exceptions: false
chain: false
description: 'This hook displays content in the middle of the window that appears after adding product to cart'
description: This hook displays content in the middle of the window that appears after adding product to cart

---

Expand Down
Loading

0 comments on commit 5a42749

Please sign in to comment.