Hook actionPresentProduct
Product Presenter
This hook is called before a product is presented
Hook |
actionPresentProduct |
Locations |
FO |
Type |
action |
Origin |
core |
Aliases |
|
Description |
This hook is called before a product is presented |
Located in
Call of the Hook in the origin file
Hook::exec('actionPresentProduct',
['presentedProduct' => &$productLazyArray]
)
Example on how to change values
public function hookActionPresentProduct(array $hookParams)
{
/* Change show price to 0 to hide the product price */
$params['presentedProduct']->offsetSet('show_price', 0, true);
}