Magento 2.1 Checkout – How to Display Company Name on Checkout Page
checkoutmagento-2.1magento2shipping-address
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?
Best Answer
To add company name or any other address field in
For add new field in shipping adress section, override vendor/magento/module-checkout/view/frontend/web/template/shipping-address/address-renderer/default.html
For add new field in sidebar ship to section, override vendor/magento/module-checkout/view/frontend/web/template/shipping-information/address-renderer/default.html
Best Answer
To add company name or any other address field in
For add new field in shipping adress section, override
vendor/magento/module-checkout/view/frontend/web/template/shipping-address/address-renderer/default.html
For add new field in sidebar ship to section, override
vendor/magento/module-checkout/view/frontend/web/template/shipping-information/address-renderer/default.html
For override create requirejs-config.js at
Now add
<!-- ko text: address().company --><!-- /ko -->
in overrided file where you want to display company field.like in