I have the problem that the fields first name and last name of guest checkout are populated already with data which is not the clients data. How can I set that it is blank? Does anyone have an idea why the fields first name and last name are pre-filled on the first hand? Using Magento 2.3.3 Thank you very much already.

  • can you check my answer – Rakesh Donga Nov 3 '20 at 11:18
  • Hi Rakesh. Checking with our agency and let you know. Thank you much. – Ben Nov 3 '20 at 16:01
  • Hey Ben - I'm having the exact same thing happen, it's very strange. Did this solve it for you? – Thomas Harding Feb 1 at 12:06

Try Below way:


<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    <type name="Magento\Checkout\Block\Checkout\LayoutProcessor">
        <plugin name="Vendor_checkout_layout_processor_t" type="Vendor\CheckoutStep\Plugin\Block\LayoutProcessor" sortOrder="10"/>


namespace Vendor\CheckoutStep\Plugin\Block;

class LayoutProcessor
     * @param \Magento\Checkout\Block\Checkout\LayoutProcessor $subject
     * @param array $jsLayout
     * @return array
    public function afterProcess(
        \Magento\Checkout\Block\Checkout\LayoutProcessor $subject,
        array $jsLayout
    ) {

        ['shippingAddress']['children']['shipping-address-fieldset']['children']['firstname']['value'] = '';

        ['shippingAddress']['children']['shipping-address-fieldset']['children']['lastname']['value'] = '';

        return $jsLayout;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.