skip to Main Content

Magento 2: Add "autocomplete" attribute to checkout fields

We're running our site on Magento CE2.4.1. Currently, checkout fields have the following attributes: <input class="input-text" type="text" data-bind=" value: value, valueUpdate: 'keyup', hasFocus: focused, attr: { name: inputName, placeholder: placeholder, 'aria-describedby': getDescriptionId(), 'aria-required': required, 'aria-invalid': error() ? true : 'false',…

VIEW QUESTION

Magento 2 – Get Customer Address Id through Shipping Address at Checkout Session

I'm having trouble with getting customer address Id as it returns a null value. This is what I have tried: $checkout = $this->_sessionCheckout->getQuote(); if ($checkout) { $shippingAddress = $checkout->getShippingAddress(); if ($shippingAddress) { $addressId = $shippingAddress->getCustomerAddressId(); $this->_logger->log(100, print_r('address Id: ' .…

VIEW QUESTION
Back To Top
Search