{"id":321976,"date":"2022-02-11T05:21:09","date_gmt":"2022-02-11T05:21:09","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=321976"},"modified":"2022-02-11T12:46:30","modified_gmt":"2022-02-11T12:46:30","slug":"display-custom-message-block-on-order-confirmation-page-in-prestashop","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/","title":{"rendered":"Display custom message block on order confirmation page in PrestaShop"},"content":{"rendered":"\n<p class=\"has-text-align-left\">In this blog, we are going to learn how to show the custom message block in the order confirmation page at the front end in PrestaShop.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"768\" height=\"639\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/02\/fblog.png\" alt=\"fblog\" class=\"wp-image-322061\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/02\/fblog.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/02\/fblog-300x250.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/02\/fblog-250x208.png 250w\" sizes=\"(max-width: 768px) 100vw, 768px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Sometimes we need to show some additional information on the order confirmation page at the front end. So, we can achieve this by following steps.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-1\">Step 1:<\/h3>\n\n\n\n<p>Register \u201cpaymentReturn\u201d hook in your module. To do so call the following function in the main file of your module-<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">$this-&gt;registerHook(\u2018paymentReturn\u2019);<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-2\">Step 2:<\/h3>\n\n\n\n<p>Create a function in the main file of your module to handle the functioning and return Tpl file.<\/p>\n\n\n\n<p>For example:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">public function hookPaymentReturn($params)\n{\n    $this-&gt;context-&gt;smarty-&gt;assign(array(\n      \u2018msg\u2019 =&gt; $this-&gt;l(\u2018Thankyou for purchase. Your order is \n              confirmed\u2019)\n    ));\n    return $this-&gt;fetch(\n       &#039;module:mymodule\/views\/templates\/hook\/custom_msg.tpl&#039;\n    );\n}<\/pre>\n\n\n\n<p>Now create a tpl file on this path \u201c\/views\/templates\/hook\u201d and write the<br>html text that you want to display on the block.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;div class=\u201dalert alert-success\u201d&gt;{$msg}&lt;\/div&gt;\n&lt;p&gt;{l s=\u2019- Your order will be sent as soon as possible\u2019 mod=\u2019mymodule\u2019}&lt;\/p&gt;<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"note\">Note:<\/h3>\n\n\n\n<p>This is a basic example in which we just displayed a simple message. Here you can display any kind of information like order information, customer information, etc.<\/p>\n\n\n\n<p>If any issue or doubt please feel free to mention it in the comment section. I would be happy to help.<\/p>\n\n\n\n<p>Also, you can explore our&nbsp;<a href=\"https:\/\/webkul.com\/prestashop-development\/\">PrestaShop Development Services<\/a>&nbsp;&amp; a large range of quality&nbsp;<a href=\"https:\/\/store.webkul.com\/PrestaShop-Extensions.html\">PrestaShop Modules<\/a>.<\/p>\n\n\n\n<p>For any doubt contact us at&nbsp;<a href=\"mailto:support@webkul.com\">support@webkul.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, we are going to learn how to show the custom message block in the order confirmation page at the front end in PrestaShop. Sometimes we need to show some additional information on the order confirmation page at the front end. So, we can achieve this by following steps. Step 1: Register \u201cpaymentReturn\u201d <a href=\"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":418,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12384,12385],"class_list":["post-321976","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-prestashop-order-confirmation","tag-show-custom-message-block"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Display custom message block on order confirmation page in PrestaShop - Webkul Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Display custom message block on order confirmation page in PrestaShop - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"In this blog, we are going to learn how to show the custom message block in the order confirmation page at the front end in PrestaShop. Sometimes we need to show some additional information on the order confirmation page at the front end. So, we can achieve this by following steps. Step 1: Register \u201cpaymentReturn\u201d [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-11T05:21:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-11T12:46:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/02\/fblog.png\" \/>\n<meta name=\"author\" content=\"Vineet Kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vineet Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/\"},\"author\":{\"name\":\"Vineet Kumar\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/fb0e8c35b6dc5cec4eb69cfd94244a78\"},\"headline\":\"Display custom message block on order confirmation page in PrestaShop\",\"datePublished\":\"2022-02-11T05:21:09+00:00\",\"dateModified\":\"2022-02-11T12:46:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/\"},\"wordCount\":204,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/02\/fblog.png\",\"keywords\":[\"Prestashop order confirmation\",\"Show custom message block\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/\",\"url\":\"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/\",\"name\":\"Display custom message block on order confirmation page in PrestaShop - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/02\/fblog.png\",\"datePublished\":\"2022-02-11T05:21:09+00:00\",\"dateModified\":\"2022-02-11T12:46:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/02\/fblog.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/02\/fblog.png\",\"width\":768,\"height\":639,\"caption\":\"fblog\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Display custom message block on order confirmation page in PrestaShop\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/fb0e8c35b6dc5cec4eb69cfd94244a78\",\"name\":\"Vineet Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/bf6e85e30532031f08a6d0a0832b8dd4e67dcdf285281166e23bd01023efa294?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/bf6e85e30532031f08a6d0a0832b8dd4e67dcdf285281166e23bd01023efa294?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Vineet Kumar\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/vineet-kumar011\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Display custom message block on order confirmation page in PrestaShop - Webkul Blog","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:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/","og_locale":"en_US","og_type":"article","og_title":"Display custom message block on order confirmation page in PrestaShop - Webkul Blog","og_description":"In this blog, we are going to learn how to show the custom message block in the order confirmation page at the front end in PrestaShop. Sometimes we need to show some additional information on the order confirmation page at the front end. So, we can achieve this by following steps. Step 1: Register \u201cpaymentReturn\u201d [...]","og_url":"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2022-02-11T05:21:09+00:00","article_modified_time":"2022-02-11T12:46:30+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/02\/fblog.png","type":"","width":"","height":""}],"author":"Vineet Kumar","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Vineet Kumar","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/"},"author":{"name":"Vineet Kumar","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/fb0e8c35b6dc5cec4eb69cfd94244a78"},"headline":"Display custom message block on order confirmation page in PrestaShop","datePublished":"2022-02-11T05:21:09+00:00","dateModified":"2022-02-11T12:46:30+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/"},"wordCount":204,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/02\/fblog.png","keywords":["Prestashop order confirmation","Show custom message block"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/","url":"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/","name":"Display custom message block on order confirmation page in PrestaShop - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/02\/fblog.png","datePublished":"2022-02-11T05:21:09+00:00","dateModified":"2022-02-11T12:46:30+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/02\/fblog.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/02\/fblog.png","width":768,"height":639,"caption":"fblog"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/display-custom-message-block-on-order-confirmation-page-in-prestashop\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Display custom message block on order confirmation page in PrestaShop"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/fb0e8c35b6dc5cec4eb69cfd94244a78","name":"Vineet Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/bf6e85e30532031f08a6d0a0832b8dd4e67dcdf285281166e23bd01023efa294?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bf6e85e30532031f08a6d0a0832b8dd4e67dcdf285281166e23bd01023efa294?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Vineet Kumar"},"url":"https:\/\/webkul.com\/blog\/author\/vineet-kumar011\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/321976","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/418"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=321976"}],"version-history":[{"count":4,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/321976\/revisions"}],"predecessor-version":[{"id":322063,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/321976\/revisions\/322063"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=321976"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=321976"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=321976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}