{"id":1526,"date":"2013-04-01T14:36:07","date_gmt":"2013-04-01T14:36:07","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=1526"},"modified":"2013-04-02T14:21:41","modified_gmt":"2013-04-02T14:21:41","slug":"showing-custom-message-in-prestashop-1-5","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/showing-custom-message-in-prestashop-1-5\/","title":{"rendered":"Showing custom message in prestashop 1.5"},"content":{"rendered":"<p>Prestashop provide many way to show custom message . Some of the message which we generally see<\/p>\n<p>1. &#8220;update successfully&#8221;<br \/>\n2. &#8220;Deletion successful&#8221;<\/p>\n<p>etc. the upper message you got in classes\/controller\/AdminController.php.<br \/>\nunder the variable $this-&gt;_conf.<\/p>\n<p>we can add our own custom message in $this-&gt;_conf variable<\/p>\n<p>this has been call in your public function __construct()<\/p>\n<p>after calling parent<\/p>\n<pre class=\"brush:php\">parent::__construct();<\/pre>\n<pre class=\"brush:php\">$index=count($this-&gt;_conf)+1;\r\n$this-&gt;_conf[$index]=$this-&gt;l('Your Message');<\/pre>\n<p>and simply redirect by<\/p>\n<pre class=\"brush:php\">Tools::redirectAdmin(self::$currentIndex.'&amp;conf='.$index.'&amp;token='.$this-&gt;token);<\/pre>\n<p>this help to show your custom message when any operation is successfully executed.<\/p>\n<p>you can also show your message by using some predefined tag<\/p>\n<pre class=\"brush:php\">$this-&gt;displayInformation($this-&gt;l('You have now three default customer groups.'));\r\n\r\n$this-&gt;displayWarning($this-&gt;l('When you delete a\r\n language, all related translations in the database \r\nwill be deleted.'));\r\n\r\n$this-&gt;errors[] = Tools::displayError('An error occurred during \r\nimage deletion (cannot load object).');<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Prestashop provide many way to show custom message . Some of the message which we generally see 1. &#8220;update successfully&#8221; 2. &#8220;Deletion successful&#8221; etc. the upper message you got in classes\/controller\/AdminController.php. under the variable $this-&gt;_conf. we can add our own custom message in $this-&gt;_conf variable this has been call in your public function __construct() after <a href=\"https:\/\/webkul.com\/blog\/showing-custom-message-in-prestashop-1-5\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[209],"tags":[280,2057,2065,281],"class_list":["post-1526","post","type-post","status-publish","format-standard","hentry","category-prestashop","tag-custom-message","tag-php","tag-prestashop","tag-prestashop-1-5"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Showing custom message in prestashop 1.5 - 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\/showing-custom-message-in-prestashop-1-5\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Showing custom message in prestashop 1.5 - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Prestashop provide many way to show custom message . Some of the message which we generally see 1. &#8220;update successfully&#8221; 2. &#8220;Deletion successful&#8221; etc. the upper message you got in classes\/controller\/AdminController.php. under the variable $this-&gt;_conf. we can add our own custom message in $this-&gt;_conf variable this has been call in your public function __construct() after [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/showing-custom-message-in-prestashop-1-5\/\" \/>\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=\"2013-04-01T14:36:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-04-02T14:21:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Pratik 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=\"Pratik Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/showing-custom-message-in-prestashop-1-5\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/showing-custom-message-in-prestashop-1-5\/\"},\"author\":{\"name\":\"Pratik Kumar\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/f9328c8ae207f0b82ebeb809a3610b75\"},\"headline\":\"Showing custom message in prestashop 1.5\",\"datePublished\":\"2013-04-01T14:36:07+00:00\",\"dateModified\":\"2013-04-02T14:21:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/showing-custom-message-in-prestashop-1-5\/\"},\"wordCount\":94,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"keywords\":[\"custom message\",\"PHP\",\"prestashop\",\"prestashop 1.5\"],\"articleSection\":[\"prestashop\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/showing-custom-message-in-prestashop-1-5\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/showing-custom-message-in-prestashop-1-5\/\",\"url\":\"https:\/\/webkul.com\/blog\/showing-custom-message-in-prestashop-1-5\/\",\"name\":\"Showing custom message in prestashop 1.5 - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"datePublished\":\"2013-04-01T14:36:07+00:00\",\"dateModified\":\"2013-04-02T14:21:41+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/showing-custom-message-in-prestashop-1-5\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/showing-custom-message-in-prestashop-1-5\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/showing-custom-message-in-prestashop-1-5\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Showing custom message in prestashop 1.5\"}]},{\"@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\/f9328c8ae207f0b82ebeb809a3610b75\",\"name\":\"Pratik Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ce26f0e02c98c14e95e9223d41803b2cb6aafc1bf2c32ce01f3ac16b573eed69?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\/ce26f0e02c98c14e95e9223d41803b2cb6aafc1bf2c32ce01f3ac16b573eed69?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Pratik Kumar\"},\"description\":\"Pratik Kumar is a versatile Shopify developer adept at handling various projects with finesse. With a rich background in e-commerce development, Pratik specializes in building chat applications, crafting AI-driven solutions, and creating seamless e-commerce experiences. His expertise and creativity contribute to the success of diverse online ventures.\",\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/pratik-kumar12\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Showing custom message in prestashop 1.5 - 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\/showing-custom-message-in-prestashop-1-5\/","og_locale":"en_US","og_type":"article","og_title":"Showing custom message in prestashop 1.5 - Webkul Blog","og_description":"Prestashop provide many way to show custom message . Some of the message which we generally see 1. &#8220;update successfully&#8221; 2. &#8220;Deletion successful&#8221; etc. the upper message you got in classes\/controller\/AdminController.php. under the variable $this-&gt;_conf. we can add our own custom message in $this-&gt;_conf variable this has been call in your public function __construct() after [...]","og_url":"https:\/\/webkul.com\/blog\/showing-custom-message-in-prestashop-1-5\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2013-04-01T14:36:07+00:00","article_modified_time":"2013-04-02T14:21:41+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png","type":"image\/png"}],"author":"Pratik Kumar","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Pratik Kumar","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/showing-custom-message-in-prestashop-1-5\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/showing-custom-message-in-prestashop-1-5\/"},"author":{"name":"Pratik Kumar","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/f9328c8ae207f0b82ebeb809a3610b75"},"headline":"Showing custom message in prestashop 1.5","datePublished":"2013-04-01T14:36:07+00:00","dateModified":"2013-04-02T14:21:41+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/showing-custom-message-in-prestashop-1-5\/"},"wordCount":94,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"keywords":["custom message","PHP","prestashop","prestashop 1.5"],"articleSection":["prestashop"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/showing-custom-message-in-prestashop-1-5\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/showing-custom-message-in-prestashop-1-5\/","url":"https:\/\/webkul.com\/blog\/showing-custom-message-in-prestashop-1-5\/","name":"Showing custom message in prestashop 1.5 - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"datePublished":"2013-04-01T14:36:07+00:00","dateModified":"2013-04-02T14:21:41+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/showing-custom-message-in-prestashop-1-5\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/showing-custom-message-in-prestashop-1-5\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/showing-custom-message-in-prestashop-1-5\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Showing custom message in prestashop 1.5"}]},{"@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\/f9328c8ae207f0b82ebeb809a3610b75","name":"Pratik Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ce26f0e02c98c14e95e9223d41803b2cb6aafc1bf2c32ce01f3ac16b573eed69?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\/ce26f0e02c98c14e95e9223d41803b2cb6aafc1bf2c32ce01f3ac16b573eed69?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Pratik Kumar"},"description":"Pratik Kumar is a versatile Shopify developer adept at handling various projects with finesse. With a rich background in e-commerce development, Pratik specializes in building chat applications, crafting AI-driven solutions, and creating seamless e-commerce experiences. His expertise and creativity contribute to the success of diverse online ventures.","sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/pratik-kumar12\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/1526","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\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=1526"}],"version-history":[{"count":4,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/1526\/revisions"}],"predecessor-version":[{"id":1528,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/1526\/revisions\/1528"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=1526"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=1526"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=1526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}