57

I will try to answer your question(s). No. This is not a correct way to add custom attributes to the shipping address form. You do not need to edit new-customer-address.js. Indeed, this JS file lists all predefined address attributes and matches corresponding backend interface \Magento\Quote\Api\Data\AddressInterface but Magento provides ability to pass any ...


47

How the Magento 1.9.2.1 update affects Middle Name First, the solution I had the same issue when updating to Magento CE 1.9.2.1 from Magento CE 1.9.2.0. The update caused Middle Name to display, but when I checked the admin System > Configuration > Customers > Customer Configuration > Name and Address Options the "Show Middle Name (initial)" ...


33

Here is what I've done. I removed the shipping step and used a default shipping method that I know is always going to be available. Not sure if this is what you need but you can at least use it as a starting point. Here is my idea. I created a new module with an enable/disable shipping step config setting, so you can always re-enable the shipping step from ...


33

I'll answer the question in two parts: I. Where should you change the checkout URL? The destination in link.phtml is $block->getCheckoutUrl(). You should not change the template to change functionality, but change the block Magento\Checkout\Block\Onepage\Link instead. To do so create a plugin for it with a method afterGetCheckoutUrl() to change the ...


31

I finally figured it out. Here is what I'm doing. Get a single product curl -g -X GET "$base_url/index.php/rest/V1/products/24-MB05/" \ -H "Authorization: Bearer $token" Create cart curl -g -X POST "$base_url/index.php/rest/V1/guest-carts/" \ -H "Authorization: Bearer $token" Get Cart curl -g -X GET "$base_url/index.php/rest/V1/guest-carts/...


31

Today I am going to explain how to add custom fields to all steps of checkout page and save it after order is placed and also how to use posted data after placing order 1st fields delivery_date :- where customer will mention at the delivery date in shipping step 2nd fields order Comments :- will be in Payment step and after placing order this comments will ...


28

We can read the document here: http://devdocs.magento.com/guides/v2.0/howdoi/checkout/checkout_customize.html. In your case: we can apply this guide: <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> &...


27

The use of Magento\Checkout\Model\Cart is deprecated. You should use the session to get the quote and your cart items. use Magento\Checkout\Model\Session; public function __construct( ... Session $session ... ) { ... $this->_session = $session; ... } public function yourFunction() { $items = ...


26

To understand what checkoutProvider and displayArea are, you must first understand the scope you are looking in: jsLayout. jsLayout is a bunch of JavaScript configuration for the JavaScript UI elements on the checkout page. If you look at module-checkout/view/frontend/templates/onepage.phtml, you'll notice the following x-magento-init-data: <script type=...


23

I got a solution. First go to Magento_Checkout in your theme folder app/design/frontend/package_name/theme_name/Magento_Checkout Now create below folder structure in layout folder on the above path. override/theme/Magento/blank/checkout_index_index.xml in this checkout_index_index.xml file add below code. <?xml version="1.0"?> <page xmlns:xsi="...


22

Here I give example to show custom block above shipping method of checkout Create di.xml at app/code/Vendor/Module/etc/frontend/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> &...


21

The best solution for me was to base yourself in the same method mentioned above: (getMultilineFieldConfig) However creating a NEW MODULE. In your new or existing module, add Magento_Checkout in the node sequence (VendorName/ModuleName/etc/module.xml): <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&...


21

Have you override the file checkout_index_index.xml ? If, yes, make sure you have created your custom checkout_index_index.xml in the right folder like : design/frontend/NameSpace/your_theme/Magento_Checkout/layout/override/base/checkout_index_index.xml http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/layouts/layout-override.html Hope it help


21

Magento checkout does not support any kind of form for shipping method additional data. But it provides shippingAdditional block in the checkout which can be used for this. The following solution will work for standard magento checkout. First let's prepare our container where we can put some form. To do this create a file in view/frontend/layout/...


20

Add these file in any of your custom module : app/code/Vendor/ModuleName/etc/module.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd"> <module name="Vendor_ModuleName" setup_version="2.0.0" /> </config> app/code/...


20

I found my problem... Magento 2 has a built in feature that allows the user to specify countries for optional post code. In that feature, you can remove validation for selected countries. Settings can be found in: Admin Panel > Stores > Settings > Configuration > General > General > Country options > Zip/Postal Code is Optional for You have to un-tick ...


19

Hope I'm not too self-promoting, but I created a free extension that can be quickly installed in Magento, and allows you to preview the order success-page for any order - simply by accessing an URL: http://www.yireo.com/software/magento-extensions/checkout-tester


18

As it has been said in the comments the error is located in the checkout.xml. Here is the faulty code in the custom template: <block type="checkout/onepage_payment_methods" name="checkout.payment.methods" as="methods" template="checkout/onepage/payment/methods.phtml"> And should be replaced by: <block type="checkout/onepage_payment_methods" name=...


18

The address is not just on checkout page, but in profile too. Anyway, in admin panel go to System → Configuration → Customers → Customer Configuration open Name and Adress options and the is Number of Lines in a Street Address. Here you can set it.


18

Use below CSS for hiding discount block. .checkout-index-index .payment-option._collapsible.opc-payment-additional.discount-code { display: none; } Edit app/code/vendor/Module/view/frontend/layout/checkout_index_index.xml or app/design/frontend/Vendor/theme/Magento_Checkout/layout/checkout_index_index.xml you can also remove discount block using '...


18

Very interesting question. Let me answer the last assumption about the Checkout implementation. It might be over-engineered a bit since you have to add more than just 1 change in 1 file. The approach does not require performing modifications in the Magento 2 core modules. In order to achieve your goal and wrap checkout shipping address fields into a custom ...


17

If you're new to Magento, this answer likely will not make sense. So either get an experienced Magento developer on this or start brushing up. With that, here's what you can try. Prerequisites Ensure that you have defined terms in Magento under Sales > Terms and conditions Ensure that you have terms enabled in System Configuration > Sales > ...


17

Please follow the below steps might be useful. Path:- app/code/core/Mage/Sales/Model/Config/Ordered.php Comment this code /** * Aggregate before/after information from all items and sort totals based on this data * * @return array */ protected function _getSortedCollectorCodes() { if (Mage::app()->useCache('...


17

$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $cart = $objectManager->get('\Magento\Checkout\Model\Cart'); // retrieve quote items collection $itemsCollection = $cart->getQuote()->getItemsCollection(); // get array of all items what can be display directly $itemsVisible = $cart->getQuote()->getAllVisibleItems(); // ...


17

If you want to leave taxes enabled and with a value but just remove them from display remove the item with the name tax at the appropriate place. For example to remove tax from the checkout cart sidebar add this to your themes (or module) app/design/frontend/<vendor>/<theme>/Magento_Checkout/layout/checkout_cart_index.xml: <referenceBlock ...


17

I really really don't know if it's the Magento right way but I tried this: <item name="telephone" xsi:type="array"> <item name="config" xsi:type="array"> <item name="tooltip" xsi:type="boolean">false</item> </item> </item> and it worked for me. After many attempts I came to this conclusion: the Knockout ...


17

To change phone number into optional follow the below configuration setup Go to Admin Login -> Stores -> (Settings) Configuration -> Customers(Tab) -> Customer Configuration -> Name and Address Options. In their change Show Telephone is Required into Optional. Now the checkout page is not asking the Phone number is required.


16

You can do it from this template file : /app/design/frontend/base/default/template/paypal/payment/mark.phtml Both paypal logo and text "What is Paypal" is coded in this file. Ideally you should copy this file with same path in your theme and modify this file according to requirements. Like if your theme is : /app/design/frontend/default/mytheme Then in ...


16

In Magento 2.1(.1) the logo is moved in the /vendor/magento/module-checkout/view/frontend/layout/checkout_index_index.xml from it's regular place to checkout.header.wrapper and then it seems to get lost somewhere.. This is the culpit: <move element="logo" destination="checkout.header.wrapper"/> To get the logo back, add/edit the file: [root]/app/...


16

You have to just override getConfig() function of checkout module. app/code/Packagename/Checkout/etc/frontend/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <!-- pass custom variable to checkout page --> &...


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