Page 1 of 1

Custom delivery address option in checkout page

Posted: 27 Mar 2017, 07:44
by sijueraju
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 ?

Re: Custom delivery address option in checkout page

Posted: 27 Mar 2017, 14:48
by gilbertsoft
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!

Re: Custom delivery address option in checkout page

Posted: 27 Mar 2017, 21:08
by aimeos
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.

Re: Custom delivery address option in checkout page

Posted: 28 Mar 2017, 12:42
by sijueraju
Thank you for your replies