New answers tagged

0

Listing of Shipping addresses vendor/magento/module-checkout/view/frontend/web/template/shipping-address/list.html vendor/magento/module-checkout/view/frontend/web/js/view/shipping-address/list.js To locate the shipping address, the below file will be helpful vendor/magento/module-checkout/view/frontend/web/template/shipping-address/address-renderer/...


0

Brother Try this Create checkout_index_index.xml at app/design/frontend/Package/theme/Magento_Checkout/layout/checkout_index_index.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body>...


0

This is the html file from where these addresses are rendered $.Magento_Root/vendor/magento/module-checkout/view/frontend/web/template/shipping-address/address-renderer/default.html And if this file is overridden then it must be in /app/design/frontend/Your_Theme/Magento_Checkout/web/template/shipping-address/address-renderer/default.html


0

These addresses come from Customer Account.


0

Create Module and Make Ajax Request as from your Module and Validate in Theme through JS. I will share you some piece of my code. This Code have validate only Postcode(Pincode), you can manipulate it. Path: OSCP/ModuleName/Controller/Ajax/CheckPincode.php <?php namespace OSCP/ModuleName\Controller\Ajax; use Magento\Framework\App\Action\Action; use ...


0

Add This code on your header <script type="text/javascript"> require(['jquery'],function($){ $(document).ready(function () { $(document).ajaxComplete(function () { if($('input#billing-address-same-as-shipping-shared').prop("checked") == true){ }else{ ...


0

Street address is rendering from {process() function in Magento\Checkout\Block\Cart\LayoutProcessor} then it called {merge() and getMultilineFieldConfig() function in Magento\Checkout\Block\Checkout\AttributeMerger}. You can take reference or add tooltip like Phone number please refer following link: How to add tooltip


1

Please try with below way to check street deatils : {{var $order.getShippingAddress().getStreetLine(1) }} {{var $order.getShippingAddress().getStreetLine(2) }} for more data if you want than check with below url. https://hotexamples.com/examples/magento.sales.model.order/Address/getStreetLine/php-address-getstreetline-method-examples.html


2

Try this instead : {{var order.getShippingAddress().getStreetLine(1)}}


2

To hide the extension attribute in the shipping address, you need to override the file Magento/Checkout/view/frontend/web/template/shipping-address/address-renderer/default.html requirejs-config.js var config = { map: { '*': { 'Magento_Checkout/template/shipping-address/address-renderer/default.html': 'Vendor_Module/template/shipping-...


0

I never got fieldsets to work. I would suggest copying fields using an observer. Below I've pasted parts of a working example... First, you just need to specify the AddressInterface and OrderAddressInterface interfaces in the extension attributes (it should also work with just AddressInterface): ./etc/extension_attributes.xml <config xmlns:xsi="http://...


2

I've got a same issue like yours, i've made a Custom Customer Address Attribute but can't save it from checkout, so i made an Event/Observer like this: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd"> <event name="...


2

TO Save this attribute value to Order address, you need to use Below event: sales_model_service_quote_submit_before sales_model_service_quote_submit_success At those events you need to copy the field value from quote address to order address object then, the value will save to sales_order_address table. events.xml <?xml version="1.0" ?> <...


1

Please try this: foreach($items as $item) { $sku = $item->getSku(); $name= $item->getName(); $qty = $item->getQtyOrdered(); $price = $item->getPrice(); $shipping_state = Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->...


Top 50 recent answers are included