{"id":390,"date":"2020-02-28T16:06:48","date_gmt":"2020-02-28T16:06:48","guid":{"rendered":"http:\/\/wiki2.plumserver.com\/knowledge-base\/magento-print-order-confirmation-as-guest-v1-x-developers-guide-and-api-reference"},"modified":"2021-09-28T10:35:28","modified_gmt":"2021-09-28T14:35:28","slug":"magento-1-print-order-as-guest-v1-developer-guide","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-1-print-order-as-guest\/v1\/devguide","title":{"rendered":"Magento 1 Print Order Confirmation As Guest v1.x Developer Guide &#038; API Reference"},"content":{"rendered":"\n<h2 id=\"order-success-page-template-management\">Order Success Page Template Management<\/h2>\n\n\n\n<p>After the <a href=\"\/magento-1-print-order-as-guest\">Magento Confirmation Order Print extension<\/a> is installed, it is necessary to choose if you would like to replace your order success page template with this extension template to display the &#8220;print&#8221; link for guest customers or leave your existing template. To set this option properly, please follow the steps below.<\/p>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Step-by-Step action:<\/p>\n\n\n\n<ol><li><strong>Press the &#8220;System&#8221; tab in the menu.<\/strong><\/li><li><strong>Select &#8220;Configuration&#8221;.<\/strong><\/li><\/ol>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" src=\"\/docs\/wp-content\/uploads\/2020\/05\/Configure_Newsletter_Popup0.png\" alt=\"Configure Newsletter Popup0\" width=\"1206\" height=\"491\" \/><\/figure>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Step-by-Step action:<\/p>\n\n\n\n<ol><li><strong>Select &#8220;Print Order Confirmation As Guest&#8221; in the menu Configuration.<\/strong><\/li><li><strong>Replace Order Success Page Templates:<\/strong> Set it to &#8220;No&#8221; if you want to keep your existing order success page template.<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" src=\"\/docs\/wp-content\/uploads\/2020\/05\/Print_Order_Confirmation_API_Settings.png\" alt=\"Print Order Confirmation API Settings\" width=\"1206\" height=\"397\" \/><\/figure>\n\n\n\n<p>Now, if you want to edit the template yourself (for its proper functioning with this Magento print invoice module) &#8211; you will need to find the following file:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-markup\">\/app\/design\/frontend\/YOUR_THEME\/default\/template\/checkout\/success.phtml\n    (where \"YOUR_THEME\" is the name of your theme)<\/code><\/pre><\/div>\n\n\n\n<p>In the file please locate the following part of the code:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\">&lt;?php if ($this->getCanViewOrder() &amp;&amp; $this->getCanPrintOrder()) :?>\n    &lt;p>\n        &lt;?php echo $this->__(\n            'Click &lt;a href=\"%s\" onclick=\"this.target='_blank'\">here to print&lt;\/a>\n            a copy of your order confirmation.', $this->getPrintUrl()) ?>\n        &lt;?php echo $this->getChildHtml() ?>\n    &lt;\/p>\n&lt;?php endif;?><\/code><\/pre><\/div>\n\n\n\n<p>Once you found the above part of the code &#8211; replace it with the following code:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre data-line=\"1,7-10\"><code class=\"language-php\">&lt;?php if ($this->getCanViewOrder() &amp;&amp; $this->getCanPrintOrder() ||\n    $this->helper('guestprintorder')->moduleEnabled()) :?>\n        &lt;p>\n            &lt;?php echo $this->__(\n                'Click &lt;a href=\"%s\" onclick=\"this.target='_blank'\">here to print&lt;\/a>\n                a copy of your order confirmation.', $this->getPrintUrl()) ?>\n        &lt;\/p>\n&lt;?php endif;?>\n&lt;?php if ($this->getCanViewOrder() &amp;&amp; $this->getCanPrintOrder()) :?>\n    &lt;p>\n        &lt;?php echo $this->getChildHtml() ?>\n    &lt;\/p>\n&lt;?php endif;?><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-warning\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Important Information:<\/p>\n\n\n\n<p>Note: If you&#8217;re using extensions that modify the order success page &#8211; the above mentioned changes should be also applied to according templates of that extensions. You can find the needed files for making the changes by <strong>enabling template path hints<\/strong>. The information for enabling hints can be found <a href=\"https:\/\/www.google.com\/#q=turn+on+template+path+hints+magento\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">here<\/a>.<\/p>\n<\/div><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Order Success Page Template Management After the Magento Confirmation Order Print extension is installed, it is necessary to choose if you would like to replace your order success page template with this extension template to display the &#8220;print&#8221; link for guest customers or leave your existing template. To set this option properly, please follow the &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-1-print-order-as-guest\/v1\/devguide\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Magento 1 Print Order Confirmation As Guest v1.x Developer Guide &#038; API Reference&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[278],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v17.2 (Yoast SEO v17.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Magento Print Order Confirmation As Guest v1.x Developer Guide &amp; API Reference - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"Order Success Page Template Management After the Magento Confirmation Order Print extension is installed, it is necessary to choose if you would like to\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/plumrocket.com\/docs\/magento-1-print-order-as-guest\/v1\/devguide\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Magento 1 Print Order Confirmation As Guest v1.x Developer Guide &amp; API Reference\" \/>\n<meta property=\"og:description\" content=\"Order Success Page Template Management After the Magento Confirmation Order Print extension is installed, it is necessary to choose if you would like to\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/docs\/magento-1-print-order-as-guest\/v1\/devguide\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-28T16:06:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-28T14:35:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2020\/05\/Configure_Newsletter_Popup0.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Plumrocket\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Magento Print Order Confirmation As Guest v1.x Developer Guide & API Reference - Plumrocket Documentation","description":"Order Success Page Template Management After the Magento Confirmation Order Print extension is installed, it is necessary to choose if you would like to","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/plumrocket.com\/docs\/magento-1-print-order-as-guest\/v1\/devguide","og_locale":"en_US","og_type":"article","og_title":"Magento 1 Print Order Confirmation As Guest v1.x Developer Guide & API Reference","og_description":"Order Success Page Template Management After the Magento Confirmation Order Print extension is installed, it is necessary to choose if you would like to","og_url":"https:\/\/plumrocket.com\/docs\/magento-1-print-order-as-guest\/v1\/devguide","og_site_name":"Plumrocket Documentation","article_published_time":"2020-02-28T16:06:48+00:00","article_modified_time":"2021-09-28T14:35:28+00:00","og_image":[{"url":"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2020\/05\/Configure_Newsletter_Popup0.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Plumrocket","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/plumrocket.com\/docs\/#website","url":"https:\/\/plumrocket.com\/docs\/","name":"Plumrocket Documentation","description":"Extensions docs, troubleshootings etc.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/plumrocket.com\/docs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/plumrocket.com\/docs\/magento-1-print-order-as-guest\/v1\/devguide#primaryimage","inLanguage":"en-US","url":"\/docs\/wp-content\/uploads\/2020\/05\/Configure_Newsletter_Popup0.png","contentUrl":"\/docs\/wp-content\/uploads\/2020\/05\/Configure_Newsletter_Popup0.png"},{"@type":"WebPage","@id":"https:\/\/plumrocket.com\/docs\/magento-1-print-order-as-guest\/v1\/devguide#webpage","url":"https:\/\/plumrocket.com\/docs\/magento-1-print-order-as-guest\/v1\/devguide","name":"Magento 1 Print Order Confirmation As Guest v1.x Developer Guide & API Reference - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/plumrocket.com\/docs\/magento-1-print-order-as-guest\/v1\/devguide#primaryimage"},"datePublished":"2020-02-28T16:06:48+00:00","dateModified":"2021-09-28T14:35:28+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20"},"description":"Order Success Page Template Management After the Magento Confirmation Order Print extension is installed, it is necessary to choose if you would like to","breadcrumb":{"@id":"https:\/\/plumrocket.com\/docs\/magento-1-print-order-as-guest\/v1\/devguide#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/docs\/magento-1-print-order-as-guest\/v1\/devguide"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/docs\/magento-1-print-order-as-guest\/v1\/devguide#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Magento Extensions","item":"https:\/\/plumrocket.com\/magento-1-extensions"},{"@type":"ListItem","position":2,"name":"Magento Print Order Confirmation as Guest","item":"https:\/\/plumrocket.com\/magento-1-print-order-as-guest"},{"@type":"ListItem","position":3,"name":"Documentation","item":"https:\/\/plumrocket.com\/docs\/magento-1-print-order-as-guest"},{"@type":"ListItem","position":4,"name":"v1","item":"https:\/\/plumrocket.com\/docs\/magento-1-print-order-as-guest\/v1"},{"@type":"ListItem","position":5,"name":"Developer Guide"}]},{"@type":"Person","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20","name":"Plumrocket","image":{"@type":"ImageObject","@id":"https:\/\/plumrocket.com\/docs\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/72392a92ae750c66560be284502b6676?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/72392a92ae750c66560be284502b6676?s=96&d=mm&r=g","caption":"Plumrocket"},"sameAs":["https:\/\/plumrocket.com\/docs"]}]}},"_links":{"self":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/390"}],"collection":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/comments?post=390"}],"version-history":[{"count":2,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/390\/revisions"}],"predecessor-version":[{"id":24664,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/390\/revisions\/24664"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}