Add text to invoice The Next CEO of Stack OverflowPDF invoice shows a empty invoiceHow to add payment method's info to the PDF invoice?PDF Invoice; changing shipping and other textModify text in the PDF invoiceAdd text line in Invoice PDFHow to can I add some text in invoice pdf magento?Hide “invoice #” in the invoice PDFHow to add additional text to invoiceReplace store address with custom text in invoice pdfMagento 2, add `company's name` in invoice PDF file?

Is it safe to use c_str() on a temporary string?

Is HostGator storing my password in plaintext?

How can I get through very long and very dry, but also very useful technical documents when learning a new tool?

Can a caster that cast Polymorph on themselves stop concentrating at any point even if their Int is low?

Increase performance creating Mandelbrot set in python

Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?

What is the difference between "behavior" and "behaviour"?

Why does C# sound extremely flat when saxophone is tuned to G?

How do I go from 300 unfinished/half written blog posts, to published posts?

I believe this to be a fraud - hired, then asked to cash check and send cash as Bitcoin

Need some help with wall behind rangetop

Rotate a column

How to Reset Passwords on Multiple Websites Easily?

Why didn't Theresa May consult with Parliament before negotiating a deal with the EU?

Visit to the USA with ESTA approved before trip to Iran

Too much space between section and text in a twocolumn document

How to write the block matrix in LaTex?

Anatomically Correct Strange Women In Ponds Distributing Swords

Customer Requests (Sometimes) Drive Me Bonkers!

MAZDA 3 2006 (UK) - poor acceleration then takes off at 3250 revs

Why here is plural "We went to the movies last night."

Fastest way to shutdown Ubuntu Mate 18.10

Inappropriate reference requests from Journal reviewers

Why didn't Khan get resurrected in the Genesis Explosion?



Add text to invoice



The Next CEO of Stack OverflowPDF invoice shows a empty invoiceHow to add payment method's info to the PDF invoice?PDF Invoice; changing shipping and other textModify text in the PDF invoiceAdd text line in Invoice PDFHow to can I add some text in invoice pdf magento?Hide “invoice #” in the invoice PDFHow to add additional text to invoiceReplace store address with custom text in invoice pdfMagento 2, add `company's name` in invoice PDF file?










1















I want to add text to the pdf invoice in the marked arena (see photo).



I'm using Magento version 1.9.2.1



How can I do this?



pdf invoice










share|improve this question
















bumped to the homepage by Community 28 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.



















    1















    I want to add text to the pdf invoice in the marked arena (see photo).



    I'm using Magento version 1.9.2.1



    How can I do this?



    pdf invoice










    share|improve this question
















    bumped to the homepage by Community 28 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

















      1












      1








      1








      I want to add text to the pdf invoice in the marked arena (see photo).



      I'm using Magento version 1.9.2.1



      How can I do this?



      pdf invoice










      share|improve this question
















      I want to add text to the pdf invoice in the marked arena (see photo).



      I'm using Magento version 1.9.2.1



      How can I do this?



      pdf invoice







      magento-1.9 invoice pdf






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 25 at 14:40









      Tajveez Rehman

      629




      629










      asked Nov 14 '16 at 18:41









      NielN98NielN98

      115




      115





      bumped to the homepage by Community 28 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 28 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















          2 Answers
          2






          active

          oldest

          votes


















          0














          You can add specific text after total price follow the code



          First override that block add this code in your config file between <global/>:



          <models>
          <sales>
          <rewrite>
          <order_pdf_invoice>Namespace_Module_Model_Order_Pdf_Invoice</order_pdf_invoice>
          </rewrite>
          </sales>
          </models>


          Create file in app/code/local/Namespace/Module/Model/Order/Pdf/Invoice.php and add the below function at the end of the file:



          <?php 
          class Mage_Sales_Model_Order_Pdf_Invoice extends Mage_Sales_Model_Order_Pdf_Abstract
          {
          public function insertText($page)

          $page->drawLine(25, $this->y, 570, $this->y);
          $this->y -= 25;
          $page->drawText(Mage::helper('sales')->__('Add here Your custom text'), 35, $this->y, 'UTF-8');



          Now, you need to call this insertText() function in the getPdf() function and add this getPdf() function after insertText() function like here:



          public function getPdf($invoices = array())

          $this->_beforeGetPdf();
          $this->_initRenderer('invoice');

          $pdf = new Zend_Pdf();
          $this->_setPdf($pdf);
          $style = new Zend_Pdf_Style();
          $this->_setFontBold($style, 10);

          foreach ($invoices as $invoice)
          if ($invoice->getStoreId())
          Mage::app()->getLocale()->emulate($invoice->getStoreId());
          Mage::app()->setCurrentStore($invoice->getStoreId());

          $page = $this->newPage();
          $order = $invoice->getOrder();
          /* Add image */
          $this->insertLogo($page, $invoice->getStore());
          /* Add address */
          $this->insertAddress($page, $invoice->getStore());
          /* Add head */
          $this->insertOrder(
          $page,
          $order,
          Mage::getStoreConfigFlag(self::XML_PATH_SALES_PDF_INVOICE_PUT_ORDER_ID, $order->getStoreId())
          );
          /* Add document text and number */
          $this->insertDocumentNumber(
          $page,
          Mage::helper('sales')->__('Invoice # ') . $invoice->getIncrementId()
          );
          /* Add table */
          $this->_drawHeader($page);
          /* Add body */
          foreach ($invoice->getAllItems() as $item)
          if ($item->getOrderItem()->getParentItem())
          continue;

          /* Draw item */
          $this->_drawItem($item, $page, $order);
          $page = end($pdf->pages);

          /* Add totals */
          $this->insertTotals($page, $invoice);
          if ($invoice->getStoreId())
          Mage::app()->getLocale()->revert();


          $this->insertText($page); // your custom text is added here
          $this->_afterGetPdf();
          return $pdf;



          $this->insertText($page); that call your custom text function so you need to add before $this->_afterGetPdf(); this function.






          share|improve this answer

























          • Thank for your comment. In which config file should I add the code and what do you mean with Namespace?

            – NielN98
            Nov 20 '16 at 15:58












          • Actually you have to create your own module to override model class.So please follow this link for understand about Namespace and also how to create module : code.tutsplus.com/tutorials/…

            – Sneha Panchal
            Nov 21 '16 at 8:54


















          0














          I was able to add text to the invoice pdf by creating a local copy of the core directory(files/folders) app/code/core/Mage/Sales/Model/Order/Pdf/Invoice.php as app/code/local/Mage/Sales/Model/Order/Pdf/Invoice.php and added the insertText() function as stated above.






          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%2f145708%2fadd-text-to-invoice%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 can add specific text after total price follow the code



            First override that block add this code in your config file between <global/>:



            <models>
            <sales>
            <rewrite>
            <order_pdf_invoice>Namespace_Module_Model_Order_Pdf_Invoice</order_pdf_invoice>
            </rewrite>
            </sales>
            </models>


            Create file in app/code/local/Namespace/Module/Model/Order/Pdf/Invoice.php and add the below function at the end of the file:



            <?php 
            class Mage_Sales_Model_Order_Pdf_Invoice extends Mage_Sales_Model_Order_Pdf_Abstract
            {
            public function insertText($page)

            $page->drawLine(25, $this->y, 570, $this->y);
            $this->y -= 25;
            $page->drawText(Mage::helper('sales')->__('Add here Your custom text'), 35, $this->y, 'UTF-8');



            Now, you need to call this insertText() function in the getPdf() function and add this getPdf() function after insertText() function like here:



            public function getPdf($invoices = array())

            $this->_beforeGetPdf();
            $this->_initRenderer('invoice');

            $pdf = new Zend_Pdf();
            $this->_setPdf($pdf);
            $style = new Zend_Pdf_Style();
            $this->_setFontBold($style, 10);

            foreach ($invoices as $invoice)
            if ($invoice->getStoreId())
            Mage::app()->getLocale()->emulate($invoice->getStoreId());
            Mage::app()->setCurrentStore($invoice->getStoreId());

            $page = $this->newPage();
            $order = $invoice->getOrder();
            /* Add image */
            $this->insertLogo($page, $invoice->getStore());
            /* Add address */
            $this->insertAddress($page, $invoice->getStore());
            /* Add head */
            $this->insertOrder(
            $page,
            $order,
            Mage::getStoreConfigFlag(self::XML_PATH_SALES_PDF_INVOICE_PUT_ORDER_ID, $order->getStoreId())
            );
            /* Add document text and number */
            $this->insertDocumentNumber(
            $page,
            Mage::helper('sales')->__('Invoice # ') . $invoice->getIncrementId()
            );
            /* Add table */
            $this->_drawHeader($page);
            /* Add body */
            foreach ($invoice->getAllItems() as $item)
            if ($item->getOrderItem()->getParentItem())
            continue;

            /* Draw item */
            $this->_drawItem($item, $page, $order);
            $page = end($pdf->pages);

            /* Add totals */
            $this->insertTotals($page, $invoice);
            if ($invoice->getStoreId())
            Mage::app()->getLocale()->revert();


            $this->insertText($page); // your custom text is added here
            $this->_afterGetPdf();
            return $pdf;



            $this->insertText($page); that call your custom text function so you need to add before $this->_afterGetPdf(); this function.






            share|improve this answer

























            • Thank for your comment. In which config file should I add the code and what do you mean with Namespace?

              – NielN98
              Nov 20 '16 at 15:58












            • Actually you have to create your own module to override model class.So please follow this link for understand about Namespace and also how to create module : code.tutsplus.com/tutorials/…

              – Sneha Panchal
              Nov 21 '16 at 8:54















            0














            You can add specific text after total price follow the code



            First override that block add this code in your config file between <global/>:



            <models>
            <sales>
            <rewrite>
            <order_pdf_invoice>Namespace_Module_Model_Order_Pdf_Invoice</order_pdf_invoice>
            </rewrite>
            </sales>
            </models>


            Create file in app/code/local/Namespace/Module/Model/Order/Pdf/Invoice.php and add the below function at the end of the file:



            <?php 
            class Mage_Sales_Model_Order_Pdf_Invoice extends Mage_Sales_Model_Order_Pdf_Abstract
            {
            public function insertText($page)

            $page->drawLine(25, $this->y, 570, $this->y);
            $this->y -= 25;
            $page->drawText(Mage::helper('sales')->__('Add here Your custom text'), 35, $this->y, 'UTF-8');



            Now, you need to call this insertText() function in the getPdf() function and add this getPdf() function after insertText() function like here:



            public function getPdf($invoices = array())

            $this->_beforeGetPdf();
            $this->_initRenderer('invoice');

            $pdf = new Zend_Pdf();
            $this->_setPdf($pdf);
            $style = new Zend_Pdf_Style();
            $this->_setFontBold($style, 10);

            foreach ($invoices as $invoice)
            if ($invoice->getStoreId())
            Mage::app()->getLocale()->emulate($invoice->getStoreId());
            Mage::app()->setCurrentStore($invoice->getStoreId());

            $page = $this->newPage();
            $order = $invoice->getOrder();
            /* Add image */
            $this->insertLogo($page, $invoice->getStore());
            /* Add address */
            $this->insertAddress($page, $invoice->getStore());
            /* Add head */
            $this->insertOrder(
            $page,
            $order,
            Mage::getStoreConfigFlag(self::XML_PATH_SALES_PDF_INVOICE_PUT_ORDER_ID, $order->getStoreId())
            );
            /* Add document text and number */
            $this->insertDocumentNumber(
            $page,
            Mage::helper('sales')->__('Invoice # ') . $invoice->getIncrementId()
            );
            /* Add table */
            $this->_drawHeader($page);
            /* Add body */
            foreach ($invoice->getAllItems() as $item)
            if ($item->getOrderItem()->getParentItem())
            continue;

            /* Draw item */
            $this->_drawItem($item, $page, $order);
            $page = end($pdf->pages);

            /* Add totals */
            $this->insertTotals($page, $invoice);
            if ($invoice->getStoreId())
            Mage::app()->getLocale()->revert();


            $this->insertText($page); // your custom text is added here
            $this->_afterGetPdf();
            return $pdf;



            $this->insertText($page); that call your custom text function so you need to add before $this->_afterGetPdf(); this function.






            share|improve this answer

























            • Thank for your comment. In which config file should I add the code and what do you mean with Namespace?

              – NielN98
              Nov 20 '16 at 15:58












            • Actually you have to create your own module to override model class.So please follow this link for understand about Namespace and also how to create module : code.tutsplus.com/tutorials/…

              – Sneha Panchal
              Nov 21 '16 at 8:54













            0












            0








            0







            You can add specific text after total price follow the code



            First override that block add this code in your config file between <global/>:



            <models>
            <sales>
            <rewrite>
            <order_pdf_invoice>Namespace_Module_Model_Order_Pdf_Invoice</order_pdf_invoice>
            </rewrite>
            </sales>
            </models>


            Create file in app/code/local/Namespace/Module/Model/Order/Pdf/Invoice.php and add the below function at the end of the file:



            <?php 
            class Mage_Sales_Model_Order_Pdf_Invoice extends Mage_Sales_Model_Order_Pdf_Abstract
            {
            public function insertText($page)

            $page->drawLine(25, $this->y, 570, $this->y);
            $this->y -= 25;
            $page->drawText(Mage::helper('sales')->__('Add here Your custom text'), 35, $this->y, 'UTF-8');



            Now, you need to call this insertText() function in the getPdf() function and add this getPdf() function after insertText() function like here:



            public function getPdf($invoices = array())

            $this->_beforeGetPdf();
            $this->_initRenderer('invoice');

            $pdf = new Zend_Pdf();
            $this->_setPdf($pdf);
            $style = new Zend_Pdf_Style();
            $this->_setFontBold($style, 10);

            foreach ($invoices as $invoice)
            if ($invoice->getStoreId())
            Mage::app()->getLocale()->emulate($invoice->getStoreId());
            Mage::app()->setCurrentStore($invoice->getStoreId());

            $page = $this->newPage();
            $order = $invoice->getOrder();
            /* Add image */
            $this->insertLogo($page, $invoice->getStore());
            /* Add address */
            $this->insertAddress($page, $invoice->getStore());
            /* Add head */
            $this->insertOrder(
            $page,
            $order,
            Mage::getStoreConfigFlag(self::XML_PATH_SALES_PDF_INVOICE_PUT_ORDER_ID, $order->getStoreId())
            );
            /* Add document text and number */
            $this->insertDocumentNumber(
            $page,
            Mage::helper('sales')->__('Invoice # ') . $invoice->getIncrementId()
            );
            /* Add table */
            $this->_drawHeader($page);
            /* Add body */
            foreach ($invoice->getAllItems() as $item)
            if ($item->getOrderItem()->getParentItem())
            continue;

            /* Draw item */
            $this->_drawItem($item, $page, $order);
            $page = end($pdf->pages);

            /* Add totals */
            $this->insertTotals($page, $invoice);
            if ($invoice->getStoreId())
            Mage::app()->getLocale()->revert();


            $this->insertText($page); // your custom text is added here
            $this->_afterGetPdf();
            return $pdf;



            $this->insertText($page); that call your custom text function so you need to add before $this->_afterGetPdf(); this function.






            share|improve this answer















            You can add specific text after total price follow the code



            First override that block add this code in your config file between <global/>:



            <models>
            <sales>
            <rewrite>
            <order_pdf_invoice>Namespace_Module_Model_Order_Pdf_Invoice</order_pdf_invoice>
            </rewrite>
            </sales>
            </models>


            Create file in app/code/local/Namespace/Module/Model/Order/Pdf/Invoice.php and add the below function at the end of the file:



            <?php 
            class Mage_Sales_Model_Order_Pdf_Invoice extends Mage_Sales_Model_Order_Pdf_Abstract
            {
            public function insertText($page)

            $page->drawLine(25, $this->y, 570, $this->y);
            $this->y -= 25;
            $page->drawText(Mage::helper('sales')->__('Add here Your custom text'), 35, $this->y, 'UTF-8');



            Now, you need to call this insertText() function in the getPdf() function and add this getPdf() function after insertText() function like here:



            public function getPdf($invoices = array())

            $this->_beforeGetPdf();
            $this->_initRenderer('invoice');

            $pdf = new Zend_Pdf();
            $this->_setPdf($pdf);
            $style = new Zend_Pdf_Style();
            $this->_setFontBold($style, 10);

            foreach ($invoices as $invoice)
            if ($invoice->getStoreId())
            Mage::app()->getLocale()->emulate($invoice->getStoreId());
            Mage::app()->setCurrentStore($invoice->getStoreId());

            $page = $this->newPage();
            $order = $invoice->getOrder();
            /* Add image */
            $this->insertLogo($page, $invoice->getStore());
            /* Add address */
            $this->insertAddress($page, $invoice->getStore());
            /* Add head */
            $this->insertOrder(
            $page,
            $order,
            Mage::getStoreConfigFlag(self::XML_PATH_SALES_PDF_INVOICE_PUT_ORDER_ID, $order->getStoreId())
            );
            /* Add document text and number */
            $this->insertDocumentNumber(
            $page,
            Mage::helper('sales')->__('Invoice # ') . $invoice->getIncrementId()
            );
            /* Add table */
            $this->_drawHeader($page);
            /* Add body */
            foreach ($invoice->getAllItems() as $item)
            if ($item->getOrderItem()->getParentItem())
            continue;

            /* Draw item */
            $this->_drawItem($item, $page, $order);
            $page = end($pdf->pages);

            /* Add totals */
            $this->insertTotals($page, $invoice);
            if ($invoice->getStoreId())
            Mage::app()->getLocale()->revert();


            $this->insertText($page); // your custom text is added here
            $this->_afterGetPdf();
            return $pdf;



            $this->insertText($page); that call your custom text function so you need to add before $this->_afterGetPdf(); this function.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 14 '16 at 20:35

























            answered Nov 14 '16 at 19:31









            Rajan SoniRajan Soni

            588524




            588524












            • Thank for your comment. In which config file should I add the code and what do you mean with Namespace?

              – NielN98
              Nov 20 '16 at 15:58












            • Actually you have to create your own module to override model class.So please follow this link for understand about Namespace and also how to create module : code.tutsplus.com/tutorials/…

              – Sneha Panchal
              Nov 21 '16 at 8:54

















            • Thank for your comment. In which config file should I add the code and what do you mean with Namespace?

              – NielN98
              Nov 20 '16 at 15:58












            • Actually you have to create your own module to override model class.So please follow this link for understand about Namespace and also how to create module : code.tutsplus.com/tutorials/…

              – Sneha Panchal
              Nov 21 '16 at 8:54
















            Thank for your comment. In which config file should I add the code and what do you mean with Namespace?

            – NielN98
            Nov 20 '16 at 15:58






            Thank for your comment. In which config file should I add the code and what do you mean with Namespace?

            – NielN98
            Nov 20 '16 at 15:58














            Actually you have to create your own module to override model class.So please follow this link for understand about Namespace and also how to create module : code.tutsplus.com/tutorials/…

            – Sneha Panchal
            Nov 21 '16 at 8:54





            Actually you have to create your own module to override model class.So please follow this link for understand about Namespace and also how to create module : code.tutsplus.com/tutorials/…

            – Sneha Panchal
            Nov 21 '16 at 8:54













            0














            I was able to add text to the invoice pdf by creating a local copy of the core directory(files/folders) app/code/core/Mage/Sales/Model/Order/Pdf/Invoice.php as app/code/local/Mage/Sales/Model/Order/Pdf/Invoice.php and added the insertText() function as stated above.






            share|improve this answer



























              0














              I was able to add text to the invoice pdf by creating a local copy of the core directory(files/folders) app/code/core/Mage/Sales/Model/Order/Pdf/Invoice.php as app/code/local/Mage/Sales/Model/Order/Pdf/Invoice.php and added the insertText() function as stated above.






              share|improve this answer

























                0












                0








                0







                I was able to add text to the invoice pdf by creating a local copy of the core directory(files/folders) app/code/core/Mage/Sales/Model/Order/Pdf/Invoice.php as app/code/local/Mage/Sales/Model/Order/Pdf/Invoice.php and added the insertText() function as stated above.






                share|improve this answer













                I was able to add text to the invoice pdf by creating a local copy of the core directory(files/folders) app/code/core/Mage/Sales/Model/Order/Pdf/Invoice.php as app/code/local/Mage/Sales/Model/Order/Pdf/Invoice.php and added the insertText() function as stated above.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Aug 1 '17 at 13:56









                FareedFareed

                11




                11



























                    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%2f145708%2fadd-text-to-invoice%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

                    Magento 2 duplicate PHPSESSID cookie when using session_start() in custom php scriptMagento 2: User cant logged in into to account page, no error showing!Magento duplicate on subdomainGrabbing storeview from cookie (after using language selector)How do I run php custom script on magento2Magento 2: Include PHP script in headerSession lock after using Cm_RedisSessionscript php to update stockMagento set cookie popupMagento 2 session id cookie - where to find it?How to import Configurable product from csv with custom attributes using php scriptMagento 2 run custom PHP script

                    Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

                    How to solve knockout JS error in Magento 2 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?(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingUnable to process binding Knockout.js magento 2Cannot read property `scopeLabel` of undefined on Product Detail PageCan't get Customer Data on frontend in Magento 2Magento2 Order Summary - unable to process bindingKO templates are not loading in Magento 2.1 applicationgetting knockout js error magento 2Product grid not load -— Unable to process binding Knockout.js magento 2Product form not loaded in magento2Uncaught ReferenceError: Unable to process binding “if: function()return (isShowLegend()) ” magento 2