How can we make purchase order optional in magento 2.1?Purchase order carrier: show even if order amount is zeroMagento 2.0.7 to 2.1 - Error in Review Order Page - “We cant place the order”How to disable purchase order for guest checkout?Magento 2 make purchase order number optionalRestore deleted purchase orderchange Purchase order to dropdown menuhow to display purchase order number in customer dashboard frontend?How to send a purchase email to the suppliers manually by clicking a button on order detail page in Magento 2?

How will losing mobility of one hand affect my career as a programmer?

Hide Select Output from T-SQL

Go Pregnant or Go Home

Is expanding the research of a group into machine learning as a PhD student risky?

Understanding "audieritis" in Psalm 94

Modify casing of marked letters

Why did Kant, Hegel, and Adorno leave some words and phrases in the Greek alphabet?

Was the picture area of a CRT a parallelogram (instead of a true rectangle)?

Using parameter substitution on a Bash array

What defines a dissertation?

is this a spam?

Failed to fetch jessie backports repository

Increase performance creating Mandelbrot set in python

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

Is it correct to write "is not focus on"?

What is the oldest known work of fiction?

Bash method for viewing beginning and end of file

Curses work by shouting - How to avoid collateral damage?

Is there a problem with hiding "forgot password" until it's needed?

Can a monster with multiattack use this ability if they are missing a limb?

Why is delta-v is the most useful quantity for planning space travel?

How do I define a right arrow with bar in LaTeX?

How does residential electricity work?

Is there any easy technique written in Bhagavad GITA to control lust?



How can we make purchase order optional in magento 2.1?


Purchase order carrier: show even if order amount is zeroMagento 2.0.7 to 2.1 - Error in Review Order Page - “We cant place the order”How to disable purchase order for guest checkout?Magento 2 make purchase order number optionalRestore deleted purchase orderchange Purchase order to dropdown menuhow to display purchase order number in customer dashboard frontend?How to send a purchase email to the suppliers manually by clicking a button on order detail page in Magento 2?













2















Is there a way to make the purchase order number in the checkout page optional?
without filling purchase order number text field, I want to place an order.



enter image description here










share|improve this question


























    2















    Is there a way to make the purchase order number in the checkout page optional?
    without filling purchase order number text field, I want to place an order.



    enter image description here










    share|improve this question
























      2












      2








      2








      Is there a way to make the purchase order number in the checkout page optional?
      without filling purchase order number text field, I want to place an order.



      enter image description here










      share|improve this question














      Is there a way to make the purchase order number in the checkout page optional?
      without filling purchase order number text field, I want to place an order.



      enter image description here







      magento-2.1 payment-methods purchase-order






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 4 '18 at 21:11









      kirankiran

      10011




      10011




















          2 Answers
          2






          active

          oldest

          votes


















          0














          For this you need to remove the data-validate="required:true" from the input field.
          File path magento/module-offline-payments/view/frontend/web/template/payment/purchaseorder-form.html and also remove required class.






          share|improve this answer






























            0














            You need to override the Model,
            in your di.xml




            preference for="MagentoOfflinePaymentsModelPurchaseorder" type="VendoroModelPurchaseorder"



            namespace VendorModuleModel;

            class Purchaseorder extends MagentoOfflinePaymentsModelPurchaseorder

            public function validate()

            //parent::validate();

            if (empty($this->getInfoInstance()->getPoNumber()))
            //throw new LocalizedException(__('Purchase order number is a required field.'));


            return $this;





            and in your ca






            share|improve this answer








            New contributor




            codealliance_dev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.



















              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%2f252441%2fhow-can-we-make-purchase-order-optional-in-magento-2-1%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














              For this you need to remove the data-validate="required:true" from the input field.
              File path magento/module-offline-payments/view/frontend/web/template/payment/purchaseorder-form.html and also remove required class.






              share|improve this answer



























                0














                For this you need to remove the data-validate="required:true" from the input field.
                File path magento/module-offline-payments/view/frontend/web/template/payment/purchaseorder-form.html and also remove required class.






                share|improve this answer

























                  0












                  0








                  0







                  For this you need to remove the data-validate="required:true" from the input field.
                  File path magento/module-offline-payments/view/frontend/web/template/payment/purchaseorder-form.html and also remove required class.






                  share|improve this answer













                  For this you need to remove the data-validate="required:true" from the input field.
                  File path magento/module-offline-payments/view/frontend/web/template/payment/purchaseorder-form.html and also remove required class.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 8 at 5:59









                  tanutanu

                  11




                  11























                      0














                      You need to override the Model,
                      in your di.xml




                      preference for="MagentoOfflinePaymentsModelPurchaseorder" type="VendoroModelPurchaseorder"



                      namespace VendorModuleModel;

                      class Purchaseorder extends MagentoOfflinePaymentsModelPurchaseorder

                      public function validate()

                      //parent::validate();

                      if (empty($this->getInfoInstance()->getPoNumber()))
                      //throw new LocalizedException(__('Purchase order number is a required field.'));


                      return $this;





                      and in your ca






                      share|improve this answer








                      New contributor




                      codealliance_dev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.
























                        0














                        You need to override the Model,
                        in your di.xml




                        preference for="MagentoOfflinePaymentsModelPurchaseorder" type="VendoroModelPurchaseorder"



                        namespace VendorModuleModel;

                        class Purchaseorder extends MagentoOfflinePaymentsModelPurchaseorder

                        public function validate()

                        //parent::validate();

                        if (empty($this->getInfoInstance()->getPoNumber()))
                        //throw new LocalizedException(__('Purchase order number is a required field.'));


                        return $this;





                        and in your ca






                        share|improve this answer








                        New contributor




                        codealliance_dev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                        Check out our Code of Conduct.






















                          0












                          0








                          0







                          You need to override the Model,
                          in your di.xml




                          preference for="MagentoOfflinePaymentsModelPurchaseorder" type="VendoroModelPurchaseorder"



                          namespace VendorModuleModel;

                          class Purchaseorder extends MagentoOfflinePaymentsModelPurchaseorder

                          public function validate()

                          //parent::validate();

                          if (empty($this->getInfoInstance()->getPoNumber()))
                          //throw new LocalizedException(__('Purchase order number is a required field.'));


                          return $this;





                          and in your ca






                          share|improve this answer








                          New contributor




                          codealliance_dev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.










                          You need to override the Model,
                          in your di.xml




                          preference for="MagentoOfflinePaymentsModelPurchaseorder" type="VendoroModelPurchaseorder"



                          namespace VendorModuleModel;

                          class Purchaseorder extends MagentoOfflinePaymentsModelPurchaseorder

                          public function validate()

                          //parent::validate();

                          if (empty($this->getInfoInstance()->getPoNumber()))
                          //throw new LocalizedException(__('Purchase order number is a required field.'));


                          return $this;





                          and in your ca







                          share|improve this answer








                          New contributor




                          codealliance_dev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.









                          share|improve this answer



                          share|improve this answer






                          New contributor




                          codealliance_dev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.









                          answered yesterday









                          codealliance_devcodealliance_dev

                          1




                          1




                          New contributor




                          codealliance_dev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.





                          New contributor





                          codealliance_dev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.






                          codealliance_dev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.



























                              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%2f252441%2fhow-can-we-make-purchase-order-optional-in-magento-2-1%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