Jump to content

Change delivery address on checkout programmatically


Recommended Posts

Hello everyone.


I am trying to figure out how i can change the delivery address programmatically, depending on what address the customer has entered. (The customer enters an address, it goes through a php script that changes the address to something else and returns it)


I have absolutely no idea where to change the address variables.


Could you give me a clue?


Thanks :)


Best regards,


Link to comment
Share on other sites

assuming you are using PS v1.5, and one page checkout, you should start with the OrderOpcController.php file. Search for updateAddressesSelected and read through the code


If you are using 5 page checkout, you want to review processAddress function in OrderController.php.

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