Questions tagged [address]

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

Filter by
Sorted by
Tagged with
16
votes
3answers
2k views

Why Magento re-saves existing customer addresses during checkout?

During the checkout process even if customer selects existing address form the drop-down the customer_address entity is being re-saved. Any idea what for? Update: It starts at ...
10
votes
1answer
27k views

Get Customer Address

I have customer id . Using customer id i want customer address. so how to get customer address and using country id how to get full name of country
10
votes
3answers
6k 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 ...
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 ...
8
votes
1answer
6k views

Difference Between Sales Quote and Sales Quote Address

I am looking which collect_totals observer I can use. There are two observers, sales_quote_collect_totals_before and sales_quote_address_collect_totals_before. They can be found in /app/code/core/...
8
votes
4answers
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" ...
7
votes
2answers
34k views

Getting shipping and billing addresses from a guest-checkout order

For orders checked out by a non-registered customer (i.e. guest), Magento doesn't create a customer. However, it does store the address information in sales_flat_order_address. How do you access this ...
7
votes
2answers
3k views

How to get customer address with address id

Can i get customer address like picture below with address id? If i can, how should i do it?
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 ...
6
votes
4answers
7k views

Magento: How to remove certain States from state/region list at Checkout or registration?

The list of regions for USA contains: Alaska, Hawaii, American Samoa, Guam, Marshall Islands, Micronesia and Armed American and so on. This is the list that is available both during registration and ...
6
votes
4answers
2k views

Difference in saving of billing and shipping addresses

If a new billing address is also used for shipping (the corresponding checkbox is set) Magento of course creates a record in sales_flat_order_address for each. Is there any reason why ...
6
votes
1answer
816 views

Paypal's Address Saved As Default Address

A new customer who makes a virtual product purchase through paypal has their billing address passed to Magento. The address is attached to the order but is not attached to the customer. What would ...
6
votes
0answers
3k views

How to add city (not state!) in magento? [duplicate]

How can I add cities in city field in address form of magento in checkout? I want add city not state, want load it auto same as state State load drop-down after select country, now want city drop-...
5
votes
3answers
5k views

Manage number of address lines

Where ,i can change the number of address lines on the checkout page? Next code returns the number but where to set it? $this->helper('customer/address')->getStreetLines();
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 ...
5
votes
10answers
17k 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....
5
votes
1answer
1k views

One Page Checkout - Manually setAddress()

In One Page Checkout, the Billing class offers a setAddress(val) function that looks useful for setting the address that gets chosen when a user that has saved addresses selects one from the first-...
4
votes
4answers
7k views

Magento 2 : Place Billing Address Above Payments Methods in Checkout

When using standard checkout in magento 2, I want to place checkbox with address above my payment methods: I think I have to meddle with knockout JS which I have no experience in. Anyone knows where ...
4
votes
4answers
5k views

restrict user to place order if ZIP (PIN/Postcode) code is not from pre define ZIP (PIN/Postcode) code list

One of our client's shipper allow shipping to only specific ZIP codes. So we do have list of allowed ZIP codes. We want to restrict user to place order on checkout page or cart page if shipping ...
4
votes
1answer
986 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 ...
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 ...
4
votes
2answers
6k views

Magento 2.1.2, Remove “region” from the Address

I would like to remove "Region" from all the address forms (checkout, billing address, shipping address, customer's addressbook). I've set the Backend setting for "Allow to Choose State if It is ...
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 ...
4
votes
1answer
134 views

find the root to not handling new lines \n \n\n in addresses

I have been searching for a bit on why I'm getting \n in addresses. I have been searching in the templates, adding lines like <?php echo str_replace('\\n',' ', $this->getAddressHtml(Mage::...
4
votes
3answers
4k views

what file to change for this to remove compare block?

when going to www.domain.com/customer/address/edit/id/1/ where one can edit their address for some reason there is a block compare in left sidebar what file do i need to edit to remove this? ...
4
votes
1answer
676 views

Custom field default value

I have defined a lastname2 attribute for customer and customer_address, it shows up correctly in all forms, but when I'm creating a new address, its does not get 'prefilled' with the customer's value. ...
4
votes
2answers
3k views

How to import customers with more than 2 address?

I use a csv file to import customers into Magento. This is the csv file header : website, email, group_id, group, firstname, lastname, password_hash, billing_firstname, billing_lastname, ...
4
votes
2answers
807 views

Disable P.O. Box entry on Paypal Express?

Is it possible to disallow orders shipping to PO Boxes when a customer is checking out using Paypal Express?
3
votes
3answers
2k views

Remove blank option from country dropdown list

To generate country drop down list Mage::getBlockSingleton('directory/data')->getCountryHtmlSelect() method is responsible but generated drop down has blank entry at the top along with all other ...
3
votes
3answers
10k views

Magento 2 : Fatal error: Uncaught Error: Call to a member function dispatch() | Store Information

I'm trying to get store information which are set in backend like email,contact,address etc...(I've taken reference from here : https://magento.stackexchange.com/a/125359/39607 ) To do so I've ...
3
votes
1answer
548 views

How can I change the position of the Country and the Postal code for email PDF invoices?

I would like to change the position of "country" with "zip code"? Everything else is correct. You can see the Value: Zürich, 8605 and Schweiz Those need to be changed, but where can I do ...
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/...
3
votes
2answers
565 views

What does the Quote's Address' “freeMethodWeight” represent?

I see it's used in Mage_Sales_Model_Quote_Address_Total_Shipping::collect() and it's roughly equivalent to the address' total weight. Also, various Carriers check against this value: if ($request->...
3
votes
1answer
207 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
2answers
384 views

How to reorder street address on checkout page in magento 2?

I am getting every field unordered on checkout page but I added code to sort them and now everything is sorting but the street address is not getting sorted I am getting a street address field on top....
3
votes
2answers
3k 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 ...
3
votes
2answers
416 views

Magento 2 | Remove telephone from checkout address

How can I remove the telephone field from the address fields in checkout (without CSS)?
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 .
3
votes
1answer
660 views

How to create custom address renderer

How to create custom address renderer with the following template in one line {{var street}}, {{var city}}, {{var region}} {{var postcode}}, {{var country}} I can't change the native address ...
3
votes
1answer
1k views

Add custom attribute to sales_quote_address

I would like to add a custom attribute to the Sales_Quote_Address model in Magento. I searched on Google for a few hours now, and I can't find a way of doing so. Is it possible? Or do I have to set ...
3
votes
1answer
423 views

Why is there a quote_address_id field in sales_flat_order_address table?

Just stumbled upon the quote_address_id property of sales/order_address entity (sales_flat_order_address table) which in my case is always NULL. Well I wonder .. what is is for? My only guess it is ...
3
votes
2answers
466 views

How to get file location in magento 1.9

How to get file location of this page in magento 1.9
3
votes
1answer
584 views

Magento Customer address missing when creating new order + new customer from backend [closed]

Running on Magento 1.8 Steps to reproduce: Create Order > Create New Customer Add product Fill in every mandatory field including address Create Order After Order is created, go to Manage Customer....
3
votes
2answers
138 views

Remove Addresses tab from customer edit page magento 2

How to remove Addresses tab from customer edit(form) page in admin panel Magento 2?
3
votes
1answer
719 views

Remove region from address information in checkout

How can I remove the region (code is <!-- ko text: address().region -->) from the address field, if customer is logged in (see screenshot). I have already removed {region} from the customer ...
2
votes
3answers
2k views

how do disable/remove Zip Code for specific country in magento 2

How can i disable/remove Zip Code for specific country in magento 2 For example if some one select UAE than Zip Code field should remove or disable else it should visible.
2
votes
1answer
1k views

Is it possible to move customer Telephone number from billing address fields to customer create account section

Is it possible to move Telephone fields from billing address to the customer create account section? I need to modify account creation page by directly making changes on core files. Is that possible ? ...
2
votes
1answer
1k views

How can I remove the state (Bundesland) field completely in a German shop?

When using Market Ready Germany there was such an option. But we use German Setup. Is there a clean and easy solution to remove this field fully from the system?
2
votes
2answers
517 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() ?> // ...
2
votes
2answers
641 views

Remove Add New Address and delete buttons on adminhtml

I want to remove these 2 buttons denying the ability to create or delete addresses. How Magento renders this layout? It seems it has to be this file: /module-customer/view/base/ui_component/...