Timeline for Set value to created customer custom attribute in magento 2
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 14, 2021 at 9:00 | comment | added | Francesco Gasparetto | Loading the object directly from the factory is deprecated since Magento 2.3. The correct way is to use Service Contract: $customer = $this->customerRepository->getById($customerId); | |
Jun 3, 2021 at 11:32 | comment | added | Zankar | @PurushotamSharma this code will save customer attribute, not an address attribute. An address is a separate entity type from customer. This here should work: magento.stackexchange.com/a/205265/44585 for saving custom address attributes. | |
May 22, 2019 at 11:03 | comment | added | Char | this worked great! and using the repository to save the model is the correct way of doing this in Magento2 | |
Dec 11, 2018 at 12:51 | comment | added | Jafar Pinjar | @SanjayVadadoriya, its not worked for me even i the type is text | |
Sep 24, 2018 at 9:53 | comment | added | Sanjay Vadadoriya | this is working perfect for custom attribute with text type. thanks @sabarivenkatesankrish | |
Jun 26, 2018 at 8:44 | history | edited | sabarivenkatesankrish | CC BY-SA 4.0 |
added 70 characters in body
|
Mar 28, 2018 at 13:27 | comment | added | Purushotam Sharma | This code not working in magento 2.2.3, please suggest if you have any alternate solution please share as I want to save custom customer address attribute value programmatically. | |
Sep 5, 2017 at 11:45 | comment | added | Developer Webile | Thanks for responding. but this won't work. You are saving attribute with type text, i have image type and need to save from external URL. | |
Sep 5, 2017 at 8:51 | history | edited | sabarivenkatesankrish | CC BY-SA 3.0 |
added 16 characters in body
|
Sep 5, 2017 at 8:40 | history | answered | sabarivenkatesankrish | CC BY-SA 3.0 |