Jump to content

Problem with actionsavecart hook updating carrier


Recommended Posts

 

i'm dealing with a problem, I need to change the carrier if the cart amount of product with certain tags  is > 500 , so , I'm hooking actionCartSave and checking the amount , but , when I do

$cart->id_carrier=(int)$carrier_id;
$cart->update();

The ajax stops responding and the request remains in pending... like in a loop, then i need to reload the page to see if a product has been added to the cart, but if i remove the $cart->update() the ajax request is successful but , the carrier does not get updated. How can i solve this?

Share this post


Link to post
Share on other sites

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...

Important Information

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