{"id":1550,"date":"2013-04-02T13:47:40","date_gmt":"2013-04-02T13:47:40","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=1550"},"modified":"2021-07-16T14:03:37","modified_gmt":"2021-07-16T14:03:37","slug":"prestashop-showing-custom-buttons-in-toolbar","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/prestashop-showing-custom-buttons-in-toolbar\/","title":{"rendered":"Prestashop  Showing custom buttons in toolbar"},"content":{"rendered":"\n<p>Prestashop Provide many buttons Like Save,Add,Back To list etc button in toolbar,<\/p>\n\n\n\n<p>we also add some of your custome button to in toolbar<\/p>\n\n\n\n<p>some step to create custom button in toolbar<\/p>\n\n\n\n<p>1 . Create the function<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:php\">public function initToolbar() {\n}<\/pre>\n\n\n\n<p>2. add this line<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:php\">$this-&gt;toolbar_btn['button_name'] = array(\n'desc' =&gt; $this-&gt;l('display button name'),\n'href' =&gt;'write your href where this link has been landed'\n);\n\npublic function initToolbar() {\n$this-&gt;toolbar_btn['button_name'] = array(\n'desc' =&gt; $this-&gt;l('display button name'),\n'href' =&gt;'write your href where this link has been landed'\n);\n}<\/pre>\n\n\n\n<p>3. add return $this-&gt;toolbar_btn; in last of the function<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:php\">public function initToolbar() {\n$this-&gt;toolbar_btn['button_name'] = array(\n'desc' =&gt; $this-&gt;l('display button name'),\n'href' =&gt;'write your href where this link has been landed'\n);\n$this-&gt;toolbar_btn;\n}<\/pre>\n\n\n\n<p>4. we also add java-script function like &#8220;onclick,window.open()&#8221; for example prestashop provide help button on toolbar if you want to display help button then you need to add help button within the function initToolbar.<br>example : &#8211;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:php\">public function initToolbar() {\n$this-&gt;toolbar_btn['help'] = array(\n'desc' =&gt; $this-&gt;l('Help'),\n'js' =&gt; 'window.open(\\''.self::$currentIndex.'\n&amp;add'.$this-&gt;table.'&amp;token='.$this-&gt;token.'\\',\\''.'popupwindow \\''.',\n \\''.'width=500\\',\\'height=500\\',\\'scrollbars\\',\\'resizable\\');',\n);\nreturn $this-&gt;toolbar_btn;\n}<\/pre>\n\n\n\n<p>where js help to create &#8220;onclick&#8221; event and window.open help to open file in popup window<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Prestashop Provide many buttons Like Save,Add,Back To list etc button in toolbar, we also add some of your custome button to in toolbar some step to create custom button in toolbar 1 . Create the function public function initToolbar() { } 2. add this line $this-&gt;toolbar_btn[&#8216;button_name&#8217;] = array( &#8216;desc&#8217; =&gt; $this-&gt;l(&#8216;display button name&#8217;), &#8216;href&#8217; =&gt;&#8217;write <a href=\"https:\/\/webkul.com\/blog\/prestashop-showing-custom-buttons-in-toolbar\/\">[&#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":[285,286,2057,2065,284],"class_list":["post-1550","post","type-post","status-publish","format-standard","hentry","category-prestashop","tag-add-help-button-in-toolbar","tag-add-javascript-in-toolbar-button","tag-php","tag-prestashop","tag-prestashop-toolbar-button"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Prestashop Showing custom buttons in toolbar - 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\/prestashop-showing-custom-buttons-in-toolbar\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Prestashop Showing custom buttons in toolbar - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Prestashop Provide many buttons Like Save,Add,Back To list etc button in toolbar, we also add some of your custome button to in toolbar some step to create custom button in toolbar 1 . Create the function public function initToolbar() { } 2. add this line $this-&gt;toolbar_btn[&#039;button_name&#039;] = array( &#039;desc&#039; =&gt; $this-&gt;l(&#039;display button name&#039;), &#039;href&#039; =&gt;&#039;write [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/prestashop-showing-custom-buttons-in-toolbar\/\" \/>\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-02T13:47:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-16T14:03:37+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\/prestashop-showing-custom-buttons-in-toolbar\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/prestashop-showing-custom-buttons-in-toolbar\/\"},\"author\":{\"name\":\"Pratik Kumar\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/f9328c8ae207f0b82ebeb809a3610b75\"},\"headline\":\"Prestashop Showing custom buttons in toolbar\",\"datePublished\":\"2013-04-02T13:47:40+00:00\",\"dateModified\":\"2021-07-16T14:03:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/prestashop-showing-custom-buttons-in-toolbar\/\"},\"wordCount\":110,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"keywords\":[\"add help button in toolbar\",\"add javascript in toolbar button\",\"PHP\",\"prestashop\",\"prestashop toolbar button\"],\"articleSection\":[\"prestashop\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/prestashop-showing-custom-buttons-in-toolbar\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/prestashop-showing-custom-buttons-in-toolbar\/\",\"url\":\"https:\/\/webkul.com\/blog\/prestashop-showing-custom-buttons-in-toolbar\/\",\"name\":\"Prestashop Showing custom buttons in toolbar - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"datePublished\":\"2013-04-02T13:47:40+00:00\",\"dateModified\":\"2021-07-16T14:03:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/prestashop-showing-custom-buttons-in-toolbar\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/prestashop-showing-custom-buttons-in-toolbar\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/prestashop-showing-custom-buttons-in-toolbar\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Prestashop Showing custom buttons in toolbar\"}]},{\"@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":"Prestashop Showing custom buttons in toolbar - 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\/prestashop-showing-custom-buttons-in-toolbar\/","og_locale":"en_US","og_type":"article","og_title":"Prestashop Showing custom buttons in toolbar - Webkul Blog","og_description":"Prestashop Provide many buttons Like Save,Add,Back To list etc button in toolbar, we also add some of your custome button to in toolbar some step to create custom button in toolbar 1 . Create the function public function initToolbar() { } 2. add this line $this-&gt;toolbar_btn['button_name'] = array( 'desc' =&gt; $this-&gt;l('display button name'), 'href' =&gt;'write [...]","og_url":"https:\/\/webkul.com\/blog\/prestashop-showing-custom-buttons-in-toolbar\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2013-04-02T13:47:40+00:00","article_modified_time":"2021-07-16T14:03:37+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\/prestashop-showing-custom-buttons-in-toolbar\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/prestashop-showing-custom-buttons-in-toolbar\/"},"author":{"name":"Pratik Kumar","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/f9328c8ae207f0b82ebeb809a3610b75"},"headline":"Prestashop Showing custom buttons in toolbar","datePublished":"2013-04-02T13:47:40+00:00","dateModified":"2021-07-16T14:03:37+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/prestashop-showing-custom-buttons-in-toolbar\/"},"wordCount":110,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"keywords":["add help button in toolbar","add javascript in toolbar button","PHP","prestashop","prestashop toolbar button"],"articleSection":["prestashop"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/prestashop-showing-custom-buttons-in-toolbar\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/prestashop-showing-custom-buttons-in-toolbar\/","url":"https:\/\/webkul.com\/blog\/prestashop-showing-custom-buttons-in-toolbar\/","name":"Prestashop Showing custom buttons in toolbar - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"datePublished":"2013-04-02T13:47:40+00:00","dateModified":"2021-07-16T14:03:37+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/prestashop-showing-custom-buttons-in-toolbar\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/prestashop-showing-custom-buttons-in-toolbar\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/prestashop-showing-custom-buttons-in-toolbar\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Prestashop Showing custom buttons in toolbar"}]},{"@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\/1550","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=1550"}],"version-history":[{"count":5,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/1550\/revisions"}],"predecessor-version":[{"id":296686,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/1550\/revisions\/296686"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=1550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=1550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=1550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}