Skip to content
Open
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
14 changes: 14 additions & 0 deletions templates/_partials/notifications.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
* LICENSE.md file that was distributed with this source code.
*}

{hook h='displayDynamicFragmentBefore'
name='notifications'
template='_partials/notifications.tpl'
notifications=$notifications|default:false
page=$page|default:false
product=$product|default:false
}
{if isset($notifications)}
<div id="notifications">
<div class="container">
Expand Down Expand Up @@ -76,3 +83,10 @@
</div>
</div>
{/if}
{hook h='displayDynamicFragmentAfter'
name='notifications'
template='_partials/notifications.tpl'
notifications=$notifications|default:false
page=$page|default:false
product=$product|default:false
}
10 changes: 10 additions & 0 deletions templates/catalog/product.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,17 @@
{/block}

{block name='product_add_to_cart'}
{hook h='displayDynamicFragmentBefore'
name='product_add_to_cart'
template='catalog/_partials/product-add-to-cart.tpl'
product=$product
}
{include file='catalog/_partials/product-add-to-cart.tpl'}
{hook h='displayDynamicFragmentAfter'
name='product_add_to_cart'
template='catalog/_partials/product-add-to-cart.tpl'
product=$product
}
{/block}

{block name='product_additional_info'}
Expand Down
Loading