Magento 2 checkout form customer email value pre-fill does not work while other worksHow to add new custom field to billing address section in magento2Magento 2: Update Billing Address info fieldsCheckout billing address update custom attributesMagento 2.2.0 - checkout_index_index.xml shippingAdditional not workingCustom checkout field doesn't save the value to quoteAdditional custom field in billing address for virtual products Magento 2.1Magento 2 - Estimate Shipping and TaxEstimate Shipping Default valueMagento 2.2 Input field validation on Checkout pageAutofill customer address attribute in shipping form magento 2

Greatest common substring

Can a significant change in incentives void an employment contract?

Is camera lens focus an exact point or a range?

Is a model fitted to data or is data fitted to a model?

Can somebody explain Brexit in a few child-proof sentences?

Is possible to search in vim history?

Some numbers are more equivalent than others

How do ground effect vehicles perform turns?

Query about absorption line spectra

Why is Arduino resetting while driving motors?

Indicating multiple different modes of speech (fantasy language or telepathy)

Is XSS in canonical link possible?

Can someone explain how this makes sense electrically?

Could the E-bike drivetrain wear down till needing replacement after 400 km?

Two-sided logarithm inequality

Did US corporations pay demonstrators in the German demonstrations against article 13?

Constructing Group Divisible Designs - Algorithms?

How to align and center standalone amsmath equations?

A social experiment. What is the worst that can happen?

My friend sent me a screenshot of a transaction hash, but when I search for it I find divergent data. What happened?

MAXDOP Settings for SQL Server 2014

Is there a word to describe the feeling of being transfixed out of horror?

Find last 3 digits of this monster number

Has Darkwing Duck ever met Scrooge McDuck?



Magento 2 checkout form customer email value pre-fill does not work while other works


How to add new custom field to billing address section in magento2Magento 2: Update Billing Address info fieldsCheckout billing address update custom attributesMagento 2.2.0 - checkout_index_index.xml shippingAdditional not workingCustom checkout field doesn't save the value to quoteAdditional custom field in billing address for virtual products Magento 2.1Magento 2 - Estimate Shipping and TaxEstimate Shipping Default valueMagento 2.2 Input field validation on Checkout pageAutofill customer address attribute in shipping form magento 2













2















I am using Magento 2.3. I am trying to pre-fill fields in Magento checkout form.

I have done following. I followed this article.



First I defined dependency injection at vendor/module/etc/frontend/di.xml.

I believe it is working.



After that, I created layoutprocessor at Vendor/Module/Plugin/Magento/Checkout/Block/Checkout/LayoutProcessor.php with following contents:



<?php

namespace VendorModulePluginMagentoCheckoutBlockCheckout;

class LayoutProcessor

public function afterProcess(
MagentoCheckoutBlockCheckoutLayoutProcessor $subject,
array $jsLayout
)
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['firstname']['value'] = 'First Name';
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['customer-email']['value'] = 'default@example.com';
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['street']['children'][0]['value'] = 'Street Line one';

return $jsLayout;




My problem is that, the firstname field gets filled with the value, while customer-email field does not get filled with the supplied value. Where am I doing wrong?










share|improve this question
























  • change this your email line with this one $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['customer-email']['value'] = 'default@example.com'

    – magefms
    Mar 14 at 3:22
















2















I am using Magento 2.3. I am trying to pre-fill fields in Magento checkout form.

I have done following. I followed this article.



First I defined dependency injection at vendor/module/etc/frontend/di.xml.

I believe it is working.



After that, I created layoutprocessor at Vendor/Module/Plugin/Magento/Checkout/Block/Checkout/LayoutProcessor.php with following contents:



<?php

namespace VendorModulePluginMagentoCheckoutBlockCheckout;

class LayoutProcessor

public function afterProcess(
MagentoCheckoutBlockCheckoutLayoutProcessor $subject,
array $jsLayout
)
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['firstname']['value'] = 'First Name';
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['customer-email']['value'] = 'default@example.com';
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['street']['children'][0]['value'] = 'Street Line one';

return $jsLayout;




My problem is that, the firstname field gets filled with the value, while customer-email field does not get filled with the supplied value. Where am I doing wrong?










share|improve this question
























  • change this your email line with this one $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['customer-email']['value'] = 'default@example.com'

    – magefms
    Mar 14 at 3:22














2












2








2








I am using Magento 2.3. I am trying to pre-fill fields in Magento checkout form.

I have done following. I followed this article.



First I defined dependency injection at vendor/module/etc/frontend/di.xml.

I believe it is working.



After that, I created layoutprocessor at Vendor/Module/Plugin/Magento/Checkout/Block/Checkout/LayoutProcessor.php with following contents:



<?php

namespace VendorModulePluginMagentoCheckoutBlockCheckout;

class LayoutProcessor

public function afterProcess(
MagentoCheckoutBlockCheckoutLayoutProcessor $subject,
array $jsLayout
)
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['firstname']['value'] = 'First Name';
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['customer-email']['value'] = 'default@example.com';
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['street']['children'][0]['value'] = 'Street Line one';

return $jsLayout;




My problem is that, the firstname field gets filled with the value, while customer-email field does not get filled with the supplied value. Where am I doing wrong?










share|improve this question
















I am using Magento 2.3. I am trying to pre-fill fields in Magento checkout form.

I have done following. I followed this article.



First I defined dependency injection at vendor/module/etc/frontend/di.xml.

I believe it is working.



After that, I created layoutprocessor at Vendor/Module/Plugin/Magento/Checkout/Block/Checkout/LayoutProcessor.php with following contents:



<?php

namespace VendorModulePluginMagentoCheckoutBlockCheckout;

class LayoutProcessor

public function afterProcess(
MagentoCheckoutBlockCheckoutLayoutProcessor $subject,
array $jsLayout
)
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['firstname']['value'] = 'First Name';
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['customer-email']['value'] = 'default@example.com';
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['street']['children'][0]['value'] = 'Street Line one';

return $jsLayout;




My problem is that, the firstname field gets filled with the value, while customer-email field does not get filled with the supplied value. Where am I doing wrong?







magento2 guest-checkout default-values






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 14 at 4:32









magefms

1,9271425




1,9271425










asked Mar 14 at 2:08









PrabhuPrabhu

1114




1114












  • change this your email line with this one $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['customer-email']['value'] = 'default@example.com'

    – magefms
    Mar 14 at 3:22


















  • change this your email line with this one $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['customer-email']['value'] = 'default@example.com'

    – magefms
    Mar 14 at 3:22

















change this your email line with this one $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['customer-email']['value'] = 'default@example.com'

– magefms
Mar 14 at 3:22






change this your email line with this one $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['customer-email']['value'] = 'default@example.com'

– magefms
Mar 14 at 3:22











2 Answers
2






active

oldest

votes


















1














Instead of create plugin on MagentoCheckoutBlockCheckoutLayoutProcessor



Create plugin on MagentoCheckoutModelDefaultConfigProvider and use after plugin method on getConfig prefill email id But avoid it on loggedin customer as it already has email.



di.xml code:



<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="MagentoCheckoutModelDefaultConfigProvider">
<plugin disabled="false" name="StackExchange_MagentoAnswer_Plugin_Magento_Checkout_Model_DefaultConfigProvider" sortOrder="10" type="StackExchangeMagentoAnswerPluginMagentoCheckoutModelDefaultConfigProvider"/>
</type>
</config>


Plugin Class



<?php

namespace StackExchangeMagentoAnswerPluginMagentoCheckoutModel;

use MagentoFrameworkAppHttpContext as HttpContext;
use MagentoCustomerModelContext as CustomerContext;
class DefaultConfigProvider

/**
* @var HttpContext
*/
private $httpContext;

public function __construct(
HttpContext $httpContext
)
$this->httpContext = $httpContext;


public function afterGetConfig(
MagentoCheckoutModelDefaultConfigProvider $subject,
$result
)
if (!$this->isCustomerLoggedIn() && is_array($result))
$result['validatedEmailValue'] = 'john.deo@gmail.com';

return $result;

/**
* Check if customer is logged in
*
* @return bool
* @codeCoverageIgnore
*/
private function isCustomerLoggedIn()

return (bool)$this->httpContext->getValue(CustomerContext::CONTEXT_AUTH);







share|improve this answer
































    0














    Try changing your email line of code to look similar with the firstname:



    <?php

    namespace VendorModulePluginMagentoCheckoutBlockCheckout;

    class LayoutProcessor

    public function afterProcess(
    MagentoCheckoutBlockCheckoutLayoutProcessor $subject,
    array $jsLayout
    )
    $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['firstname']['value'] = 'First Name';
    $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['customer-email']['value'] = 'default@example.com';
    $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['street']['children'][0]['value'] = 'Street Line one';

    return $jsLayout;





    You are just missing the ['shipping-address-fieldset']['children']







    share|improve this answer






















      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "479"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f265782%2fmagento-2-checkout-form-customer-email-value-pre-fill-does-not-work-while-other%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      Instead of create plugin on MagentoCheckoutBlockCheckoutLayoutProcessor



      Create plugin on MagentoCheckoutModelDefaultConfigProvider and use after plugin method on getConfig prefill email id But avoid it on loggedin customer as it already has email.



      di.xml code:



      <?xml version="1.0" ?>
      <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
      <type name="MagentoCheckoutModelDefaultConfigProvider">
      <plugin disabled="false" name="StackExchange_MagentoAnswer_Plugin_Magento_Checkout_Model_DefaultConfigProvider" sortOrder="10" type="StackExchangeMagentoAnswerPluginMagentoCheckoutModelDefaultConfigProvider"/>
      </type>
      </config>


      Plugin Class



      <?php

      namespace StackExchangeMagentoAnswerPluginMagentoCheckoutModel;

      use MagentoFrameworkAppHttpContext as HttpContext;
      use MagentoCustomerModelContext as CustomerContext;
      class DefaultConfigProvider

      /**
      * @var HttpContext
      */
      private $httpContext;

      public function __construct(
      HttpContext $httpContext
      )
      $this->httpContext = $httpContext;


      public function afterGetConfig(
      MagentoCheckoutModelDefaultConfigProvider $subject,
      $result
      )
      if (!$this->isCustomerLoggedIn() && is_array($result))
      $result['validatedEmailValue'] = 'john.deo@gmail.com';

      return $result;

      /**
      * Check if customer is logged in
      *
      * @return bool
      * @codeCoverageIgnore
      */
      private function isCustomerLoggedIn()

      return (bool)$this->httpContext->getValue(CustomerContext::CONTEXT_AUTH);







      share|improve this answer





























        1














        Instead of create plugin on MagentoCheckoutBlockCheckoutLayoutProcessor



        Create plugin on MagentoCheckoutModelDefaultConfigProvider and use after plugin method on getConfig prefill email id But avoid it on loggedin customer as it already has email.



        di.xml code:



        <?xml version="1.0" ?>
        <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
        <type name="MagentoCheckoutModelDefaultConfigProvider">
        <plugin disabled="false" name="StackExchange_MagentoAnswer_Plugin_Magento_Checkout_Model_DefaultConfigProvider" sortOrder="10" type="StackExchangeMagentoAnswerPluginMagentoCheckoutModelDefaultConfigProvider"/>
        </type>
        </config>


        Plugin Class



        <?php

        namespace StackExchangeMagentoAnswerPluginMagentoCheckoutModel;

        use MagentoFrameworkAppHttpContext as HttpContext;
        use MagentoCustomerModelContext as CustomerContext;
        class DefaultConfigProvider

        /**
        * @var HttpContext
        */
        private $httpContext;

        public function __construct(
        HttpContext $httpContext
        )
        $this->httpContext = $httpContext;


        public function afterGetConfig(
        MagentoCheckoutModelDefaultConfigProvider $subject,
        $result
        )
        if (!$this->isCustomerLoggedIn() && is_array($result))
        $result['validatedEmailValue'] = 'john.deo@gmail.com';

        return $result;

        /**
        * Check if customer is logged in
        *
        * @return bool
        * @codeCoverageIgnore
        */
        private function isCustomerLoggedIn()

        return (bool)$this->httpContext->getValue(CustomerContext::CONTEXT_AUTH);







        share|improve this answer



























          1












          1








          1







          Instead of create plugin on MagentoCheckoutBlockCheckoutLayoutProcessor



          Create plugin on MagentoCheckoutModelDefaultConfigProvider and use after plugin method on getConfig prefill email id But avoid it on loggedin customer as it already has email.



          di.xml code:



          <?xml version="1.0" ?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <type name="MagentoCheckoutModelDefaultConfigProvider">
          <plugin disabled="false" name="StackExchange_MagentoAnswer_Plugin_Magento_Checkout_Model_DefaultConfigProvider" sortOrder="10" type="StackExchangeMagentoAnswerPluginMagentoCheckoutModelDefaultConfigProvider"/>
          </type>
          </config>


          Plugin Class



          <?php

          namespace StackExchangeMagentoAnswerPluginMagentoCheckoutModel;

          use MagentoFrameworkAppHttpContext as HttpContext;
          use MagentoCustomerModelContext as CustomerContext;
          class DefaultConfigProvider

          /**
          * @var HttpContext
          */
          private $httpContext;

          public function __construct(
          HttpContext $httpContext
          )
          $this->httpContext = $httpContext;


          public function afterGetConfig(
          MagentoCheckoutModelDefaultConfigProvider $subject,
          $result
          )
          if (!$this->isCustomerLoggedIn() && is_array($result))
          $result['validatedEmailValue'] = 'john.deo@gmail.com';

          return $result;

          /**
          * Check if customer is logged in
          *
          * @return bool
          * @codeCoverageIgnore
          */
          private function isCustomerLoggedIn()

          return (bool)$this->httpContext->getValue(CustomerContext::CONTEXT_AUTH);







          share|improve this answer















          Instead of create plugin on MagentoCheckoutBlockCheckoutLayoutProcessor



          Create plugin on MagentoCheckoutModelDefaultConfigProvider and use after plugin method on getConfig prefill email id But avoid it on loggedin customer as it already has email.



          di.xml code:



          <?xml version="1.0" ?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <type name="MagentoCheckoutModelDefaultConfigProvider">
          <plugin disabled="false" name="StackExchange_MagentoAnswer_Plugin_Magento_Checkout_Model_DefaultConfigProvider" sortOrder="10" type="StackExchangeMagentoAnswerPluginMagentoCheckoutModelDefaultConfigProvider"/>
          </type>
          </config>


          Plugin Class



          <?php

          namespace StackExchangeMagentoAnswerPluginMagentoCheckoutModel;

          use MagentoFrameworkAppHttpContext as HttpContext;
          use MagentoCustomerModelContext as CustomerContext;
          class DefaultConfigProvider

          /**
          * @var HttpContext
          */
          private $httpContext;

          public function __construct(
          HttpContext $httpContext
          )
          $this->httpContext = $httpContext;


          public function afterGetConfig(
          MagentoCheckoutModelDefaultConfigProvider $subject,
          $result
          )
          if (!$this->isCustomerLoggedIn() && is_array($result))
          $result['validatedEmailValue'] = 'john.deo@gmail.com';

          return $result;

          /**
          * Check if customer is logged in
          *
          * @return bool
          * @codeCoverageIgnore
          */
          private function isCustomerLoggedIn()

          return (bool)$this->httpContext->getValue(CustomerContext::CONTEXT_AUTH);








          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited yesterday

























          answered Mar 14 at 4:35









          Amit BeraAmit Bera

          59.3k1675177




          59.3k1675177























              0














              Try changing your email line of code to look similar with the firstname:



              <?php

              namespace VendorModulePluginMagentoCheckoutBlockCheckout;

              class LayoutProcessor

              public function afterProcess(
              MagentoCheckoutBlockCheckoutLayoutProcessor $subject,
              array $jsLayout
              )
              $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['firstname']['value'] = 'First Name';
              $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['customer-email']['value'] = 'default@example.com';
              $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['street']['children'][0]['value'] = 'Street Line one';

              return $jsLayout;





              You are just missing the ['shipping-address-fieldset']['children']







              share|improve this answer



























                0














                Try changing your email line of code to look similar with the firstname:



                <?php

                namespace VendorModulePluginMagentoCheckoutBlockCheckout;

                class LayoutProcessor

                public function afterProcess(
                MagentoCheckoutBlockCheckoutLayoutProcessor $subject,
                array $jsLayout
                )
                $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['firstname']['value'] = 'First Name';
                $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['customer-email']['value'] = 'default@example.com';
                $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['street']['children'][0]['value'] = 'Street Line one';

                return $jsLayout;





                You are just missing the ['shipping-address-fieldset']['children']







                share|improve this answer

























                  0












                  0








                  0







                  Try changing your email line of code to look similar with the firstname:



                  <?php

                  namespace VendorModulePluginMagentoCheckoutBlockCheckout;

                  class LayoutProcessor

                  public function afterProcess(
                  MagentoCheckoutBlockCheckoutLayoutProcessor $subject,
                  array $jsLayout
                  )
                  $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['firstname']['value'] = 'First Name';
                  $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['customer-email']['value'] = 'default@example.com';
                  $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['street']['children'][0]['value'] = 'Street Line one';

                  return $jsLayout;





                  You are just missing the ['shipping-address-fieldset']['children']







                  share|improve this answer













                  Try changing your email line of code to look similar with the firstname:



                  <?php

                  namespace VendorModulePluginMagentoCheckoutBlockCheckout;

                  class LayoutProcessor

                  public function afterProcess(
                  MagentoCheckoutBlockCheckoutLayoutProcessor $subject,
                  array $jsLayout
                  )
                  $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['firstname']['value'] = 'First Name';
                  $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['customer-email']['value'] = 'default@example.com';
                  $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['street']['children'][0]['value'] = 'Street Line one';

                  return $jsLayout;





                  You are just missing the ['shipping-address-fieldset']['children']








                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 14 at 3:23









                  magefmsmagefms

                  1,9271425




                  1,9271425



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Magento Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f265782%2fmagento-2-checkout-form-customer-email-value-pre-fill-does-not-work-while-other%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Sum ergo cogito? 1 nng

                      419 nièngy_Soadمي 19bal1.5o_g

                      Queiggey Chernihivv 9NnOo i Zw X QqKk LpB