Overwrite pdf.xmlHow can I edit the custom options text in the created invoice PDF in Magento?Include coupon...

use of 4/2 chord more compelling than root position?

Flipping axis on a LogPlot

How do I append a character to the end of every line in an Excel cell?

How to read 火日参拾月参

How does Leonard in "Memento" remember reading and writing?

Can a hotel cancel a confirmed reservation?

How can I get my players to come to the game session after agreeing to a date?

Why avoid shared user accounts?

It took me a lot of time to make this, pls like. (YouTube Comments #1)

Making him into a bully (how to show mild violence)

How can a school be getting an epidemic of whooping cough if most of the students are vaccinated?

A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?

Removing disk while game is suspended

Why am I able to open Wireshark and capture packets in macOS without root privileges?

The use of the spellings -zz- vs. -z-

How can I play a serial killer in a party of good PCs?

Use two 8s and two 3s to make the number 24

Why is it that Bernie Sanders is always called a "socialist"?

Positioning node within rectangle Tikz

SET NOCOUNT Error in handling SQL call after upgrade

Does Skippy chunky peanut butter contain trans fat?

What is the most fuel efficient way out of the Solar System?

Cat is tipping over bed-side lamps during the night

What are the exceptions to Natural Selection?



Overwrite pdf.xml


How can I edit the custom options text in the created invoice PDF in Magento?Include coupon code in PDF invoiceFatal error: Call to a member function getPdf() on a non-object in controllersMageAdminhtmlSalesOrderController.phpadd to footer image in adminpage pdf invoicePDF invoice multilanguage issuesAdd a new subtotal per VAT rate to invoices for display only that does not affect the value of the invoiceHow to remove order history tab?display brand column invoice PDFMagento 2 Adding Total Due and Total Paid to PDF orderHow to edit Magento2 Invoice template













0















I want to overwrite pdf.xml in Magento 2.1.3 to change order for the total block, but i can't figure out how i can do that.



The totals are ordered in pdf.xml in Magento/sales/pdf



Edit:

First I had only extend the invoice file: <preference for="MagentoSalesModelOrderPdfInvoice" type="HcSalesModelPdfInvoice" />



And I have tried to extend the reader class <preference for="MagentoSalesModelOrderPdfConfigReader" type="HcSalesModelPdfReader" />



But I get always the same error:




1 exception(s):
Exception #0 (Exception): Warning: MagentoFrameworkConfigDom::_mergeNode(): unterminated entity reference`











share|improve this question





























    0















    I want to overwrite pdf.xml in Magento 2.1.3 to change order for the total block, but i can't figure out how i can do that.



    The totals are ordered in pdf.xml in Magento/sales/pdf



    Edit:

    First I had only extend the invoice file: <preference for="MagentoSalesModelOrderPdfInvoice" type="HcSalesModelPdfInvoice" />



    And I have tried to extend the reader class <preference for="MagentoSalesModelOrderPdfConfigReader" type="HcSalesModelPdfReader" />



    But I get always the same error:




    1 exception(s):
    Exception #0 (Exception): Warning: MagentoFrameworkConfigDom::_mergeNode(): unterminated entity reference`











    share|improve this question



























      0












      0








      0








      I want to overwrite pdf.xml in Magento 2.1.3 to change order for the total block, but i can't figure out how i can do that.



      The totals are ordered in pdf.xml in Magento/sales/pdf



      Edit:

      First I had only extend the invoice file: <preference for="MagentoSalesModelOrderPdfInvoice" type="HcSalesModelPdfInvoice" />



      And I have tried to extend the reader class <preference for="MagentoSalesModelOrderPdfConfigReader" type="HcSalesModelPdfReader" />



      But I get always the same error:




      1 exception(s):
      Exception #0 (Exception): Warning: MagentoFrameworkConfigDom::_mergeNode(): unterminated entity reference`











      share|improve this question
















      I want to overwrite pdf.xml in Magento 2.1.3 to change order for the total block, but i can't figure out how i can do that.



      The totals are ordered in pdf.xml in Magento/sales/pdf



      Edit:

      First I had only extend the invoice file: <preference for="MagentoSalesModelOrderPdfInvoice" type="HcSalesModelPdfInvoice" />



      And I have tried to extend the reader class <preference for="MagentoSalesModelOrderPdfConfigReader" type="HcSalesModelPdfReader" />



      But I get always the same error:




      1 exception(s):
      Exception #0 (Exception): Warning: MagentoFrameworkConfigDom::_mergeNode(): unterminated entity reference`








      pdf magento-2.1.3 di.xml






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 43 mins ago









      Teja Bhagavan Kollepara

      2,96341847




      2,96341847










      asked Apr 7 '17 at 14:05









      MartijnMartijn

      14




      14






















          3 Answers
          3






          active

          oldest

          votes


















          1














          The solution is to copy the pdf.xml file into your custom module etc file.



          Modify the sort_order of the field you want to change in your custom copy and get rid of the extra stuff you don't need.



          Also don't forget to make your module depend on the Sales module.






          share|improve this answer



















          • 1





            Sorry but allready tried that, but maybe I do something wrong. I extend the invoice by using <preference for="MagentoSalesModelOrderPdfInvoice" type="HcSalesModelPdfInvoice" /> And I have tried to extend the reader class ..PdfConfigReader but I get always the same error: 1 exception(s): Exception #0 (Exception): Warning: MagentoFrameworkConfigDom::_mergeNode(): unterminated entity reference

            – Martijn
            Apr 10 '17 at 10:51





















          0














          M2 cannot merge this line



          <title translate="true">Shipping &amp; Handling</title>


          because of xml merge issue with ampersand encoding,



          possible solutions:




          • remove this one line from your custom pdf

          • in your custom pdf write for example 'Shipping and Handling'






          share|improve this answer































            0














            In addition to Oleksandr Makhno's answer:



            you could try



            <title translate="true"><![CDATA[Shipping & Handling]]></title>





            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%2f168175%2foverwrite-pdf-xml%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              1














              The solution is to copy the pdf.xml file into your custom module etc file.



              Modify the sort_order of the field you want to change in your custom copy and get rid of the extra stuff you don't need.



              Also don't forget to make your module depend on the Sales module.






              share|improve this answer



















              • 1





                Sorry but allready tried that, but maybe I do something wrong. I extend the invoice by using <preference for="MagentoSalesModelOrderPdfInvoice" type="HcSalesModelPdfInvoice" /> And I have tried to extend the reader class ..PdfConfigReader but I get always the same error: 1 exception(s): Exception #0 (Exception): Warning: MagentoFrameworkConfigDom::_mergeNode(): unterminated entity reference

                – Martijn
                Apr 10 '17 at 10:51


















              1














              The solution is to copy the pdf.xml file into your custom module etc file.



              Modify the sort_order of the field you want to change in your custom copy and get rid of the extra stuff you don't need.



              Also don't forget to make your module depend on the Sales module.






              share|improve this answer



















              • 1





                Sorry but allready tried that, but maybe I do something wrong. I extend the invoice by using <preference for="MagentoSalesModelOrderPdfInvoice" type="HcSalesModelPdfInvoice" /> And I have tried to extend the reader class ..PdfConfigReader but I get always the same error: 1 exception(s): Exception #0 (Exception): Warning: MagentoFrameworkConfigDom::_mergeNode(): unterminated entity reference

                – Martijn
                Apr 10 '17 at 10:51
















              1












              1








              1







              The solution is to copy the pdf.xml file into your custom module etc file.



              Modify the sort_order of the field you want to change in your custom copy and get rid of the extra stuff you don't need.



              Also don't forget to make your module depend on the Sales module.






              share|improve this answer













              The solution is to copy the pdf.xml file into your custom module etc file.



              Modify the sort_order of the field you want to change in your custom copy and get rid of the extra stuff you don't need.



              Also don't forget to make your module depend on the Sales module.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Apr 7 '17 at 15:02









              Raphael at Digital PianismRaphael at Digital Pianism

              54.4k22118276




              54.4k22118276








              • 1





                Sorry but allready tried that, but maybe I do something wrong. I extend the invoice by using <preference for="MagentoSalesModelOrderPdfInvoice" type="HcSalesModelPdfInvoice" /> And I have tried to extend the reader class ..PdfConfigReader but I get always the same error: 1 exception(s): Exception #0 (Exception): Warning: MagentoFrameworkConfigDom::_mergeNode(): unterminated entity reference

                – Martijn
                Apr 10 '17 at 10:51
















              • 1





                Sorry but allready tried that, but maybe I do something wrong. I extend the invoice by using <preference for="MagentoSalesModelOrderPdfInvoice" type="HcSalesModelPdfInvoice" /> And I have tried to extend the reader class ..PdfConfigReader but I get always the same error: 1 exception(s): Exception #0 (Exception): Warning: MagentoFrameworkConfigDom::_mergeNode(): unterminated entity reference

                – Martijn
                Apr 10 '17 at 10:51










              1




              1





              Sorry but allready tried that, but maybe I do something wrong. I extend the invoice by using <preference for="MagentoSalesModelOrderPdfInvoice" type="HcSalesModelPdfInvoice" /> And I have tried to extend the reader class ..PdfConfigReader but I get always the same error: 1 exception(s): Exception #0 (Exception): Warning: MagentoFrameworkConfigDom::_mergeNode(): unterminated entity reference

              – Martijn
              Apr 10 '17 at 10:51







              Sorry but allready tried that, but maybe I do something wrong. I extend the invoice by using <preference for="MagentoSalesModelOrderPdfInvoice" type="HcSalesModelPdfInvoice" /> And I have tried to extend the reader class ..PdfConfigReader but I get always the same error: 1 exception(s): Exception #0 (Exception): Warning: MagentoFrameworkConfigDom::_mergeNode(): unterminated entity reference

              – Martijn
              Apr 10 '17 at 10:51















              0














              M2 cannot merge this line



              <title translate="true">Shipping &amp; Handling</title>


              because of xml merge issue with ampersand encoding,



              possible solutions:




              • remove this one line from your custom pdf

              • in your custom pdf write for example 'Shipping and Handling'






              share|improve this answer




























                0














                M2 cannot merge this line



                <title translate="true">Shipping &amp; Handling</title>


                because of xml merge issue with ampersand encoding,



                possible solutions:




                • remove this one line from your custom pdf

                • in your custom pdf write for example 'Shipping and Handling'






                share|improve this answer


























                  0












                  0








                  0







                  M2 cannot merge this line



                  <title translate="true">Shipping &amp; Handling</title>


                  because of xml merge issue with ampersand encoding,



                  possible solutions:




                  • remove this one line from your custom pdf

                  • in your custom pdf write for example 'Shipping and Handling'






                  share|improve this answer













                  M2 cannot merge this line



                  <title translate="true">Shipping &amp; Handling</title>


                  because of xml merge issue with ampersand encoding,



                  possible solutions:




                  • remove this one line from your custom pdf

                  • in your custom pdf write for example 'Shipping and Handling'







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Dec 19 '17 at 15:47









                  Oleksandr MakhnoOleksandr Makhno

                  314




                  314























                      0














                      In addition to Oleksandr Makhno's answer:



                      you could try



                      <title translate="true"><![CDATA[Shipping & Handling]]></title>





                      share|improve this answer




























                        0














                        In addition to Oleksandr Makhno's answer:



                        you could try



                        <title translate="true"><![CDATA[Shipping & Handling]]></title>





                        share|improve this answer


























                          0












                          0








                          0







                          In addition to Oleksandr Makhno's answer:



                          you could try



                          <title translate="true"><![CDATA[Shipping & Handling]]></title>





                          share|improve this answer













                          In addition to Oleksandr Makhno's answer:



                          you could try



                          <title translate="true"><![CDATA[Shipping & Handling]]></title>






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Dec 19 '17 at 15:55









                          simonthesorcerersimonthesorcerer

                          3,53721127




                          3,53721127






























                              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%2f168175%2foverwrite-pdf-xml%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

                              “%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

                              How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

                              夢乃愛華...