Jump to content

[SOLVED] hookActionCartSave


Guest
 Share

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)

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More