Questions tagged [address]

For questions about the use of shipping/billing addresses in Magento.

Filter by
Sorted by
Tagged with
10
votes
3answers
5k views

Event/Observer for customer password change?

I'm looking for a way to hook into the event of customers changing their passwords. So if someone changes the password in the customer frontend, I'd like to send an e-mail somewhere. I did consult ...
8
votes
3answers
2k 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" ...
6
votes
4answers
4k views

How to add label on all lines of street fields in checkout and turn then required?

Magento has a feature to define between 1 and 4 fields, how much we will want to use in the street field. I've activated 4 lines and would like to add labels line by line. I did this on the user ...
5
votes
10answers
16k views

Magento 2: An error occurred on the server. Please try to place the order again

When user want to checkout sometimes i got below message. After correction of Billing & Shipping Address Sometimes user able to place order some times not. Due to this customer not able to order....
9
votes
1answer
7k views

Magento2 - Change standard address format on Magento Frontend

I want to change Magento's standard address format to the one we use in the Netherlands. For those who don't know the address format, it is the method in which we write the address. For example, the ...
4
votes
1answer
2k views

Why on checkout page shipping and billing address are reset after page refresh?

We have the following situation in Magento: Guest customer is about place order. The customer filled his billing and shipping addresses on checkout page. The customer reached one of the following ...
3
votes
1answer
5k views

Update customer address using address id in magento 2

How can i Update customer address using address id in magento 2 ? programatically how can i update customer address using address id .
1
vote
1answer
462 views

Magento 2 : From where (PHP) is the checkout billing address options drop down being populated?

From where is the checkout billing address options drop down being populated? How can I control the options? EDIT: Found root/vendor/magento/module-checkout/view/frontend/web/js/view/billing-...
4
votes
1answer
3k views

Magento2: Add a New Customer Address

I'm trying to add a new customer address using Magento 2 REST API in C#. I'm using POST /V1/customers/:id. I keep getting the below error. Where do I find the regionId? Is there another API I can use ...
3
votes
2answers
2k views

Magento 2 How to add custom attribute to customer address and how to insert value in that attribute?

I want to add a new custom attribute to "customer_address" that I did with an attribute installer script, now I am able to see that field in "eav_attribute" table. I have created a module and I have ...
5
votes
1answer
15k views

Transactional Email: How to customize shipping address variable/html {{var order.getShippingAddress().format('html')}}

I am customizing Magento's transactional emails and am trying to remove the Telephone/Fax from displaying in the email as they are displaying as: T:- F:- The transactional mail template for new ...
0
votes
1answer
1k views

Magento 2 How to add onKeyUp to a text field in customer checkout address form?

I want to add a auto complete function to the customer checkout address form, but I found that the address fields are rendered by knockout js, I can't add the "onKeyUp" attribute directly. How can I ...
4
votes
1answer
898 views

region Id error on updating address using address Id in magneto2

I followed below link to update address using address id Update customer address using address id in magento 2 I am getting this error upon executing this code protected $addressRepository; public ...
3
votes
1answer
165 views

Save customer custom address attribute programmatically

I have created new address attribute hide_address with yes no value. Using setup script: if(version_compare($context->getVersion(), '1.0.2', '<')) { $objectManager = \Magento\...
3
votes
1answer
2k views

Magento 2: re-arrange checkout address fields

I want to change the order of the billing address inputs in checkout, so that the postcode field will be ordered before the city field. I've tried to set the orders in /view/frontend/layout/...
1
vote
1answer
2k views

Allow countries keeps resetting and allowing all on frontend? [closed]

Really sorry if this has been answered elsewhere or before, but I have searched everywhere I can think of using every combination of keywords and can't seem to find a solution to my problem. I did ...
1
vote
2answers
5k views

Magento 1.9 - how to create an new observer on the event “customer_register_success” from the top

I'm quite newbie in magento. I'm trying to create observer on the event "customer_register_success". I follow the tutorial about how to compose the files in local module. But it didn't work. When ...
1
vote
2answers
1k views

Magento 2 - Address format

How can I edit the address format? I know that I can add 3 more lines at Stores/Customers/Customers Configuration/Name and Address Options/Number of Lines in a Street Address. Then I can set as 4. ...
0
votes
0answers
331 views

magento 2 , write custom query in customer_address_entity, We can't save the address

I am trying to add a custom field(customer_type) value using observer to customer_address_entity table.The edit is done in BeforeAddressSaveObserver.php file. The problem is the field is not getting ...
0
votes
1answer
140 views

Magento 2 Around Plugin get posted form value

I am customizing the address form to add custom arithmetic captcha. We are using ClassyLlama\AvaTax module to validate the customer address in Model File. Now, to validate my custom captcha on server ...
0
votes
2answers
1k views

Remove last name in billing address?

I am using Magento1.9 I followed below mention step after that i got error message UPDATE eav_attribute SET is_required = 0 WHERE attribute_code = 'lastname' /app/code/local/Mage/customer/Model/...