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

1
vote
0answers
19 views

New Customer address attribute not saving on Frontend

I have created a new customer address attribute, it shows the field correctly on the frontend BUT it doesn't allow you to save the data. It does work correctly when saving through admin, and then ...
2
votes
1answer
12 views

How to change a state placeholder from the cart and checkout shipping summary

I want to change state placeholder on the cart and checkout summary section. In dropdown state/Province for showing "Please select state". Instead of "Please select state" I want to display "Please ...
1
vote
0answers
12 views

How to add VAT validation Check

Is it possible to add a VAT validation Check when user saves it (frontend)
2
votes
2answers
33 views

Loading a customer address by a custom attribute

I've added a custom attribute to customer address entity which is a backoffice ID. I've synced addresses from clients backoffice. If order maintain a continual sync to check whether address exists I ...
0
votes
0answers
15 views

Get custom customer address attribute on email

I have a module with which I create my attribute. I can get it and show it in the admin panel, but not when the data is recibed on checkout process. This is my installer code: public function ...
2
votes
0answers
31 views

Magento 2 Save custom customer address attribute in customer edit form using extension attributes

I want to save custom customer address attribute in Customer Edit Form under My Account section. I have created an attribute using Setup script and save that attribute using extension attributes. ...
1
vote
0answers
19 views

Exclude addresses from checkout

Please Help me on this, We have a one customer which has three different addresses in his account.in to the entity of address i have a select attribute field with values A,B and C. My question is how ...
0
votes
0answers
16 views

How do I remove store-wide the state/province field for users

In our German store for users it is not required to select a state/province for their personal address or shipping addresses. I already managed to disable the the field in the store frontend via the ...
1
vote
0answers
30 views

Magento 1.9.2. - Save the attribute of the customer_account table in the form customer_address

On the customer address change page I am trying to add fields for some custom attributes that I have created and inserted into the customer_account table. After several tests I saw that in the edit....
0
votes
1answer
36 views

How to put labels in the input fields in the customer address edit?

In Magento 2.x, on the customer account screen, I need to add labels to the address inputs. What is the best way to do this? I was able to perform the same modification on the address inputs of the ...
0
votes
0answers
39 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
97 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
42 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
197 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
40 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
29 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
2answers
160 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
41 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
476 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
74 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
57 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
74 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
198 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
70 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
71 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
96 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
17 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
32 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
38 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
68 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
74 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
368 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
34 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
134 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
166 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
494 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
473 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
87 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
85 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
136 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
360 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 ...
2
votes
3answers
2k 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
27 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
74 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 /* @...