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
3 changes: 3 additions & 0 deletions templates/catalog/_partials/miniatures/product.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
{/if}
</div>

{hook h='displayProductPriceBlock' product=$product type="price"}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What sense does it make to put two exact hooks here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hooks differ from the parameter 'type'.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still the same question, why you cannot use the ones there, if they are on the same place?

{hook h='displayProductPriceBlock' product=$product type="after_price"}

{hook h='displayProductPriceBlock' product=$product type='unit_price'}

{hook h='displayProductPriceBlock' product=$product type='weight'}
Expand Down
4 changes: 3 additions & 1 deletion templates/catalog/_partials/product-prices.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
{/if}
</div>
{/if}


{hook h='displayProductPriceBlock' product=$product type="before_price"}

<div class="product__prices-inline product__prices-inline--small-gap">
<div class="product__price">
{capture name='custom_price'}{hook h='displayProductPriceBlock' product=$product type='custom_price' hook_origin='product_sheet'}{/capture}
Expand Down