Questions tagged [billing-address]

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

Filter by
Sorted by
Tagged with
18
votes
2answers
7k 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 ...
8
votes
3answers
6k views

Move billing address form to shipping address page in magento 2.1

I am using Magento-2.1.7. I am trying to move where the billing address is set by default it is set on the payment page and I would like to move this to the shipping methods section. Here is my ...
8
votes
2answers
5k views

Found 2 elements with non-unique id #billing-new-address-form Magento 2

When on the checkout page, I receive the following console error when selecting the shipping method and going to the next-step 'payment'. [DOM] Found 2 elements with non-unique id #billing-new-...
7
votes
2answers
6k views

How to add new custom field to billing address section in magento2

I have tried to add new field in magento2 billing address section. I have followed below link to add new field in shipping address block http://oyenetwork.com/articles/magento2-devliery-date-module-...
7
votes
2answers
23k views

Magento 2 Get shipping and billing address of customer after order placed?

I am working on custom email template. So I needed customer Billing and Shipping address in below file. /vendor/magento/module-sales/view/frontend/templates/email/items.phtml Can any 1 help me to ...
7
votes
1answer
2k views

Change position of Billing address in Magento 2

I want to change default billing address position which is coming under the payment information, I need it before shipping address(same as magento 1). Anyone have any idea to achieve it, Please help?...
6
votes
4answers
802 views

Why the input element id's for one-page-checkout are in “type:elementname” format?

Why magento One-Page-Checkout page has the input fields with Id's that cannot be referred to any CSS attributes or by a javascript / jquery? Does this holds any security measures ? or it can be ...
6
votes
1answer
2k views

How to uncheck “My billing and shipping address are the same” checkbox during checkout? One Page/Magento2

I am having an issue where the box is being marked automatically. I want to unmark it.
5
votes
1answer
3k views

magento2 checkout: how to update billing address programmatically

I would like to force update of the billing address as user is typing his firstname and lastname in the checkout. For example when it changes or on keyup. I'm using a custom checkout module that ...
5
votes
2answers
2k views

Magento2 : How to force Shipping Address is the same as Billing Address?

Is there a way to prevent the addition of a different address at checkout, so that billing and shipping addresses are always the same? With this I'd like to also prevent the user adding a shipping ...
4
votes
5answers
10k 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
1answer
10k views

Programatically load default billing and shipping address

Magento 2 programatically load default billing and shipping address..
4
votes
2answers
11k 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.
4
votes
1answer
203 views

Remove country form payment block

I want to remove country from Checkout payment block. This was fill by knock js but i don't know how to remove this.
4
votes
2answers
10k 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
4answers
3k views

Magento 2.3 - Move billing address below shipping address in checkout

I want to move the billing address form below the shipping address in the checkout, on the first page/step. Therefore I created a custom module with the following LayoutProcessorPlugin.php. But now ...
4
votes
1answer
1k views

How to remove an input in form created billing-address.html by ko in Magento 2

I have to remove fax input from billing-address in checkout process. ( when you check out "My billing and shipping address are the same" and the form appears ) Found that is generated here : ...
4
votes
1answer
1k views

Ship to certain countries but allow any country in billing address

My company only ships to a few countries but we would like to allow billing addresses from additional countries we do not ship to. How can I change the countries available in the dropdowns for ...
4
votes
1answer
140 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
1answer
4k views

Limit billing countries while leaving all shipping countries

I have 3 Magento sites (not multiSite), 1.7.0.2, 1.8.1, and 1.9.1. I followed the instructions here > Allow multiple countries for billing but restrict for shipping I can't seem to limit the ...
4
votes
0answers
69 views

Magento 2 - Remove option for same biling and shipping

I have a site which requires all customers to enter a different shipping and billing address. I know a little strange but all orders will have a different shipping and billing. The problem I have is ...
4
votes
0answers
398 views

Magento 2 add customer address attribute to REST APIs response?

I have created customer address attribute "city_id" with setup script. I am able to save the value. but want to display the city_id field to the below apis json response. how we can we add city_id in ...
4
votes
0answers
487 views

Before place order validation in magento2

In magento2 before place order check new customer form (billing address form) open and filed is not fill then not place order and show message please fill the form then place order, now in magento2 ...
3
votes
1answer
4k views

How to remove telephone number as required field in billing and shipping on admin side?

How to change telephone number to not being required on the admin side billing and shipping information? Could this be done with some SQL query?
3
votes
1answer
2k views

How to clear billing form validation errors when using Magento UI components

Default magento checkout behavior when using new customer billing address form (related to newCustomerBillingAddress name in the local storage). we uncheck "My billing and shipping address are the ...
3
votes
2answers
3k views

Magento2: How to show billing address at bottom of payment method instead of showing for each payment

I want to show billing addresses at last of payment step only 1 time instead of showing for each method. Now the billing addresses are in payment method container. I have checked there is code in form ...
3
votes
1answer
654 views

M2.2.4 Checkout: Adding New Shipping Address automatically sets address as Billing Address

When adding a new address to the shipping address list on the first part of the onepage checkout, I have noticed that it will automatically set the new shipping address as the billing address on the ...
3
votes
1answer
567 views

Magento 2. Populate New Billing Address Form with default billing address values

If a customer has a default billing address I would want to populate the checkout > billing step > new address > form with the those values. I found all the html and JavaScript files that are used to ...
3
votes
1answer
1k views

How can I add the Company Name to the Billing Address information in a new order email?

How can I add the Company Name to the Billing Address information in a new order email? I would like to see the customer name, company name (which is a required field), and the rest of the address. ...
3
votes
1answer
435 views

How to remove the error message in magento2 checkout page

I need to remove the error message in the magento2 billing address on the checkout page. How to remove that.
3
votes
0answers
499 views

Force to show the billing address form on checkout

What I want to do is to force user to fill out the billing address on step two at checkout. In my javascript file I've added a subscription: quote.billingAddress.subscribe(function (billingAddress) {...
3
votes
0answers
1k views

How to bind custom field to billing address Magento 2

The Question: How to override/customize/add billing address bindings? The Context: I've added some custom inputs to Shipping page in Checkout page. As shown below. These fields are there to replace ...
3
votes
0answers
956 views

Default Billing Address not saved when user having no address and do checkout In Magento 2

I need help to save the default shipping address as Default Billing address. Steps to follow : Register as a new customer Now add product into cart Go to Checkout and fill Shipping Address Place an ...
3
votes
0answers
467 views

Magento 2 : Add Custom Fee Based On Shipping and Billing Address

I already refer this : how to add fee to order totals in magento2 But my requirement is diffrent. I need to add custom fee in order total based on Shipping or Billing address selected by customer ...
3
votes
2answers
4k views

How to add custom attribute in BILLING address in Magento 2

I actually have two new inputs in my customer address, admin, shipping and billing address, but i want just to show them in the billing address of each payment method, I am trying to hide them via xml ...
2
votes
2answers
6k 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 ...
2
votes
3answers
7k views

How to get list billing address and list shipping address based on customer id

Please, can someone tell me, how to get list shipping addresses and billing addresses the specific customer by customer id in Magento 1.9? Thanks.
2
votes
2answers
1k views

Removing various states/provinces from shipping but not billing address

I've searched all around and haven't been able to find a solution to this. I'm on Magento 2.1.7 and need to remove the option for shipping to any province other than Ontario (Canada) from my check-...
2
votes
2answers
5k views

How to remove Billing Address from Onepage checkout Magento

I am trying to remove the Billing address step from the Onepage checkout page in Magento, but facing issues. Can anybody please suggest how to remove the step from checkout page in magento. I tried ...
2
votes
1answer
9k 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") ->...
2
votes
2answers
637 views

Magento 2 How to override “\vendor\magento\module-checkout\view\frontend\web\js\view\billing-address.js” in our custom module?

I want to disable "New Address" option from billing address drop down. here i got the code to disable it. we just need to comment the below code : addressOptions.push(newAddressOption); and it will ...
2
votes
2answers
3k views

How to make the address field “company” required?

I simply would like to make the field "company" on the onepage checkout a required field. Would be happy for some help? I tried it already but it didn't work, so probably I have to change or add some ...
2
votes
2answers
1k views

Customer billing and shipping address with abbreviated state drop down for USA

With magento 1.9CE i want to display drop down for states abbreviations instead of full state names on the billing and shipping address on the checkout page Is there is a quick and easy way i could ...
2
votes
3answers
3k 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/...
2
votes
2answers
4k 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....
2
votes
1answer
2k views

Magento 2.2.2 - how to remove company and zipcode from billing address from checkout

I would like to remove postcode and company from the billing address showing in second step [#payment] of checkout page. copied checkout_index_index.xml file from vendor and placed in theme folder ...
2
votes
1answer
2k views

How to add custom validation rule to billing address field Magento 2

I am using magento 2.1.7. I have added vat field to billing address form. I want to add custom field validation. i have added below code. Added below validation to phtml file But my custom ...
2
votes
1answer
6k views

Magento 2 How to remove billing address?

My site does not need billing address. How to remove the billing address fields around the Magento? Thanks.
2
votes
2answers
1k views

Parsing Billing Address

I am having a little trouble with Magento's invoice PDF. Specifically, I want to change the address formatting. For example, currently Magento outputs names and addresses under the Billing Address ...
2
votes
1answer
133 views

Magento 2 Hide Billing Address from Invoice email and print

I get some unique case that force me to hide billing address on the invoice print and invoice email in the magento 2. may I know, how to do that ? any help will be appreciated

1
2 3 4 5 6