Skip to main content

Questions tagged [shipping-address]

Denotes Question related to magento shipping address. https://devdocs.magento.com/guides/v2.2/howdoi/checkout/checkout_address.html

Filter by
Sorted by
Tagged with
16 votes
4 answers
17k views

How to show a custom attribute in the admin Shipping Address box?

I have added the drop-down custom field on the checkout page with custom values. It's working fine also save attribute values in the database but not display in the order shipping address. Any idea ...
Magento2 Devloper's user avatar
18 votes
2 answers
10k views

how to reorder (switch) billing address before shipping address

on the onepage checkout I need to reorder the billing address before the shipping address. in fact the logic should be the other way around than it is now. if the shipping address differs from the ...
steros's user avatar
  • 1,622
8 votes
3 answers
5k views

How to remove Guam, Palau, and other US Territories from address State dropdown - Magento 2 [duplicate]

How can I remove Guam, Puerto Rico, Palau, and all other US Territories from the "State" (or "Region") dropdown list on both the cart page and checkout pages? I only want to ship to the 48 contiguous ...
Tim K.'s user avatar
  • 101
7 votes
7 answers
14k views

How do I add a customer's email to the sales invoice?

Essentially looking to add customer email to our customer's receipts (invoices) and sales order emails that are generated to dispatch/couriers as well etc. With a bit of searching I've established ...
MagentoMac's user avatar
  • 1,042
1 vote
0 answers
4k views

Merge billing address, shipping address and shipping method on onepage

I managed to join the file: \ template \ checkout \ onepage \ shipping.phtml with: \ template \ persistent \ checkout \ onepage \ billing.phtml But I must also add the file: \ template \ checkout ...
Eduardo's user avatar
  • 895
5 votes
2 answers
8k views

How to remove zip postal code and country from checkout form?

I want to remove zip/postal code and country from checkout page. I removed them from billing.phtml file successfully. But when submit checkout data it shows alert that "country" and "zip/postal" code ...
Mohamed Maree's user avatar
3 votes
1 answer
1k views

Magento 2 : how can i add notice below state/province field in shipping address in checkout page

how can i add notice or lable in checkout page below the state field just like notice below the email address in blow image, state input element is created by region_id field in vendor\magento\module-...
Hiren's user avatar
  • 1,091
11 votes
4 answers
37k views

How to get customer address by customer ID?

How to get customer address/billing address by customer ID? here's what I've done so far: $customerId = $_POST["customer_id"]; $customer = $this->_customerRepository->getById($customerId); $...
simple guy's user avatar
  • 2,484
7 votes
2 answers
14k views

Magento 2 - Change the order of the Shipping fields on the Checkout page

I would like to change the order of the Shipping fields on the Checkout page so that they display in the following order: Your Email Street City State Zip Code First Name Last Name Phone Number ...
Noemi Quezada's user avatar
6 votes
3 answers
3k views

PayPal Express FIRSTNAME and LASTNAME instead of SHIPTONAME

In Magento 1.9 PayPal is transferring a SHIPTONAME which is used for the shipping address. Instead of populating firstname and lastname with the correct variables, only firstname is populated with ...
loeffel's user avatar
  • 722
5 votes
3 answers
4k views

How to display company name on checkout page in Magento 2.1?

I want to display the company name from customer address on checkout page in Magento2.1 It should be visible in shipping address section as well as side bar. How can I do it?
Mukesh's user avatar
  • 1,448
3 votes
2 answers
9k views

Magento 2 : Default billing address not selected by default on checkout page

I am using Magento 2.0.7 and my default billing and shipping address are different in My account Address section. When I am going on checkout page my default shipping address selected by default and ...
Ashish Jagnani's user avatar
3 votes
2 answers
2k views

Magneto 2: Different countries in billing and shipping address

How to limit the countries in the shipping address, for example, I want to allow all countries in billing address but only one in the shipping address( at the moment). Any idea how to achieve this in ...
Ilyas's user avatar
  • 33
2 votes
1 answer
1k views

Magento 2: How to Show method if not applicable Country Wise?

I'm using DHL Shipping Method. I have set Show Method if Not Applicable to Yes. Displayed Error Message will be displayed, when it's applicable. I would like to show this Error Message by Specific ...
Jackson's user avatar
  • 9,939
2 votes
2 answers
1k views

Magento directory_country_region_name table for city : City Dropdown

I want to make the country, state, city dropdown in the checkout field. I research lots of times in the internet and I didn't find any solution rather than a paid module. I noticed that for some ...
Abilash Erikson's user avatar
2 votes
3 answers
4k views

Magento 2 - Checkout. Remove “New Address” button from billing/shipping address with module or theme

I want to disable the "new address" button from checkout page in Magento 2. Will it be easy with the theme or create a new module? Magento 2 - Checkout. Remove the “New Address” button from billing/...
Utsav Gupta's user avatar
  • 1,243
1 vote
1 answer
2k views

How to add custom button under the phone number field in one page checkout in Magento 2?

I need to add a button under the phone number filed in the shipping address section in a one-page checkout and the button should be visible only when the user enters the phone number. Based on the ...
Arul's user avatar
  • 309
1 vote
2 answers
2k views

Magento Add new Fields In Customer Address?

I want to add new field Title. This field is a Dropdown and I give value like this. $attributes = array( 'jobtitle' => array( 'label' => 'Title', 'backend_type' => '...
Renish Khunt's user avatar
1 vote
1 answer
4k views

How to auto fill the shipping address field in Checkout in Magento 2.2

I had referred this link How to auto fill the shipping address field but this is throw an error This is required Field. I have to Auto fill Address in Magento 2 Checkout. I have to fill the State and ...
Moin Malek's user avatar
0 votes
1 answer
1k views

Add validation of 30 alphabets allowed to new shipping address form field. Magento 2

How do i add validation of maximum 30 alphabets allowed to shipping address form field in checkout page magento 2 ? https://prnt.sc/rz0n58
Hamendra Sunthwal's user avatar
0 votes
1 answer
524 views

Adding link to the Checkout button in magento2

I need to add external link to the "New Address" button in checkout. Found the button html is loading from this file. vendor\magento\module-checkout\view\frontend\web\template\shipping.html How ...
Jafar Pinjar's user avatar
  • 1,949
16 votes
5 answers
12k views

How to check if billing and shipping address are equal?

I'm trying to check if billing and shipping address are equal when creating invoice PDFs. What I've tried so far was: $order = $invoice->getOrder(); if( $order->getBillingAddress()->getData(...
oschloebe's user avatar
  • 926
9 votes
3 answers
25k views

How to get shipping address by shipping address id?

I have the order object. From that I can get the shipping address id. Can anyone suggest how to derive Shipping address by shipping address id?
Sukeshini's user avatar
  • 9,965
7 votes
3 answers
6k views

Magento 2 - Add CMS Static Block to Checkout Address Form

Evening All, I am looking to add a static CMS block to the Magento 2 Checkout delivery address form. I would like display the CMS block under the phone number field. The old method would have been to ...
Baber's user avatar
  • 192
7 votes
5 answers
7k views

Store pick up Magento 2

How can we show a checkbox at checkout if the customer wants to pick up their products at the store itself instead of getting it shipped to their address? Can we do this without buying an extension ...
Bureau Springveer's user avatar
6 votes
3 answers
12k views

Save a custom attribute from shipping method to quote_address

I have created a custom shipping method which allows delivery to a local office of the carrier. I have created a select when the shipping method is selected, so the user picks the office. Now I need ...
DreamWave's user avatar
  • 133
5 votes
6 answers
11k views

Magento 2 - How to change the SortOrder of the street address fields on the Shipping Checkout page

I am trying to reorganize the form fields on the Checkout Shipping step and having difficulty moving the Street Address field. I am not sure if I am referencing the street fields correctly in the ...
Noemi Quezada's user avatar
5 votes
4 answers
11k views

Shipping Address Missing on Payment Page Refresh

Has this happened to anyone? When you get to the payment page in checkout and refresh the page, it removes your shipping address with the exception of the zip code and country.
Paul's user avatar
  • 1,501
4 votes
0 answers
1k views

Magento 2 First Name is a required field Error While Placing Order

When I try to place an order after the customer registration/Login. Magento 2.2.5 shows "First Name is a required Field Error". A Sample error message is attached. This is the response I am getting:
Usman Yousaf's user avatar
4 votes
2 answers
3k views

Limit country drop down input field Magento 2

Currently my magento store shows all the country in shipping, billing, and register customer form. is there a way to show only some countries that i want ?
Hunter's user avatar
  • 1,484
4 votes
1 answer
13k views

Programatically load default billing and shipping address

Magento 2 programatically load default billing and shipping address..
srg's user avatar
  • 455
4 votes
1 answer
2k views

How to get the value of custom field checkout address in Carrier Model Magento 2

I followed the tutorial here to make a custom field in address form checkout: <?php $customAttributeCode = 'custom_field'; $customField = [ 'component' => 'Magento_Ui/js/form/element/...
simple guy's user avatar
  • 2,484
4 votes
2 answers
12k views

How to Check If given address is Default Shipping or Billing address using Address id Magento

I want to check whether the Given address is Default Shipping or Billing for the Customer address, i have the address id. Can anyone please help me on this.
user avatar
4 votes
4 answers
7k views

Magento2: How to get shipping address for order in REST API?

I can't seem to find a way to get the shipping address for an order though the REST API. Does anyone have an idea?
TNordkvist's user avatar
3 votes
1 answer
4k views

Magento2 : Change shipping address layout on checkout page

Need to change shipping address layout on checkout page. Remove middle name to shipping address form. Display last name just after first name. How i can remove middle name to shipping address form. ...
Suresh Chikani's user avatar
3 votes
1 answer
946 views

How do I sort all of the multiple shipping addresses associated with a customer

We have a single customer who ships to 100+ ship to addresses. It appears as if they are listed in random order when selecting a previous ship to address when entering orders on the backend of ...
Christopher Clarke's user avatar
3 votes
1 answer
2k views

Magento 2 country name not showing in Billing/shipping address at checkout.

I installed fresh Magento 2.1.8.I didn't change anything. When I am trying to place an order, I noticed country field is empty in billing as well shipping section. I don't think that I am doing ...
jaydip sinh Parmar's user avatar
3 votes
3 answers
8k views

How to get formated order addresses

I know we can get formated customer addresses by calling, $data = $customer->getPrimaryBillingAddress()->getFormated(); Is there a similar way to get shipping address and billing address of a ...
Dan's user avatar
  • 55
3 votes
1 answer
972 views

Magento 2 for logged In customer need to add shipping address every time i place a new order?

This is what i am following... 1. Add Configurable product in cart. http://magento-host/index.php/rest/default/V1/carts/mine/items method : POST Authorization : Bearer <customer token> body ...
Aditya Shah's user avatar
  • 7,627
3 votes
0 answers
582 views

Set quote.shippingAddress() , after adding new billing address in checkout form magento 2

Need to Set quote.shippingAddress() , after adding new billing address in checkout form magento 2 in js file. Actually quote.shippingAddress() gets null after adding new billing address. That's why i ...
Hamendra Sunthwal's user avatar
2 votes
1 answer
1k views

Magento 2.3 checkout show company name after radio select

We want to add a radio select option in our Magento 2.3 store, that hides the company name and fax field. We would like to add a radio option to select: personal or company purchase. If the option ...
JGeer's user avatar
  • 1,420
2 votes
1 answer
12k views

How to set a custom shipping address on checkout page?

On checkout page by default my saved addresses are rendered. How I'll set a custom address as shipping address instead of addresses shown from my account? I've added an event to observe checkout page ...
amitshree's user avatar
  • 7,036
2 votes
1 answer
10k views

Change shipping and billing address from order programmatically

How can i change shipping and billing adress from order programmatically? I tried this but don't work. $shippingAddress = Mage::getModel('sales/order_address') ->setFirstname("value") ->...
aceveve's user avatar
  • 47
2 votes
2 answers
6k views

Magento 2 : Remove Billing Address From Payment Step in Checkout

In the payment step under checkout in Magento 2, I'm trying to remove the address and the option: 'My billing and shipping address are the same '. Because I have added billing address to shipping step....
Sanne's user avatar
  • 1,316
2 votes
2 answers
3k views

How to handle payment through Paypal without collecting the shipping infromation?

The store that I am working on is a Pick-up store, which means that customers can order the things on-line but collection of orders has to be done from the store itself; the customers have to go to ...
Helly's user avatar
  • 328
2 votes
1 answer
786 views

custom field value not showing in shipping address in magento backend

I have added a custom filed mobile number in magento 1.9 both in checkout and customer registration everything working fine if a customer register i can see the value in customer account information ...
amith lal's user avatar
  • 790
2 votes
1 answer
10k views

Magento 2 - Save custom shipping address' fields to quote_address table

I have did all the steps from this tutorial and it works well for updating custom fields in quote table. In my case, I need to add custom fields to quote_address and (later) in ...
Bruno Rodrigues's user avatar
1 vote
1 answer
342 views

Default zip code for shipping address

How can I set default zip code for the shipping address??
Chandan Sayed's user avatar
1 vote
1 answer
4k views

Add Company Name to Billing/Shipping Dropdown in Magento

We are working on a magento store website for a customer who only deals business to business. On the Magento onepage checkout, we want the address select dropdown box to show the company name and ...
scarrott's user avatar
1 vote
2 answers
2k views

Not getting order shipping address in magento2

trying to get the order shipping address Magento 2. I did the below code but not its not getting. $order = $observer->getEvent()->getOrder(); // order id i am getting correct. $order_id = $...
Dattatray Yadav's user avatar