Questions tagged [billing-address]

Denotes questions about customer billing address which is used in checkout process

Filter by
Sorted by
Tagged with
2
votes
2answers
2k 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. ...
2
votes
1answer
988 views

Change the position of fields in new address option of magento 2

Can anyone please suggest, how to reorder the fields in the Overview and payment page, while adding a new billing and shipping address. Please refer the image below. Any help would be greatly ...
2
votes
2answers
6k 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 ...
2
votes
2answers
2k views

How to update customer telephone if customer doesn't have in the billing address?

I want to update the customer telephone number if the customer doesn't have. In our website we disabled the telephone mandatory in adding address field. We recently implement a payment gateway that ...
2
votes
1answer
965 views

I need to override an Account email address with a Billing email address when Placing the Order

I have looked at various ways of doing this, but is there a simple way to simply capture the email address entered on the Billing Information form and overriding the Account Email address when ...
2
votes
1answer
2k views

Different Payment Method based on billing Country

I am migrating an e-commerce site to Magento. I need to use different payment methods depending on the billing country. Default site currency is USD. Any orders with a non-Canadian billing address ...
2
votes
1answer
1k views

Magento 2 , error {“message”:“\”%fieldName\“ is required. Enter and try again.”,“parameters”:{“fieldName”:“address”}}

An Error {"message":"\"%fieldName\" is required. Enter and try again.","parameters":{"fieldName":"address"}} This error appears while placing an order with a new billing address, even when all ...
2
votes
2answers
652 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 ...
2
votes
1answer
51 views

Saving comments on request

In the checkout, I have a select from which the user should choose their address type (commercial or residential) and I want to save this as a comment in the request, however I do not know how I ...
2
votes
1answer
1k 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 ...
2
votes
2answers
2k views

Magento 2 Change Billing Address format from select dropdown to box as the Shipping address format

I want to change the business address format shown in checkout page. By default it is select drop down.How can we change it to the format like shipping adddress is shown. I am new to knockout js. ...
2
votes
1answer
2k views

Magento 2: How to Set Max Length on Billing Address at Checkout Page?

I have achieved for Shipping Address Magento 2: How to set Max Length for Street Address? Struggling with Billing Address on domain.com/checkout/#payment My Payment Method is Bank Transfer. I have ...
2
votes
1answer
533 views

Wrong Shipping and billing Addresses

I am trying to fetch customer addresses on a custom page using below code. $shipId = 'VALID SHIPPING ADDRESS ID'; $billId = 'VALID BILLING ADDRESS ID'; $addressObject = Mage::getModel('customer/...
2
votes
2answers
9k views

Get primary billing / shipping address of customer model

I got a customer model and want to get the primary billing / shipping address. I tried it like this: $customerObj->getPrimaryBillingAddress(); $customerObj->getDefaultBillingAddress(); $...
2
votes
1answer
753 views

Check if it is new address on Payment method step

Is there any way to check via PHP, whether user selected new address in billing step? Mage::getSingleton('checkout/session')->getQuote()->getBillingAddress()->getCustomerAddressId(); ...
2
votes
1answer
2k views

how to remove street address country city from billing information in magento

how to remove street address country city from billing information in checkout page.i want to remove these above compulsory fields at the time of checkout page.as i tried it in abstract page but it ...
2
votes
1answer
1k views

When is an address saved to the customer?

When is an address saved in the customer? I mean, is it in the checkout process when saveBilling is called? Or is in the conversion from quote to order when saveOrder is called? In this question, ...
2
votes
1answer
991 views

Using different address template for billing and shipping

One of my customer need to have on the invoice two different address template. We need to "remove" from billing the "lastname name" like the following example Billing to: company name address ...
2
votes
1answer
490 views

How to get shipping address from quote object in custom js file magento 2

I want to apply a functionality that enables , dynamic billing address to be changed as per changing shipping address in checkout page magento 2. How to get shipping address from quote object in ...
2
votes
1answer
876 views

Magento2 - How to add static country code in Phone Number input field?

I have only one country in country dropdown and I want to add static country code in Phone Number field in shipping and billing address in checkout. How Can I add this in checkout shipping and ...
2
votes
1answer
3k views

magento 2.3.2: checkout Uncaught TypeError: Cannot read property 'getCacheKey' of null

I have an issue on checkout page and we are getting below error on console. It looks like address object is not loaded correctly on quote object and we are getting different error each time. i know ...
2
votes
1answer
168 views

Magento 2 call customer/address/new/ form in popup

I am looking for solution to add new address form in my custom module phtml file.This form will save with ajax. I have no idea about it.Please help me.
2
votes
1answer
604 views

Error in default API testing | V1/carts/mine/shipping-information

I just wanted to test this API for understanding order flow { "addressInformation": { "shipping_address": { "region": "New York", "region_id": 43, "region_code": "NY", ...
2
votes
0answers
18 views

How to get customer default shipping and billing address data (i am after country and postcode)

I have customer ID - Not sure how to grab the default shipping/billing address. I can get the current shipping address and billing address but not the default. Is there any way I could get the default ...
2
votes
0answers
45 views

Magento 2: add custom field to shipping and billing address at checkout page and save it in admin side sales order

I want to add to custom fields to the shipping and billing area of the checkout page. When a user clicks on place order it should be saved and display in admin side sales order page. Here I saw You ...
2
votes
0answers
561 views

Magento 2 :Change order of billing address

In the customer account section,how can i edit the order of address data(billing and shipping)(ie, i want to show customer company first and customer name second) https://prnt.sc/nucm3l I found this ...
2
votes
0answers
15 views

Adding string to firstname for certain storeview in checkout?

I am running Magento 1.7.0.2 and I want to add a string to the firstname and lastname in the checkout. My template is template/persistent/checkout/onepage/billing.phtml. The code there which seems to ...
2
votes
1answer
492 views

“Shipping and Billing address are the same ” / Need to copy current shipping address to billing address - Magento 2

Which function checks shipping address and billing address are the same ? and where it copies the billing address to the shipping address ? Need to replace the default method. Instead need to copy ...
2
votes
0answers
316 views

How to Add checkboxes for default billing/shipping address and show as check/uncheck

Currently Billing and Shipping address don't have checkboxes to select, to change it from Billing to Shipping or Shipping to Billing. It only shows a message info. So, I want to be checkboxes as same ...
2
votes
0answers
134 views

Magento 2 Region list not filter for default country on billing address for first time

There are many country region available in region list. The issue arises first-time page load on the billing address of checkout. Even default country has been set up the USA, All region list has been ...
2
votes
0answers
189 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 ...
2
votes
0answers
131 views

Create order programatically without billing and shipping address

I have a couple of virtual products in my Magento 2 website, I’d like to create the order programmatically without inputting shipping and billing address, is that even possible?
2
votes
0answers
832 views

Magento 2 Please check the billing address information. %1

Anyone experienced this error "Please check the billing address information. %1" I am getting this error while checkout using payment method as my Credit Card. I sure I am using correct billing ...
2
votes
0answers
978 views

Disable billing address for virtual products

I have a Magento 2.1.2 and I am using it to sell some products My issue is not being able to place order on virtual products Where I live, banks do not need the billing address when you are using a ...
2
votes
0answers
1k views

Magento 2 : How can i add custom customer address field in e-mail template?

I have added one custom Field for customer address, and i want to display in checkout page, customer my account section and in All sales email template (In Billing and Shipping Address). Please help ...
2
votes
0answers
916 views

Magento2 How checkout address form fields works?

I need to add new field in checkout address form. How can add it ? Also need to convert the city address input field into drop-down field.
2
votes
0answers
72 views

Change standard invoice address in checkout

When customer add a new invoice address in checkout, this new address will be add as new address but ist not the standard for the next order. This is inconvenient, because normaly the invoice address ...
2
votes
1answer
590 views

Add text to dropdown list of country options billing checkout form

I would like to display the shipping costs in my dropdown list of countries (shipping) options. Preferably through a php request, as follows: Guessing I need to add to/or modify this piece in my ...
2
votes
1answer
481 views

How to disable billing address edit or update in Magento2 checkout page?

I don't want to allow customers edit or update their billing address in Magento2 checkout page. Even i want to disable add new address in checkout page .
1
vote
3answers
7k views

Override html template file in Magento 2 not working

I want to override Magento 2 html template located at vendor/magento/module-checkout/view/frontend/web/template/billing-address/details.html I tried using require-config.js for frontend like this:...
1
vote
2answers
2k views

Deny change billing address customer

This title is somehow misleading. I will explain the what I want to achieve. I know it is possible by default to change the billing address on checkout. Since we are only selling to business clients ...
1
vote
2answers
8k views

How to get the billing address from a quote instance: Magento 2

I have a custom module in which I need to get the order details. I am using the below code to get the orders from quotes in admin end, $objectManager = \Magento\Framework\App\ObjectManager::...
1
vote
2answers
12k views

How can I create and retrieve default billing address programatically?

Our site imports customers from external data sources. Part of this import is creating a default billing address from external data if none exists. I have followed advice from other questions, as ...
1
vote
2answers
5k views

How to get customer first name and last name from billing address?

I am using below code to get customer firstname and lastname from billing address but it is not returning any value. Can someone please help how we can get those information from billing address. Any ...
1
vote
2answers
2k views

How to get customer billing and shipping information in magento2 .phtml files?

How to get checkout page information (firstname, lastname, address etc of customer) , I have created one phtml file and the code is below $address = $objectManager->get('\Magento\Sales\Model\Order');...
1
vote
1answer
2k views

Billing address not being saved to quote

I have a problem with Onepage checkout not saving customer billing address to the quote. When I add a new address then refresh the page the address is removed. If I var_dump the current checkout/...
1
vote
3answers
3k views

How to remove street city field from billing address in checkout?

Is it possible to remove the address street city field from billing information in checkout page in magento? As already try in abstract page but it's not done, then to try in database to change ...
1
vote
1answer
4k views

Disable billing address edit

is there a way to prevent Billing Address modification by all users? After entering billing address in registration i don't want to let users modificate it. Thank you very much.
1
vote
1answer
477 views

How to reorder input billing address in Magento 2

I want move this input to this, it is suffix input. I use this code but it not work in billing address. I created module and followed https://inchoo.net/magento-2/frontend/reorder-input-fields-...
1
vote
1answer
2k views

Uncheck billing and shipping address are same checkbox in magento2 if pickup store is enabled

I have installed a store pick up module. So, I am trying to uncheck the checkbox of "My billing and shipping address are same" once the module is enabled. I have refered the below link, this will ...