{"id":395352,"date":"2023-08-14T11:27:15","date_gmt":"2023-08-14T11:27:15","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=395352"},"modified":"2023-08-14T11:39:45","modified_gmt":"2023-08-14T11:39:45","slug":"how-to-change-invoice-template-files-in-prestashop-1-7","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/","title":{"rendered":"How to change invoice template files  in PrestaShop 1.7"},"content":{"rendered":"\n<p>In this blog, we are going to learn how to change invoice template files in PrestaShop.<\/p>\n\n\n\n<p>So let\u2019s understand how to achieve it:<\/p>\n\n\n\n<p>Sometimes, we need to modify invoices. we can do it using two ways one is directly modifying core invoice template files which is not a good way because it could be overridden after upgrading PrestaShop and another one is described in this blog.<\/p>\n\n\n\n<p>The below invoice is a default PrestaShop Invoice:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"789\" height=\"690\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/before_invoice.png\" alt=\"before_invoice\" class=\"wp-image-395372\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/before_invoice.png 789w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/before_invoice-300x262.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/before_invoice-250x219.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/before_invoice-768x672.png 768w\" sizes=\"(max-width: 789px) 100vw, 789px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Now we are going to remove product reference from the product table<\/p>\n\n\n\n<p>To achieve this we need to do changes in the core <strong>HTMLTemplate<\/strong> class and thanks to PrestaShop for giving us the great feature of overriding classes using modules.<\/p>\n\n\n\n<p>So we will override the class in our module.<\/p>\n\n\n\n<p>Create a new file at path <strong>{your-module\/override\/classes\/pdf\/HTMLTemplate.php}<\/strong><\/p>\n\n\n\n<p>Now add the below code in this file:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">class HTMLTemplate extends HTMLTemplateCore\n{\n    protected function getTemplate($template_name)\n    {\n        if (Module::isEnabled(&#039;your-module&#039;)) {\n            $overriddenTemplate = _PS_MODULE_DIR_ . &#039;your-module\/views\/templates\/hook\/&#039; . $template_name . &#039;.tpl&#039;;\n            if (file_exists($overriddenTemplate)) {\n                return $overriddenTemplate;\n            }\n        }\n        return parent::getTemplate($template_name);\n    }\n\n    public function getContent()\n    {\n    }\n\n    public function getFilename()\n    {\n    }\n\n    public function getBulkFilename()\n    {\n    }\n}<\/pre>\n\n\n\n<p>In the above code, simply we have checked our module-enabled condition and returned the template file if exists in our module.<\/p>\n\n\n\n<p> We are removing product reference so we have to do changes in the <strong>invoice.product-tab.tpl<\/strong> file.<\/p>\n\n\n\n<p>Now we will create a new <strong>invoice.product-tab.tpl <\/strong>file at path <strong>{your-module\/views\/templates\/hook\/invoice.product-tab.tpl}<\/strong><\/p>\n\n\n\n<p>We will copy and paste all codes of the default PrestaShop file <strong>invoice.product-tab.tpl<\/strong> and modify it according to the need.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">{**\n * Copyright since 2007 PrestaShop SA and Contributors\n * PrestaShop is an International Registered Trademark &amp; Property of PrestaShop SA\n *\n * NOTICE OF LICENSE\n *\n * This source file is subject to the Open Software License (OSL 3.0)\n * that is bundled with this package in the file LICENSE.md.\n * It is also available through the world-wide-web at this URL:\n * https:\/\/opensource.org\/licenses\/OSL-3.0\n * If you did not receive a copy of the license and are unable to\n * obtain it through the world-wide-web, please send an email\n * to license@prestashop.com so we can send you a copy immediately.\n *\n * DISCLAIMER\n *\n * Do not edit or add to this file if you wish to upgrade PrestaShop to newer\n * versions in the future. If you wish to customize PrestaShop for your\n * needs please refer to https:\/\/devdocs.prestashop.com\/ for more information.\n *\n * @author    PrestaShop SA and Contributors &lt;contact@prestashop.com&gt;\n * @copyright Since 2007 PrestaShop SA and Contributors\n * @license   https:\/\/opensource.org\/licenses\/OSL-3.0 Open Software License (OSL 3.0)\n *}\n &lt;table class=&quot;product&quot; width=&quot;100%&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;\n\n {assign var=&#039;widthColProduct&#039; value=$layout.product.width}\n {if !$isTaxEnabled}\n   {assign var=&#039;widthColProduct&#039; value=$widthColProduct+$layout.tax_code.width}\n {\/if}\n &lt;thead&gt;\n &lt;tr&gt;\n   {* &lt;th class=&quot;product header small&quot; width=&quot;{$layout.reference.width}%&quot;&gt;{l s=&#039;Reference&#039; d=&#039;Shop.Pdf&#039; pdf=&#039;true&#039;}&lt;\/th&gt; *}\n   &lt;th class=&quot;product header small&quot; width=&quot;{$widthColProduct+$layout.reference.width}%&quot;&gt;{l s=&#039;Product&#039; d=&#039;Shop.Pdf&#039; pdf=&#039;true&#039;}&lt;\/th&gt;\n   {if $isTaxEnabled}\n     &lt;th class=&quot;product header small&quot; width=&quot;{$layout.tax_code.width}%&quot;&gt;{l s=&#039;Tax Rate&#039; d=&#039;Shop.Pdf&#039; pdf=&#039;true&#039;}&lt;\/th&gt;\n   {\/if}\n   {if isset($layout.before_discount)}\n     &lt;th class=&quot;product header small&quot; width=&quot;{$layout.unit_price_tax_excl.width}%&quot;&gt;\n       {l s=&#039;Base price&#039; d=&#039;Shop.Pdf&#039; pdf=&#039;true&#039;}{if $isTaxEnabled}&lt;br \/&gt; {l s=&#039;(Tax excl.)&#039; d=&#039;Shop.Pdf&#039; pdf=&#039;true&#039;}{\/if}\n     &lt;\/th&gt;\n   {\/if}\n\n   &lt;th class=&quot;product header-right small&quot; width=&quot;{$layout.unit_price_tax_excl.width}%&quot;&gt;\n     {l s=&#039;Unit Price&#039; d=&#039;Shop.Pdf&#039; pdf=&#039;true&#039;}{if $isTaxEnabled}&lt;br \/&gt; {l s=&#039;(Tax excl.)&#039; d=&#039;Shop.Pdf&#039; pdf=&#039;true&#039;}{\/if}\n   &lt;\/th&gt;\n   &lt;th class=&quot;product header small&quot; width=&quot;{$layout.quantity.width}%&quot;&gt;{l s=&#039;Qty&#039; d=&#039;Shop.Pdf&#039; pdf=&#039;true&#039;}&lt;\/th&gt;\n   &lt;th class=&quot;product header-right small&quot; width=&quot;{$layout.total_tax_excl.width}%&quot;&gt;\n     {l s=&#039;Total&#039; d=&#039;Shop.Pdf&#039; pdf=&#039;true&#039;}{if $isTaxEnabled}&lt;br \/&gt; {l s=&#039;(Tax excl.)&#039; d=&#039;Shop.Pdf&#039; pdf=&#039;true&#039;}{\/if}\n   &lt;\/th&gt;\n &lt;\/tr&gt;\n &lt;\/thead&gt;\n\n &lt;tbody&gt;\n\n &lt;!-- PRODUCTS --&gt;\n {foreach $order_details as $order_detail}\n   {cycle values=&#091;&quot;color_line_even&quot;, &quot;color_line_odd&quot;] assign=bgcolor_class}\n   &lt;tr class=&quot;product {$bgcolor_class}&quot;&gt;\n\n     &lt;td class=&quot;product left&quot;&gt;\n       {if $display_product_images}\n         &lt;table width=&quot;100%&quot;&gt;\n           &lt;tr&gt;\n             &lt;td width=&quot;15%&quot;&gt;\n               {if isset($order_detail.image) &amp;&amp; $order_detail.image-&gt;id}\n                 {$order_detail.image_tag}\n               {\/if}\n             &lt;\/td&gt;\n             &lt;td width=&quot;5%&quot;&gt;&amp;nbsp;&lt;\/td&gt;\n             &lt;td width=&quot;80%&quot;&gt;\n               {$order_detail.product_name}\n             &lt;\/td&gt;\n           &lt;\/tr&gt;\n         &lt;\/table&gt;\n       {else}\n         {$order_detail.product_name}\n       {\/if}\n\n     &lt;\/td&gt;\n     {if $isTaxEnabled}\n       &lt;td class=&quot;product center&quot;&gt;\n         {$order_detail.order_detail_tax_label}\n       &lt;\/td&gt;\n     {\/if}\n\n     {if isset($layout.before_discount)}\n       &lt;td class=&quot;product center&quot;&gt;\n         {if isset($order_detail.unit_price_tax_excl_before_specific_price)}\n           {displayPrice currency=$order-&gt;id_currency price=$order_detail.unit_price_tax_excl_before_specific_price}\n         {else}\n           --\n         {\/if}\n       &lt;\/td&gt;\n     {\/if}\n\n     &lt;td class=&quot;product right&quot;&gt;\n       {displayPrice currency=$order-&gt;id_currency price=$order_detail.unit_price_tax_excl_including_ecotax}\n       {if $order_detail.ecotax_tax_excl &gt; 0}\n         &lt;br&gt;\n         &lt;small&gt;{{displayPrice currency=$order-&gt;id_currency price=$order_detail.ecotax_tax_excl}|string_format:{l s=&#039;ecotax: %s&#039; d=&#039;Shop.Pdf&#039; pdf=&#039;true&#039;}}&lt;\/small&gt;\n       {\/if}\n     &lt;\/td&gt;\n     &lt;td class=&quot;product center&quot;&gt;\n       {$order_detail.product_quantity}\n     &lt;\/td&gt;\n     &lt;td  class=&quot;product right&quot;&gt;\n       {displayPrice currency=$order-&gt;id_currency price=$order_detail.total_price_tax_excl_including_ecotax}\n     &lt;\/td&gt;\n   &lt;\/tr&gt;\n\n   {foreach $order_detail.customizedDatas as $customizationPerAddress}\n     {foreach $customizationPerAddress as $customizationId =&gt; $customization}\n       &lt;tr class=&quot;customization_data {$bgcolor_class}&quot;&gt;\n         &lt;td class=&quot;center&quot;&gt; &amp;nbsp;&lt;\/td&gt;\n\n         &lt;td&gt;\n           {if isset($customization.datas&#091;Product::CUSTOMIZE_TEXTFIELD]) &amp;&amp; count($customization.datas&#091;Product::CUSTOMIZE_TEXTFIELD]) &gt; 0}\n             &lt;table style=&quot;width: 100%;&quot;&gt;\n               {foreach $customization.datas&#091;Product::CUSTOMIZE_TEXTFIELD] as $customization_infos}\n                 &lt;tr&gt;\n                   &lt;td&gt;{$customization_infos.name|escape:&#039;html&#039;:&#039;UTF-8&#039;|string_format:{l s=&#039;%s:&#039; d=&#039;Shop.Pdf&#039; pdf=&#039;true&#039;}} {if (int)$customization_infos.id_module}{$customization_infos.value nofilter}{else}{$customization_infos.value}{\/if}&lt;\/td&gt;\n                 &lt;\/tr&gt;\n               {\/foreach}\n             &lt;\/table&gt;\n           {\/if}\n\n           {if isset($customization.datas&#091;Product::CUSTOMIZE_FILE]) &amp;&amp; count($customization.datas&#091;Product::CUSTOMIZE_FILE]) &gt; 0}\n             &lt;table style=&quot;width: 100%;&quot;&gt;\n               &lt;tr&gt;\n                 &lt;td style=&quot;width: 70%;&quot;&gt;{l s=&#039;image(s):&#039; d=&#039;Shop.Pdf&#039; pdf=&#039;true&#039;}&lt;\/td&gt;\n                 &lt;td&gt;{count($customization.datas&#091;Product::CUSTOMIZE_FILE])}&lt;\/td&gt;\n               &lt;\/tr&gt;\n             &lt;\/table&gt;\n           {\/if}\n         &lt;\/td&gt;\n\n         &lt;td class=&quot;center&quot;&gt;\n           ({if $customization.quantity == 0}1{else}{$customization.quantity}{\/if})\n         &lt;\/td&gt;\n\n         {assign var=end value=($layout._colCount-3)}\n         {for $var=0 to $end}\n           &lt;td class=&quot;center&quot;&gt;\n             --\n           &lt;\/td&gt;\n         {\/for}\n\n       &lt;\/tr&gt;\n     {\/foreach}\n   {\/foreach}\n {\/foreach}\n &lt;!-- END PRODUCTS --&gt;\n\n &lt;!-- CART RULES --&gt;\n\n {assign var=&quot;shipping_discount_tax_incl&quot; value=&quot;0&quot;}\n {foreach from=$cart_rules item=cart_rule name=&quot;cart_rules_loop&quot;}\n   {if $smarty.foreach.cart_rules_loop.first}\n     &lt;tr class=&quot;discount&quot;&gt;\n       &lt;th class=&quot;header&quot; colspan=&quot;{$layout._colCount}&quot;&gt;\n         {l s=&#039;Discounts&#039; d=&#039;Shop.Pdf&#039; pdf=&#039;true&#039;}\n       &lt;\/th&gt;\n     &lt;\/tr&gt;\n   {\/if}\n   &lt;tr class=&quot;discount&quot;&gt;\n     &lt;td class=&quot;white right&quot; colspan=&quot;{$layout._colCount - 1}&quot;&gt;\n       {$cart_rule.name}\n     &lt;\/td&gt;\n     &lt;td class=&quot;right white&quot;&gt;\n       - {displayPrice currency=$order-&gt;id_currency price=$cart_rule.value_tax_excl}\n     &lt;\/td&gt;\n   &lt;\/tr&gt;\n {\/foreach}\n\n &lt;\/tbody&gt;\n\n&lt;\/table&gt;<\/pre>\n\n\n\n<p>In the above code, we have removed only product reference-related codes.<\/p>\n\n\n\n<p>After removing the product reference invoice look like this: <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"792\" height=\"698\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/after_invoice.png\" alt=\"after_invoice\" class=\"wp-image-395361\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/after_invoice.png 792w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/after_invoice-300x264.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/after_invoice-250x220.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/after_invoice-768x677.png 768w\" sizes=\"(max-width: 792px) 100vw, 792px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>You can modify other invoices (<strong>invoice.addresses-tab.tpl, invoice.shipping-tab.tpl, and invoice.payment-tab.tpl,<\/strong> etc&#8230;) files like this.<\/p>\n\n\n\n<p>That\u2019s all about this blog. Hope it will help you.<\/p>\n\n\n\n<p>If you are facing any issues or doubts in the above process, please feel free to contact us through the comment section.<\/p>\n\n\n\n<p>We 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\u00a0<a href=\"mailto:support@webkul.com\">support@webkul.com<\/a>.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, we are going to learn how to change invoice template files in PrestaShop. So let\u2019s understand how to achieve it: Sometimes, we need to modify invoices. we can do it using two ways one is directly modifying core invoice template files which is not a good way because it could be overridden <a href=\"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":416,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[209,1],"tags":[2065,14590],"class_list":["post-395352","post","type-post","status-publish","format-standard","hentry","category-prestashop","category-uncategorized","tag-prestashop","tag-prestashop-invoice-change"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to change invoice template files in PrestaShop 1.7 - 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\/how-to-change-invoice-template-files-in-prestashop-1-7\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to change invoice template files in PrestaShop 1.7 - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"In this blog, we are going to learn how to change invoice template files in PrestaShop. So let\u2019s understand how to achieve it: Sometimes, we need to modify invoices. we can do it using two ways one is directly modifying core invoice template files which is not a good way because it could be overridden [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/\" \/>\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=\"2023-08-14T11:27:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-14T11:39:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/08\/before_invoice.png\" \/>\n<meta name=\"author\" content=\"Gajendra Singh\" \/>\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=\"Gajendra Singh\" \/>\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\/how-to-change-invoice-template-files-in-prestashop-1-7\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/\"},\"author\":{\"name\":\"Gajendra Singh\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/ba72ea261f883808a566a3ab8b63dede\"},\"headline\":\"How to change invoice template files in PrestaShop 1.7\",\"datePublished\":\"2023-08-14T11:27:15+00:00\",\"dateModified\":\"2023-08-14T11:39:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/\"},\"wordCount\":337,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/08\/before_invoice.png\",\"keywords\":[\"prestashop\",\"prestashop invoice change\"],\"articleSection\":[\"prestashop\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/\",\"name\":\"How to change invoice template files in PrestaShop 1.7 - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/08\/before_invoice.png\",\"datePublished\":\"2023-08-14T11:27:15+00:00\",\"dateModified\":\"2023-08-14T11:39:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/before_invoice.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/before_invoice.png\",\"width\":789,\"height\":690,\"caption\":\"before_invoice\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to change invoice template files in PrestaShop 1.7\"}]},{\"@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\/ba72ea261f883808a566a3ab8b63dede\",\"name\":\"Gajendra Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9d864b4124944a25bce60168e4d9520c03a18cdca40483dfbf0d9e46d2f0d32c?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\/9d864b4124944a25bce60168e4d9520c03a18cdca40483dfbf0d9e46d2f0d32c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Gajendra Singh\"},\"description\":\"Gajendra Singh, a PrestaShop Software Engineer, excels in Mobile App and Custom Extension Development. A tech-savvy expert in Docker and POS, he creates innovative solutions. Gajendra's skills ensure a seamless PrestaShop experience, catering to diverse needs.\",\"url\":\"https:\/\/webkul.com\/blog\/author\/gajendra-singh681\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to change invoice template files in PrestaShop 1.7 - 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\/how-to-change-invoice-template-files-in-prestashop-1-7\/","og_locale":"en_US","og_type":"article","og_title":"How to change invoice template files in PrestaShop 1.7 - Webkul Blog","og_description":"In this blog, we are going to learn how to change invoice template files in PrestaShop. So let\u2019s understand how to achieve it: Sometimes, we need to modify invoices. we can do it using two ways one is directly modifying core invoice template files which is not a good way because it could be overridden [...]","og_url":"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-08-14T11:27:15+00:00","article_modified_time":"2023-08-14T11:39:45+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/08\/before_invoice.png","type":"","width":"","height":""}],"author":"Gajendra Singh","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Gajendra Singh","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/"},"author":{"name":"Gajendra Singh","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/ba72ea261f883808a566a3ab8b63dede"},"headline":"How to change invoice template files in PrestaShop 1.7","datePublished":"2023-08-14T11:27:15+00:00","dateModified":"2023-08-14T11:39:45+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/"},"wordCount":337,"commentCount":2,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/08\/before_invoice.png","keywords":["prestashop","prestashop invoice change"],"articleSection":["prestashop"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/","url":"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/","name":"How to change invoice template files in PrestaShop 1.7 - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/08\/before_invoice.png","datePublished":"2023-08-14T11:27:15+00:00","dateModified":"2023-08-14T11:39:45+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/before_invoice.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/08\/before_invoice.png","width":789,"height":690,"caption":"before_invoice"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-change-invoice-template-files-in-prestashop-1-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to change invoice template files in PrestaShop 1.7"}]},{"@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\/ba72ea261f883808a566a3ab8b63dede","name":"Gajendra Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9d864b4124944a25bce60168e4d9520c03a18cdca40483dfbf0d9e46d2f0d32c?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\/9d864b4124944a25bce60168e4d9520c03a18cdca40483dfbf0d9e46d2f0d32c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Gajendra Singh"},"description":"Gajendra Singh, a PrestaShop Software Engineer, excels in Mobile App and Custom Extension Development. A tech-savvy expert in Docker and POS, he creates innovative solutions. Gajendra's skills ensure a seamless PrestaShop experience, catering to diverse needs.","url":"https:\/\/webkul.com\/blog\/author\/gajendra-singh681\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/395352","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\/416"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=395352"}],"version-history":[{"count":15,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/395352\/revisions"}],"predecessor-version":[{"id":395375,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/395352\/revisions\/395375"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=395352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=395352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=395352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}