Jump to content

[SOLVED] hookActionCartSave


Guest

Recommended Posts

Hi to all.
I need to change the minimum price for free shipping or change the shipping price in the module.

I use a hook:

public function hookActionCartSave($params)
    {
        $id_cart = $this->context->cart->id;
        $summary = array();
        $summary['total_shipping'] = $params['total_shipping'] + 10;
        Hook::exec('actionCartSummary', $summary, null, true);
    }

Unfortunately, it doesn't work.

I will add a condition and if the condition is met, for example, there will be no free shipping.

Thanks for the help.

Edited by Guest (see edit history)
Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...