Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.

You might want to look at the current version, PrestaShop 8. Read the current version of the documentation

Hook actionCartGetPackageShippingCost

Informations

After getting package shipping cost value This hook is called in order to allow to modify package shipping cost
Hook actionCartGetPackageShippingCost
Locations
FO
Type action
Origin core
Aliases
Description This hook is called in order to allow to modify package shipping cost

Located in

Origin File
core classes/Cart.php

Call of the Hook in the origin file

Hook::exec(
            'actionCartGetPackageShippingCost',
            [
                'cart' => $this,
                'id_carrier' => $id_carrier,
                'use_tax' => $use_tax,
                'default_country' => $default_country,
                'product_list' => $product_list,
                'id_zone' => $id_zone,
                'keepOrderPrices' => $keepOrderPrices,
                'shippingCost' => &$shippingCost,
            ]
        );