Jump to content

Set new added address as delivery


gr4devel

Recommended Posts

Hi community, a very specific question today :)

 

Is there a proper way (by not touching the core PS files!) to automatically set the new added address during the OPC as the delivery one instead of the invoice one?

 

I've found that in the address controller there's a check that set the cart address invoice as the one created but there's nothing about the delivery address.

 

Is there some way to set this last by only touching the templates?

Link to comment
Share on other sites

Community? :(

 

Didn't I explain myself clearly?

 

If so, and if anyone is interested in this question, please write me :).

 

Btw: I've already implemented a method to automatically choose the new added address in the OPC checkout as the invoice or delivery address when returned from the address addition. However I've modified not only the theme but also the core  AddressController, in which there's the possibility to automatically choose only the invoice address.

 

I'm planning to ask a pull request on github but before I want to be sure that there's no better method to accomplish what I (and maybe other) need.

 

:)

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