Jump to content

Recalculate Order Total Pricement and all other taxes / prices


EarzS

Recommended Posts

Hello, 

 

My problem is the following:

I have to create a module that when a order is made, certain products in the order must have pricement 0, so the admin can set the prices later. I managed to set the code in "newOrder" hook setting all the order details (products) pricement to 0. However when i try updating the order total pricement it doesn't work, it sets the original total pricement.

 

My question is the following:

 

- Is there a way to make the order recalculate it's total pricement / taxes after updating all the order details via code?

- Is there another order hook that will allow me edit the order total pricement? so i can set it to 0 if the former question is not found? That way i think the order total will be recalculated after the admin sets the new pricements.

 

Any help would be appreciated,

Thanks.

 

Link to comment
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...