Magento 2 custom account edit form override by amazon pay module (core module) The 2019 Stack Overflow Developer Survey Results Are InMove Customer Edit Form into Account DashboardHow to override a HTML file using a custom module?Magento 2 override module-ui from custom themeMagento 2 override the cutomer account loginpost controllerOverride Wishlist view.phtml from custom module not workingProblem installing amazon-pay-module using composer for magento 2Magento 2 - Override info.phtml from Module SalesHow to change the validation message in my account information section in myaccout page in magento 2Magento 2.3 customer form register template file overrideNeed to override edit.phtml on cart page to add new button near it

What are the motivations for publishing new editions of an existing textbook, beyond new discoveries in a field?

How come people say “Would of”?

Why is my p-value correlated to difference between means in two sample tests?

What is the best strategy for white in this position?

Where does the "burst of radiance" from Holy Weapon originate?

What effect does the “loading” weapon property have in practical terms?

Does a dangling wire really electrocute me if I'm standing in water?

Falsification in Math vs Science

Inline version of a function returns different value than non-inline version

In microwave frequencies, do you use a circulator when you need a (near) perfect diode?

How to deal with fear of taking dependencies

Extreme, unacceptable situation and I can't attend work tomorrow morning

How was Skylab's orbit inclination chosen?

Limit the amount of RAM Mathematica may access?

Idiomatic way to prevent slicing?

Is there a name of the flying bionic bird?

Why could you hear an Amstrad CPC working?

How can I create a character who can assume the widest possible range of creature sizes?

Why don't Unix/Linux systems traverse through directories until they find the required version of a linked library?

What is the steepest angle that a canal can be traversable without locks?

Can't find the latex code for the ⍎ (down tack jot) symbol

What can other administrators access on my machine?

Pristine Bit Checking

Which Sci-Fi work first showed weapon of galactic-scale mass destruction?



Magento 2 custom account edit form override by amazon pay module (core module)



The 2019 Stack Overflow Developer Survey Results Are InMove Customer Edit Form into Account DashboardHow to override a HTML file using a custom module?Magento 2 override module-ui from custom themeMagento 2 override the cutomer account loginpost controllerOverride Wishlist view.phtml from custom module not workingProblem installing amazon-pay-module using composer for magento 2Magento 2 - Override info.phtml from Module SalesHow to change the validation message in my account information section in myaccout page in magento 2Magento 2.3 customer form register template file overrideNeed to override edit.phtml on cart page to add new button near it



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I have an issue on magento 2 customer account edit form.



I think generally magento 2 customer account edit form was loaded from vendor/magento/module-customer/view/frontend/templates/form/edit.phtml



My create account templates also loaded from vendor/magento/module-customer/view/frontend/templates/form/register.phtml



For create account template shows the exact path and from there also my template was loading.



But on customer account edit template, I have faced one issue,that was I have enabled the template path hints and checked the template path for the customer account edit form, it shows the below path:
vendor/amzn/amazon-pay-module/view/frontend/templates/form/edit.phtml



I want to customize the customer account edit form, so I have tried to override the core customer module edit.phtml template (vendor/magento/module-customer/view/frontend/templates/form/edit.phtml)



But here it showing the amazon pay module core file.



If any of my extension override that edit.phtml file means, it will show that path. But unfortunately, it shows another core module path (amazon-pay-module).



I'm totally confused with that. Why it is showing the core file path and tested with default magento 2 package, it also shows the correct path from module-customer (core file).



Hereby I have attached the image.



template path for account edit form



Is I want to override the amazon-pay-module here? It was correct.



can anyone please help me to shootout the issue?



Thanks in advance!.










share|improve this question






















  • Yes, you've to override this file to you theme or your module which is in app/code I've given answer just try it and let me know.

    – Prathap Gunasekaran
    Feb 15 at 11:50











  • Thanks Prathap.. But my doubt as of why the default module-customer core module template path changed by another one core module (amazon-pay-module). Generally, a core module can be overridden by any of our custom module or extension.

    – Ramya
    Feb 15 at 12:11











  • If you find the answer useful, please accept

    – Prathap Gunasekaran
    Feb 18 at 7:04











  • @Prathap, Thanks for ur answer. But my doubt as why amazon-pay-module path hint was showing instead of customer module. Can you please clarify that...

    – Ramya
    Feb 18 at 7:11











  • Amazon also an third party vendor which comes with magento core, so they may require to those files to be overridden. you could see Algolia_Search which goes under vendor and they do the same if require. It's not just extensions which is in app/code only need to overridden as far as my knowledge is concern.

    – Prathap Gunasekaran
    Feb 18 at 7:17


















1















I have an issue on magento 2 customer account edit form.



I think generally magento 2 customer account edit form was loaded from vendor/magento/module-customer/view/frontend/templates/form/edit.phtml



My create account templates also loaded from vendor/magento/module-customer/view/frontend/templates/form/register.phtml



For create account template shows the exact path and from there also my template was loading.



But on customer account edit template, I have faced one issue,that was I have enabled the template path hints and checked the template path for the customer account edit form, it shows the below path:
vendor/amzn/amazon-pay-module/view/frontend/templates/form/edit.phtml



I want to customize the customer account edit form, so I have tried to override the core customer module edit.phtml template (vendor/magento/module-customer/view/frontend/templates/form/edit.phtml)



But here it showing the amazon pay module core file.



If any of my extension override that edit.phtml file means, it will show that path. But unfortunately, it shows another core module path (amazon-pay-module).



I'm totally confused with that. Why it is showing the core file path and tested with default magento 2 package, it also shows the correct path from module-customer (core file).



Hereby I have attached the image.



template path for account edit form



Is I want to override the amazon-pay-module here? It was correct.



can anyone please help me to shootout the issue?



Thanks in advance!.










share|improve this question






















  • Yes, you've to override this file to you theme or your module which is in app/code I've given answer just try it and let me know.

    – Prathap Gunasekaran
    Feb 15 at 11:50











  • Thanks Prathap.. But my doubt as of why the default module-customer core module template path changed by another one core module (amazon-pay-module). Generally, a core module can be overridden by any of our custom module or extension.

    – Ramya
    Feb 15 at 12:11











  • If you find the answer useful, please accept

    – Prathap Gunasekaran
    Feb 18 at 7:04











  • @Prathap, Thanks for ur answer. But my doubt as why amazon-pay-module path hint was showing instead of customer module. Can you please clarify that...

    – Ramya
    Feb 18 at 7:11











  • Amazon also an third party vendor which comes with magento core, so they may require to those files to be overridden. you could see Algolia_Search which goes under vendor and they do the same if require. It's not just extensions which is in app/code only need to overridden as far as my knowledge is concern.

    – Prathap Gunasekaran
    Feb 18 at 7:17














1












1








1


1






I have an issue on magento 2 customer account edit form.



I think generally magento 2 customer account edit form was loaded from vendor/magento/module-customer/view/frontend/templates/form/edit.phtml



My create account templates also loaded from vendor/magento/module-customer/view/frontend/templates/form/register.phtml



For create account template shows the exact path and from there also my template was loading.



But on customer account edit template, I have faced one issue,that was I have enabled the template path hints and checked the template path for the customer account edit form, it shows the below path:
vendor/amzn/amazon-pay-module/view/frontend/templates/form/edit.phtml



I want to customize the customer account edit form, so I have tried to override the core customer module edit.phtml template (vendor/magento/module-customer/view/frontend/templates/form/edit.phtml)



But here it showing the amazon pay module core file.



If any of my extension override that edit.phtml file means, it will show that path. But unfortunately, it shows another core module path (amazon-pay-module).



I'm totally confused with that. Why it is showing the core file path and tested with default magento 2 package, it also shows the correct path from module-customer (core file).



Hereby I have attached the image.



template path for account edit form



Is I want to override the amazon-pay-module here? It was correct.



can anyone please help me to shootout the issue?



Thanks in advance!.










share|improve this question














I have an issue on magento 2 customer account edit form.



I think generally magento 2 customer account edit form was loaded from vendor/magento/module-customer/view/frontend/templates/form/edit.phtml



My create account templates also loaded from vendor/magento/module-customer/view/frontend/templates/form/register.phtml



For create account template shows the exact path and from there also my template was loading.



But on customer account edit template, I have faced one issue,that was I have enabled the template path hints and checked the template path for the customer account edit form, it shows the below path:
vendor/amzn/amazon-pay-module/view/frontend/templates/form/edit.phtml



I want to customize the customer account edit form, so I have tried to override the core customer module edit.phtml template (vendor/magento/module-customer/view/frontend/templates/form/edit.phtml)



But here it showing the amazon pay module core file.



If any of my extension override that edit.phtml file means, it will show that path. But unfortunately, it shows another core module path (amazon-pay-module).



I'm totally confused with that. Why it is showing the core file path and tested with default magento 2 package, it also shows the correct path from module-customer (core file).



Hereby I have attached the image.



template path for account edit form



Is I want to override the amazon-pay-module here? It was correct.



can anyone please help me to shootout the issue?



Thanks in advance!.







magento2 customer-account edit






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 15 at 11:19









RamyaRamya

63




63












  • Yes, you've to override this file to you theme or your module which is in app/code I've given answer just try it and let me know.

    – Prathap Gunasekaran
    Feb 15 at 11:50











  • Thanks Prathap.. But my doubt as of why the default module-customer core module template path changed by another one core module (amazon-pay-module). Generally, a core module can be overridden by any of our custom module or extension.

    – Ramya
    Feb 15 at 12:11











  • If you find the answer useful, please accept

    – Prathap Gunasekaran
    Feb 18 at 7:04











  • @Prathap, Thanks for ur answer. But my doubt as why amazon-pay-module path hint was showing instead of customer module. Can you please clarify that...

    – Ramya
    Feb 18 at 7:11











  • Amazon also an third party vendor which comes with magento core, so they may require to those files to be overridden. you could see Algolia_Search which goes under vendor and they do the same if require. It's not just extensions which is in app/code only need to overridden as far as my knowledge is concern.

    – Prathap Gunasekaran
    Feb 18 at 7:17


















  • Yes, you've to override this file to you theme or your module which is in app/code I've given answer just try it and let me know.

    – Prathap Gunasekaran
    Feb 15 at 11:50











  • Thanks Prathap.. But my doubt as of why the default module-customer core module template path changed by another one core module (amazon-pay-module). Generally, a core module can be overridden by any of our custom module or extension.

    – Ramya
    Feb 15 at 12:11











  • If you find the answer useful, please accept

    – Prathap Gunasekaran
    Feb 18 at 7:04











  • @Prathap, Thanks for ur answer. But my doubt as why amazon-pay-module path hint was showing instead of customer module. Can you please clarify that...

    – Ramya
    Feb 18 at 7:11











  • Amazon also an third party vendor which comes with magento core, so they may require to those files to be overridden. you could see Algolia_Search which goes under vendor and they do the same if require. It's not just extensions which is in app/code only need to overridden as far as my knowledge is concern.

    – Prathap Gunasekaran
    Feb 18 at 7:17

















Yes, you've to override this file to you theme or your module which is in app/code I've given answer just try it and let me know.

– Prathap Gunasekaran
Feb 15 at 11:50





Yes, you've to override this file to you theme or your module which is in app/code I've given answer just try it and let me know.

– Prathap Gunasekaran
Feb 15 at 11:50













Thanks Prathap.. But my doubt as of why the default module-customer core module template path changed by another one core module (amazon-pay-module). Generally, a core module can be overridden by any of our custom module or extension.

– Ramya
Feb 15 at 12:11





Thanks Prathap.. But my doubt as of why the default module-customer core module template path changed by another one core module (amazon-pay-module). Generally, a core module can be overridden by any of our custom module or extension.

– Ramya
Feb 15 at 12:11













If you find the answer useful, please accept

– Prathap Gunasekaran
Feb 18 at 7:04





If you find the answer useful, please accept

– Prathap Gunasekaran
Feb 18 at 7:04













@Prathap, Thanks for ur answer. But my doubt as why amazon-pay-module path hint was showing instead of customer module. Can you please clarify that...

– Ramya
Feb 18 at 7:11





@Prathap, Thanks for ur answer. But my doubt as why amazon-pay-module path hint was showing instead of customer module. Can you please clarify that...

– Ramya
Feb 18 at 7:11













Amazon also an third party vendor which comes with magento core, so they may require to those files to be overridden. you could see Algolia_Search which goes under vendor and they do the same if require. It's not just extensions which is in app/code only need to overridden as far as my knowledge is concern.

– Prathap Gunasekaran
Feb 18 at 7:17






Amazon also an third party vendor which comes with magento core, so they may require to those files to be overridden. you could see Algolia_Search which goes under vendor and they do the same if require. It's not just extensions which is in app/code only need to overridden as far as my knowledge is concern.

– Prathap Gunasekaran
Feb 18 at 7:17











2 Answers
2






active

oldest

votes


















0














You need to overwrite the file



vendor/amzn/amazon-pay-module/view/frontend/templates/form/edit.phtml


to your theme.



So Like this



app/design/frontend/<vendor>/<theme>/Amazon_Payment/templates/form/edit.phtml


And then Clear the cache it should work.






share|improve this answer






























    0














    you can try below code :



    Vendor/Module/registration.php & put below code.



    <?php

    MagentoFrameworkComponentComponentRegistrar::register(
    MagentoFrameworkComponentComponentRegistrar::MODULE,
    'Vendor_Module',
    __DIR__
    );


    add the module.xml file in Vendor/Module/etc/module.xml & put below code.



    <?xml version="1.0"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
    <module name="Vendor_Module" setup_version="1.0.0">
    <sequence>
    <module name="Amazon_Payment"/>
    </sequence>
    </module>
    </config>


    and customer_account_edit.xml in Vendor/Module/view/frontend/layout/customer_account_edit.xml & put below code.



    <?xml version="1.0"?>
    <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
    <referenceContainer name="form.additional.info">
    <block class="MagentoFrameworkViewElementTemplate" name="form_additional_info_customer" template="Vendor_Module::additionalinfocustomer.phtml"/>
    </referenceContainer>
    </body>
    </page>


    and additionalinfocustomer.phtml in Vendor/Module/view/frontend/templated/additionalinfocustomer.phtml & put below code.



    <fieldset class="fieldset create account" data-hasrequired="<?php /* @escapeNotVerified */ echo __('* Required Fields') ?>">
    <legend class="legend"><span><?php /* @escapeNotVerified */ echo __('Additional Information') ?></span></legend><br>

    <div class="field promotion_code required">
    <label for="promotion_code" class="label"><span><?php /* @escapeNotVerified */ echo __('Promotion Code') ?></span></label>
    <div class="control">
    <input type="text" name="promotion_code" id="promotion_code" title="<?php /* @escapeNotVerified */ echo __('Promotion Code') ?>" class="input-text" data-validate="required:true" autocomplete="off">
    </div>
    </div>
    </fieldset>




    share























      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%2f261977%2fmagento-2-custom-account-edit-form-override-by-amazon-pay-module-core-module%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









      0














      You need to overwrite the file



      vendor/amzn/amazon-pay-module/view/frontend/templates/form/edit.phtml


      to your theme.



      So Like this



      app/design/frontend/<vendor>/<theme>/Amazon_Payment/templates/form/edit.phtml


      And then Clear the cache it should work.






      share|improve this answer



























        0














        You need to overwrite the file



        vendor/amzn/amazon-pay-module/view/frontend/templates/form/edit.phtml


        to your theme.



        So Like this



        app/design/frontend/<vendor>/<theme>/Amazon_Payment/templates/form/edit.phtml


        And then Clear the cache it should work.






        share|improve this answer

























          0












          0








          0







          You need to overwrite the file



          vendor/amzn/amazon-pay-module/view/frontend/templates/form/edit.phtml


          to your theme.



          So Like this



          app/design/frontend/<vendor>/<theme>/Amazon_Payment/templates/form/edit.phtml


          And then Clear the cache it should work.






          share|improve this answer













          You need to overwrite the file



          vendor/amzn/amazon-pay-module/view/frontend/templates/form/edit.phtml


          to your theme.



          So Like this



          app/design/frontend/<vendor>/<theme>/Amazon_Payment/templates/form/edit.phtml


          And then Clear the cache it should work.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 14 at 7:39









          Shuvankar PaulShuvankar Paul

          11212




          11212























              0














              you can try below code :



              Vendor/Module/registration.php & put below code.



              <?php

              MagentoFrameworkComponentComponentRegistrar::register(
              MagentoFrameworkComponentComponentRegistrar::MODULE,
              'Vendor_Module',
              __DIR__
              );


              add the module.xml file in Vendor/Module/etc/module.xml & put below code.



              <?xml version="1.0"?>
              <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
              <module name="Vendor_Module" setup_version="1.0.0">
              <sequence>
              <module name="Amazon_Payment"/>
              </sequence>
              </module>
              </config>


              and customer_account_edit.xml in Vendor/Module/view/frontend/layout/customer_account_edit.xml & put below code.



              <?xml version="1.0"?>
              <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
              <body>
              <referenceContainer name="form.additional.info">
              <block class="MagentoFrameworkViewElementTemplate" name="form_additional_info_customer" template="Vendor_Module::additionalinfocustomer.phtml"/>
              </referenceContainer>
              </body>
              </page>


              and additionalinfocustomer.phtml in Vendor/Module/view/frontend/templated/additionalinfocustomer.phtml & put below code.



              <fieldset class="fieldset create account" data-hasrequired="<?php /* @escapeNotVerified */ echo __('* Required Fields') ?>">
              <legend class="legend"><span><?php /* @escapeNotVerified */ echo __('Additional Information') ?></span></legend><br>

              <div class="field promotion_code required">
              <label for="promotion_code" class="label"><span><?php /* @escapeNotVerified */ echo __('Promotion Code') ?></span></label>
              <div class="control">
              <input type="text" name="promotion_code" id="promotion_code" title="<?php /* @escapeNotVerified */ echo __('Promotion Code') ?>" class="input-text" data-validate="required:true" autocomplete="off">
              </div>
              </div>
              </fieldset>




              share



























                0














                you can try below code :



                Vendor/Module/registration.php & put below code.



                <?php

                MagentoFrameworkComponentComponentRegistrar::register(
                MagentoFrameworkComponentComponentRegistrar::MODULE,
                'Vendor_Module',
                __DIR__
                );


                add the module.xml file in Vendor/Module/etc/module.xml & put below code.



                <?xml version="1.0"?>
                <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
                <module name="Vendor_Module" setup_version="1.0.0">
                <sequence>
                <module name="Amazon_Payment"/>
                </sequence>
                </module>
                </config>


                and customer_account_edit.xml in Vendor/Module/view/frontend/layout/customer_account_edit.xml & put below code.



                <?xml version="1.0"?>
                <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
                <body>
                <referenceContainer name="form.additional.info">
                <block class="MagentoFrameworkViewElementTemplate" name="form_additional_info_customer" template="Vendor_Module::additionalinfocustomer.phtml"/>
                </referenceContainer>
                </body>
                </page>


                and additionalinfocustomer.phtml in Vendor/Module/view/frontend/templated/additionalinfocustomer.phtml & put below code.



                <fieldset class="fieldset create account" data-hasrequired="<?php /* @escapeNotVerified */ echo __('* Required Fields') ?>">
                <legend class="legend"><span><?php /* @escapeNotVerified */ echo __('Additional Information') ?></span></legend><br>

                <div class="field promotion_code required">
                <label for="promotion_code" class="label"><span><?php /* @escapeNotVerified */ echo __('Promotion Code') ?></span></label>
                <div class="control">
                <input type="text" name="promotion_code" id="promotion_code" title="<?php /* @escapeNotVerified */ echo __('Promotion Code') ?>" class="input-text" data-validate="required:true" autocomplete="off">
                </div>
                </div>
                </fieldset>




                share

























                  0












                  0








                  0







                  you can try below code :



                  Vendor/Module/registration.php & put below code.



                  <?php

                  MagentoFrameworkComponentComponentRegistrar::register(
                  MagentoFrameworkComponentComponentRegistrar::MODULE,
                  'Vendor_Module',
                  __DIR__
                  );


                  add the module.xml file in Vendor/Module/etc/module.xml & put below code.



                  <?xml version="1.0"?>
                  <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
                  <module name="Vendor_Module" setup_version="1.0.0">
                  <sequence>
                  <module name="Amazon_Payment"/>
                  </sequence>
                  </module>
                  </config>


                  and customer_account_edit.xml in Vendor/Module/view/frontend/layout/customer_account_edit.xml & put below code.



                  <?xml version="1.0"?>
                  <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
                  <body>
                  <referenceContainer name="form.additional.info">
                  <block class="MagentoFrameworkViewElementTemplate" name="form_additional_info_customer" template="Vendor_Module::additionalinfocustomer.phtml"/>
                  </referenceContainer>
                  </body>
                  </page>


                  and additionalinfocustomer.phtml in Vendor/Module/view/frontend/templated/additionalinfocustomer.phtml & put below code.



                  <fieldset class="fieldset create account" data-hasrequired="<?php /* @escapeNotVerified */ echo __('* Required Fields') ?>">
                  <legend class="legend"><span><?php /* @escapeNotVerified */ echo __('Additional Information') ?></span></legend><br>

                  <div class="field promotion_code required">
                  <label for="promotion_code" class="label"><span><?php /* @escapeNotVerified */ echo __('Promotion Code') ?></span></label>
                  <div class="control">
                  <input type="text" name="promotion_code" id="promotion_code" title="<?php /* @escapeNotVerified */ echo __('Promotion Code') ?>" class="input-text" data-validate="required:true" autocomplete="off">
                  </div>
                  </div>
                  </fieldset>




                  share













                  you can try below code :



                  Vendor/Module/registration.php & put below code.



                  <?php

                  MagentoFrameworkComponentComponentRegistrar::register(
                  MagentoFrameworkComponentComponentRegistrar::MODULE,
                  'Vendor_Module',
                  __DIR__
                  );


                  add the module.xml file in Vendor/Module/etc/module.xml & put below code.



                  <?xml version="1.0"?>
                  <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
                  <module name="Vendor_Module" setup_version="1.0.0">
                  <sequence>
                  <module name="Amazon_Payment"/>
                  </sequence>
                  </module>
                  </config>


                  and customer_account_edit.xml in Vendor/Module/view/frontend/layout/customer_account_edit.xml & put below code.



                  <?xml version="1.0"?>
                  <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
                  <body>
                  <referenceContainer name="form.additional.info">
                  <block class="MagentoFrameworkViewElementTemplate" name="form_additional_info_customer" template="Vendor_Module::additionalinfocustomer.phtml"/>
                  </referenceContainer>
                  </body>
                  </page>


                  and additionalinfocustomer.phtml in Vendor/Module/view/frontend/templated/additionalinfocustomer.phtml & put below code.



                  <fieldset class="fieldset create account" data-hasrequired="<?php /* @escapeNotVerified */ echo __('* Required Fields') ?>">
                  <legend class="legend"><span><?php /* @escapeNotVerified */ echo __('Additional Information') ?></span></legend><br>

                  <div class="field promotion_code required">
                  <label for="promotion_code" class="label"><span><?php /* @escapeNotVerified */ echo __('Promotion Code') ?></span></label>
                  <div class="control">
                  <input type="text" name="promotion_code" id="promotion_code" title="<?php /* @escapeNotVerified */ echo __('Promotion Code') ?>" class="input-text" data-validate="required:true" autocomplete="off">
                  </div>
                  </div>
                  </fieldset>





                  share











                  share


                  share










                  answered 4 mins ago









                  Charvi ParikhCharvi Parikh

                  592615




                  592615



























                      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%2f261977%2fmagento-2-custom-account-edit-form-override-by-amazon-pay-module-core-module%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

                      Disable / Remove link to Product Items in Cart Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How can I limit products that can be bought / added to cart?Remove item from cartHide “Add to Cart” button if specific products are already in cart“Prettifying” the custom options in cart pageCreate link in cart sidebar to view all added items After limit reachedLink products together in checkout/cartHow to Get product from cart and add it againHide action-edit on cart page if simple productRemoving Cart items - ObserverRemove wishlist items when added to cart

                      Helsingin valtaus Sisällysluettelo Taustaa | Yleistä sotatoimista | Osapuolet | Taistelut Helsingin ympäristössä | Punaisten antautumissuunnitelma | Taistelujen kulku Helsingissä | Valtauksen jälkeen | Tappiot | Muistaminen | Kirjallisuutta | Lähteet | Aiheesta muualla | NavigointivalikkoTeoksen verkkoversioTeoksen verkkoversioGoogle BooksSisällissota Helsingissä päättyi tasan 95 vuotta sittenSaksalaisten ylivoima jyräsi punaisen HelsinginSuomalaiset kuvaavat sotien jälkiä kaupungeissa – katso kuvat ja tarinat tutuilta kulmiltaHelsingin valtaus 90 vuotta sittenSaksalaiset valtasivat HelsinginHyökkäys HelsinkiinHelsingin valtaus 12.–13.4. 1918Saksalaiset käyttivät ihmiskilpiä Helsingin valtauksessa 1918Teoksen verkkoversioTeoksen verkkoversioSaksalaiset hyökkäävät Etelä-SuomeenTaistelut LeppävaarassaSotilaat ja taistelutLeppävaara 1918 huhtikuussa. KapinatarinaHelsingin taistelut 1918Saksalaisten voitonparaati HelsingissäHelsingin valtausta juhlittiinSaksalaisten Helsinki vuonna 1918Helsingin taistelussa kaatuneet valkokaartilaisetHelsinkiin haudatut taisteluissa kaatuneet punaiset12.4.1918 Helsingin valtauksessa saksalaiset apujoukot vapauttavat kaupunginVapaussodan muistomerkkejä Helsingissä ja pääkaupunkiseudullaCrescendo / Vuoden 1918 Kansalaissodan uhrien muistomerkkim

                      Adjektiivitarina Tarinan tekeminen | Esimerkki: ennen | Esimerkki: jälkeen | Navigointivalikko