7 votes

Update billing address inserts javascript string in the address

Remove _.values for currentBillingAddress().street in <text args="_.values(currentBillingAddress().street).join(', ')"/><br/> in the file vendor/magento/module-checkout/view/frontend/web/...
user86638's user avatar
4 votes

Magento 2 Set "Billing Same as Shipping" default to unchecked

Disclaimer: I am an author of an article at the end of this answer. The following solution tested on M2.1.4 Magento best practices way. Create a simple Magento 2 extension. Create a file app/code/...
Konstantin Gerasimov's user avatar
4 votes
Accepted

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

I tracked down where the info is passed from php , I started at your file - Magento_Customer/js/model/address-list define([ 'ko', './customer-addresses' ], function (ko, defaultProvider) { ...
Vivek Kumar's user avatar
  • 5,395
3 votes

Magento2: How to Modify DropDown Country options on the fly?

You should modify Magento\Checkout\Block\Checkout\DirectoryDataProcessor::process($jsLayout). Create plugin for this and modify country list. Here getCountryOptions method is responsible for creating ...
Sohel Rana's user avatar
  • 35.9k
3 votes

How to check if billing and shipping address are equal?

You need to get the quote using $order = $invoice->getOrder(); $quote = Mage::getModel('sales/quote')->load($order->getQuoteId()); Then you can get the shipping address from the quote and ...
gebrial's user avatar
  • 53
2 votes

Magento 2 - Where is jquery code of click on place order button in checkout page?

These two files. PATH: html/vendor/magento/module-checkout/view/frontend/web/js/action/place-order.js:12 . html/vendor/magento/module-checkout/view/frontend/web/js/view/review/actions/default....
HoangHieu's user avatar
  • 1,348
2 votes

Dropdown region shipping

By default magento system does not have region list for Portugal So that,you have seen this field as text area. Basically at directory_country_region table m agento save regions details ...
Amit Bera's user avatar
  • 77.5k
2 votes

How to remove countries from Magento 2 drop down list?

You can achieve this from admin panel. There is no need of writing any code. Go to Admin Panel : Stores->Configuration->Sales->tax->Default Tax Destination Calculation. There you can select ...
Akash Raj's user avatar
2 votes
Accepted

Specifying an existing address for a user's billing / shipping?

That won't work with the existing endpoint. The webapi validates the request based on the phpdocs defined for the method in the service class. for Magento\Checkout\Api\...
Pmclain's user avatar
  • 2,608
2 votes
Accepted

Magento 2 payment methods based on billing address or shipping addrress

By default in Magento 2 payment methods based on the billing address. Here is example of that usage from the default payment method class: to determine is payment method applicable for the customer'...
Siarhey Uchukhlebau's user avatar
1 vote
Accepted

Magento 2 checkout page Error on checkbox My billing and shipping address are the same function () { return Math.max.apply(null, this); } error

Comment bellow code in animation.transition.end.js file. file path: "/app/design/frontend/Olegnax/athlete2/web/js/animation.transition.end.js" //Array.prototype.max = function () { // ...
pankaj's user avatar
  • 26
1 vote

Custom field don't work in checkout registration page

For everyone facing the same issue: Check if you aren't trying to include customer and customer_address fields at the same time. That's my case, i've done the process only with the field for 'customer'...
Pedro Gusmao's user avatar
1 vote

Supee-9767 saveBilling returning 500 after v2 Patch applied to 1.9.2.3 (formkeys present)

This issue may cause because of two things. You are may be overwrite the \app\code\core\Mage\Checkout\controllers\OnepageController.php, this method is not there isFormkeyValidationOnChecko‌​...
Rama Chandran M's user avatar
1 vote
Accepted

I can't grab region or region_id in Admin Controller - Magento 1.7

Take a look at Mage_Customer_Model_Address_Abstract::getRegion(), you'll notice that underlying it is actually a model. In your case, try $baseAddress->getRegion(); // returns string, eg. Texas $...
kiatng's user avatar
  • 694
1 vote

Magento 2 Set "Billing Same as Shipping" default to unchecked

Instead of "dirty way" and modyfing js files in vendor folders (which will be discarded as soon as you update the code) you can copy files vendor/magento/module-checkout/view/frontend/web/js/model/...
Zefiryn's user avatar
  • 5,888
1 vote

Magento 2 - Where is jquery code of click on place order button in checkout page?

Click on place order button in checkout page called on the file : /vendor/magento/module-checkout/view/frontend/web/js/action/place-order.js /** * Copyright © Magento, Inc. All rights reserved. *...
Magetop E-commerce's user avatar
1 vote

Magento 2 - Where is jquery code of click on place order button in checkout page?

PATH : magento2/pub/static/frontend/Magento/{{THEME}}/en_US/Magento‌​_Checkout/js/action/‌​place-order.js
prathmeshb1's user avatar
1 vote

checkout onepage controller error

Try below code of yours: <?php require_once 'Mage/Checkout/controllers/OnepageController.php'; class Paypalextended_Checkout_OnepageController extends Mage_Checkout_Controller_Action { /** * ...
Hardik Shah's user avatar
1 vote

First and Last Name Fields Not Showing - Billing Information

An easier and more cleaner approach is to copy “opcheckout.js” from base theme to your custom theme /skin/frontend/base/default/js/opcheckout.js and place this code after line (45 approx) this....
fmeaddons's user avatar
  • 111
1 vote

First and Last Name Fields Not Showing - Billing Information

Try this, Note : Don't Edit Core File It will remove mandatory fields of First Name & Last Name. UPDATE eav_attribute SET is_required = 0 WHERE attribute_code = 'lastname' /app/code/local/...
Magento 2's user avatar
  • 3,834

Only top scored, non community-wiki answers of a minimum length are eligible