Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [customer-address]

Denotes question related to customer-address in magento 1 and magento 2

0
votes
0answers
26 views

Magento 2: How to load another customer data on checkout instead of current logged in customer via custom module?

I want to show a customers list as dropdown on checkout page and when I change the customer from that dropdown list, All details like shipping addresses, customer detail should be change according to ...
5
votes
1answer
94 views

Magento 2 - What is the LayoutProcessor for addresses in the admin panel?

When adding a field to the address form of the checkout in the front end I could do so by creating a plugin for \Magento\Checkout\Block\Checkout\LayoutProcessor. I would like to add the same field ...
1
vote
1answer
31 views

Custom address attribute: issue on display value magento 2

I have created a custom attribute for customer address. I can see the attribute on admin, I can insert value on frontend, the value saved successfully (and it displayed in address preview) however if ...
2
votes
2answers
101 views

How to get Region text from address id (Magento 2)

I am not able to get region text from address id, <?php $_pAddsses = $block->getDefaultBilling() ?> <?php echo $block->getAddressById($_pAddsses)->getRegionId() ?> // ...
1
vote
0answers
7 views

Is there any way to retain the entered customer billing/shipping addresses in magento admin once entered?

We see that the addresses of billing/shipping added to the order creation process gets erased if we remove all line items from the cart and then add back new product using "Add products by SKU" button....
4
votes
0answers
22 views

Load default address when logged in on magento2

I want to load magento2.1 default address on my cart page address box when i'm logged in. mean that, when i'm in one step checkout page and logged in, in my address part, see default address instead ...
1
vote
0answers
35 views

How to get custom address attributes in Magento 2

I am trying to display all custom address (Added programmatically) attributes on address add/edit page in My Account section. I have looked into below interface module-customer/Model/Address/...
0
votes
0answers
10 views

Magento 2. Invalid country code CW. Record of CW exists. Transform to valid country_id

As a result of a migration I inherited some customers from Curaçao. For whatever reason Curacao (CW) is considered an invalid country code. There is a record of Curacao (CW) vendor/magento/...
0
votes
1answer
63 views

Magento2 - New customer address attribute won't save to database

I'm trying to define a new customer address attribute that will be available in all the customer address forms (backend, frontend, checkout). I've used the information provided here: https://devdocs....
-1
votes
2answers
34 views

Set value to customer custom address attribute in magento2

I have created a multi-select attribute(attribute_code is address_purpose) for the customer using UpgradeData The options are created and the values are getting stored if I edit in magento admin. ...
1
vote
1answer
215 views

Multiselect attribute not saving in Magento 2.3.0

I have created the multi-select attribute for customer address using below code. Setup/UpgradeData.php $customerEntity = $customerSetup->getEavConfig()->getEntityType('customer_address'...
0
votes
2answers
23 views

Magento 2 - InstallData script doesn´t add column to my 'customer_entitiy'

I´m now trying to add a custom attribute for like 5 hours now. It drives me nuts that I dont find the solution hope you can help me. I want a custom attribute to be displayed and saved when the user ...
2
votes
1answer
51 views

How to validate form fields such as city, zipcode in address form

I have done form validation as follows <form class="form-address-edit" action="<?= $block->escapeUrl($block->getSaveUrl()) ?>" method="post" id="form-validate" enctype="...
1
vote
0answers
41 views

Validation customer address attribute in Backend and Frontend server side

I should create a server side validation for a customer_address attribute in both the backend and the frontend. I do not use overwrite the model and the validadateData() method associated to the ...
1
vote
1answer
48 views

Magento 2 How to add new address in 'customer_address_entity' from helper?

I am using helper data function to add the new address in customer_address_entity but it is not working. code as below : <?php namespace Name\Module\Helper; use \Magento\Framework\App\Helper\...
0
votes
1answer
112 views

Magento 2 How to add custom field in customer_address_entity table? which will not use for front end or back end

I want to add one custom field in "customer_address_entity" table, for custom module. I have custom module installed. I am trying with "InstallData" script to add custom field. I do not want to show ...
0
votes
1answer
46 views

Magento 2 How to use model function in phtml file When override phtml?

I want to override book.phtml file from my module and want to check if my module is enabled or not. if module is enabled then need to hide links and button from that phtml. I have module function as ...
1
vote
2answers
41 views

Magento 2 how to disable 'add new address' button from customer address book page, in account section?

I want to disable 'add new address' button from customer account address book and customer account section with checking if my custom module is - enable/disable. file name is : vendor\magento\module-...
0
votes
1answer
65 views

Free extension for auto address fill in Magento 2 [closed]

Looking for a free extension for auto address fill in magento 2.
0
votes
0answers
16 views

Same address is storing as two records in customer_address table in Magento2

I need the Billing address form in shipping step. For that, I added the custom module , which is given in that link. https://github.com/sohelrana09/modified-checkout For the registered customer , it ...
0
votes
0answers
25 views

Magento 2 Backend Customer Add Address After Generate Error “ One or more input exceptions have occurred.”

Admin Side Create Customer Successfully then Add Address After Generate Error " One or more input exceptions have occurred." I Want to Save Customer Address without First Name of customer. Thank You....
0
votes
0answers
30 views

how to Show address fiels in new form registration for Customer magento 2

I created a new form registration for customer and according to group, they will be redirected to a form. I added the fields of address in the first one by adding this code at customer_account_create....
0
votes
0answers
15 views

show address filds in new form magento 2

i have created a new form registration for customer and i want to show the address filds in the form i tried this code but nothing displayed. customer_account_create.xml : <referenceBlock name="...
1
vote
1answer
60 views

Magento1.9 - Getting error on save customer address

I'm getting below error whenever updating customer address from backend and also on saveBilling on checkoput page. Call to a member function setAttribute() on boolean in /home/public_html/app/code/...
0
votes
0answers
63 views

How the customer address rendered in admin order create page magento2

I am trying to override the file how the customer address is rendered in create order page of Magento2 admin panel. Sales -> Order -> Create new order here is the screenshot attached. I am ...
1
vote
3answers
220 views

Adding a customers email address to a PDF invoice (Magento V 2.2.6)

Has anyone added a customer email address to the PDF invoice in a recent version of Magento, there is a nice example for an older version from Elgentos here: How do I add a customer's email to ...
0
votes
0answers
23 views

Issues with Addresses' Custom fields on Magento Commerce 2.2.5

Recently I started to work with Magento Commerce. I tried to add new fields/attributes to Customer Addresses. It is possible in Commerce, on Admin section Store > Attributes > Customer Address. I ...
0
votes
2answers
94 views

Plugin Method for customer Data Provider in Magento2

Are there any plugin method for customer Data Provider to modify the address on the checkout page. I am trying to override the address section, to be rendered on checkout for the customer. I came to ...
0
votes
0answers
39 views

How the address is rendered in magento2 checkout?

I am trying to override the file of address renderer in checkout page, I need to override the file of address renderer here, from which file the address is loaded? I need to load some other address ...
1
vote
1answer
102 views

Insert customer address programmatically weird behaviour

I'm using magento v2.2.5 , i successfully insert customer programmatically and after i finished insert the customer , i tried to insert customer address like this: //load $customer = $this->...
0
votes
1answer
354 views

Customer address edit and add event in Magento2

I am using below event and observer to trigger customer address add and edit. code for events.xml <event name="customer_address_save_after"> <observer name="...
3
votes
1answer
403 views

Save customer custom attribute in checkout

I'm really stuck with this thing. I added a customer address attribute with the following install data in my custom module <?php namespace Vendor\Module\Setup; use Magento\Framework\Setup\...
2
votes
0answers
75 views

Magento 2.2.5 split Address into streetname streetnumber and numberaddition

I am working on a module where I need to send a SOAP call to our distributer. The call requires me to send the 'streetname', 'housenumber', and 'addition' as seperate values. However in Magento the ...
1
vote
1answer
23 views

Delete address from phpmyadmin

I have a customer that have a lot of addresses (because I saved his address after each order) So now I can't save changes I've made from backend because there's to many addresses and it's crashing my ...
2
votes
0answers
74 views

New Checkout Billing Address Form Field not saving value to the database

I have added a new checkout billing address form field for entry of an optional field for the customer. Have overridden the template checkout form and able to get the field onto the form, but cannot ...
1
vote
0answers
112 views

Cannot change customer's country

In a Magento 2.2.5 installation we are currently having the problem that we cannot change the country of a customer - who was imported from a Magento 1.x installation. The customer is assigned to a ...
3
votes
2answers
295 views

Magento 2 - Prevent saving customer address on checkout to customer account

By default, when a user first checks out they are presented with the shipping address form because they have no shipping address. Once they complete an order, the address they used is being saved to ...
1
vote
3answers
1k views

Magento 2: How to add customer address programmatically?

I have succeed create customer programmatically. Now I want to add customer address to the customer, how can i do this programmatically?
0
votes
0answers
23 views

How to update custom shipping address attribute value after order place

I am using Magento2.2.3 Enterprise edition. I added one shipping address attribute "password" which I need to create customer account if checkout as a guest. After order placed I want to create ...
0
votes
2answers
64 views

customer address is not stored in Magento2

I am using this code but value is not stored in Magento2 <div class="field telephone required"> <label for="telephone" class="label"><span><?php /* @...
1
vote
0answers
33 views

Magento 2 - How to debug Repository SQL?

How to debug generated sql query/s from repository. i need to debug: $this->addressRepo->getList($cirteria)->getSearchCriteria(); on this example. public function ...
2
votes
2answers
120 views

Create customer address in magento2 by customerId

I am using below code to create customer address using customerId $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $addresss = $objectManager->get('\Magento\Customer\Model\...
0
votes
2answers
251 views

Address update get street problem magento 2

I am using "customer_address_save_after" event. This is my observer code. public function execute(\Magento\Framework\Event\Observer $observer) { $address = $observer->getEvent()->...
6
votes
3answers
869 views

How to update customer address using custom Api in magento2?

I have created custom API to update customer address using customer id or address id. Below code I used to implement it. [Vendor]/[Module]/etc/webapi.xml <route url="/V1/address/createUpdate" ...
0
votes
0answers
47 views

Unable to update one particular address of a customer using magento2 REST API

I need to update the customer address but unable to do it using REST API of magento-2. Here one customer has multiple address inside customer_address_entity table and I need to update one o them using ...
2
votes
1answer
50 views

How can i Update Add and Delete user address in Application using PUT http://Base URL/rest/V1/customers/me?

I am working on Magento -2.2.4. and working with REST API. When The customers are having multiple addresses. When i am trying to update one address from list of existed addresses of the customer, The ...
0
votes
0answers
99 views

Not showing order tab at customer details page in admin panel

Few tab like (Orders, Product Reviews, Billing Agreements, Newsletter, Wish List, etc...) are not showing in customer details page in admin panel after magento2 upgrade. All above tab's are showing ...
3
votes
1answer
454 views

Magento 2 : From where and how does knockout retrieve data on checkout

I know the following: That checkout is done with knockoutjs. Somehow data from PHP is passed to knockoutjs Where is this passing made ? If we look at project-root/vendor/magento/module-checkout/...
1
vote
0answers
25 views

M2 : After magento upgrade not able to save “state” form address edit page

I have upgrade magento version after that i'm not able to save state (region), from both admin and frontend side into address edit section. I have check customer's attributes and address attributes ...
0
votes
1answer
23 views

Magento 1.9.2 - Display any single address of a customer in account dashboard (frontend)

I would display any single address of a customer and show it on account dashboard for a my work. How can i do? I tried with this: echo Mage::getModel('customer/address')->getAddress(2); echo ...