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)
#4075 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 476 times
#4081 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!
#4089 by aimeos
27 Mar 2017, 21:08
Create a decorator for the checkout/address/delivery HTML client (https://aimeos.org/docs/Developers/Html_frontend/Extend_existing_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.