How can I overwrite billing address(checkout process) from laravel controller function

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: How can I overwrite billing address(checkout process) from laravel controller function

Post by aimeos » 26 May 2022, 08:37

The address is added to the basket and if you change the address afterwards, the address in the basket is still the copy of the original address. To update the address in the basket, you have to add the new address to the basket again to overwrite the old one.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: How can I overwrite billing address(checkout process) from laravel controller function

Post by aimeos » 29 May 2022, 07:07

You don't have to delete the previous address in the basket. Instead, you can overwrite it by passing the same type and position (usually 0) when using the basket controller:
https://github.com/aimeos/ai-controller ... #L128-L136
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply