Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.
You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page
Hook | actionProductPriceCalculation |
---|---|
Locations | BO |
Type | action |
Origin | core |
Aliases | |
Description | This hook is called into the priceCalculation method to be able to override the price calculatio |
Origin | File |
---|---|
core | classes/Product.php |
Hook::exec('actionProductPriceCalculation', [
'id_shop' => $id_shop,
'id_product' => $id_product,
'id_product_attribute' => $id_product_attribute,
'id_customization' => $id_customization,
'id_country' => $id_country,
'id_state' => $id_state,
'zip_code' => $zipcode,
'id_currency' => $id_currency,
'id_group' => $id_group,
'id_cart' => $id_cart,
'id_customer' => $id_customer,
'use_customer_price' => $use_customer_price,
'quantity' => $quantity,
'real_quantity' => $real_quantity,
'use_tax' => $use_tax,
'decimals' => $decimals,
'only_reduc' => $only_reduc,
'use_reduc' => $use_reduc,
'with_ecotax' => $with_ecotax,
'specific_price' => &$specific_price,
'use_group_reduction' => $use_group_reduction,
'address' => $address,
'context' => $context,
'specific_price_reduction' => &$specific_price_reduction,
'price' => &$price,
]);