Proma Posted November 4, 2016 Share Posted November 4, 2016 Hello everyone,I am currently developing a site requiring consideration of the address of the store rather than the customer's one as delivery address.I try to alter "id_address_delivery" as down-level as possible for impact all recurring calls in the full check-out & order process (shopping cart, order, product, notifications ...). I have already prepared a function that retrieves the address of the warehouse of my shop, so I just have to call it and replace the delivery id by it (ideally).I thought I had succeeded yesterday with an override of OrderController.php but it seems not working anymore for some reason, and I suspect it is down-level enough, perhaps with the CartController ...Someone can explain me the procedure to follow if I'm wrong? Otherwise what file(s) have I to change?Thank you, Link to comment Share on other sites More sharing options...
Proma Posted November 4, 2016 Author Share Posted November 4, 2016 I've finded an alternative to my first approach,i made a module fixed on hookActionCartSave and have forced cart-> id_address_delivery in the current context after getting my other id.Not sure this is the cleanest way but it seems to work (not over tested yet)See ya ! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now