Page 1 of 1

User delivery & billing address in customer profile section

Posted: 24 Mar 2017, 13:54
by Aswathy.S
How to show the customer's billing address and delivery address in customer profile plug-in.Is it possible? Now it is shows in checkout page.

Re: User delivery & billing address in customer profile sect

Posted: 24 Mar 2017, 15:44
by aimeos
They are not shown by default but you can use the "account/profile" HTML client to display that information. If you would like to show the data only, you can add the code to display it in the account/profile/body-default.php template:
https://github.com/aimeos/ai-client-htm ... efault.php

The customer item and the address items are available as "profileCustomerItem" and "profileAddressItems" as you can see here: https://github.com/aimeos/ai-client-htm ... d.php#L358

In case customers should also be able to modify their data, the best thing would be to create two new subparts for this component ("Payment" for the customer payment data, "Delivery" for the delivery addresses). How to create new subparts is described there:
https://aimeos.org/docs/Developers/Html ... w_subparts

Re: User delivery & billing address in customer profile sect

Posted: 24 Mar 2017, 20:34
by aimeos
BTW: We would love to get this into the Aimeos core if you share your code :-)