Custom delivery address option in checkout page

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!
sijueraju
Posts: 4
Joined: 27 Mar 2017, 07:33

Custom delivery address option in checkout page

Post by sijueraju » 27 Mar 2017, 07:44

In my requirement I need to add a custom delivery address option in checkout page. Is it possible to add a third option after "Like billing address" and "New address" with some input fields to enter address details ?
Attachments
delivery address.png
delivery address.png (16.85 KiB) Viewed 2454 times

gilbertsoft
Posts: 28
Joined: 18 Nov 2016, 10:35

Re: Custom delivery address option in checkout page

Post by gilbertsoft » 27 Mar 2017, 14:48

Of course yes, but you have to adapt the whole address parts of the checkout process.

Have a look at typo3conf/ext/aimeos/Resources/Private/Extensions/ai-client-html/client/html/templates/checkout/standard/address-delivery-body-default.php. Perhaps you have the change the code in typo3conf/ext/aimeos/Resources/Private/Extensions/ai-client-html/client/html/src/Client/Html/Checkout/Standard/Address too.

Don't forget to make this changes in your own extension and not directly in the files mentioned above.

Hope this helps a little bit!

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

Re: Custom delivery address option in checkout page

Post by aimeos » 27 Mar 2017, 21:08

Create a decorator for the checkout/address/delivery HTML client (https://aimeos.org/docs/Developers/Html ... components), implement the "getBody()" and "process()" methods to retrieve the data you need and save it to the basket afterwards. In the delivery address template you can add the new block.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

sijueraju
Posts: 4
Joined: 27 Mar 2017, 07:33

Re: Custom delivery address option in checkout page

Post by sijueraju » 28 Mar 2017, 12:42

Thank you for your replies

Post Reply