{"id":2987,"date":"2022-09-12T12:08:34","date_gmt":"2022-09-12T06:38:34","guid":{"rendered":"https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/developer-section\/displaying-additional-product-table-columns\/"},"modified":"2022-09-12T12:14:43","modified_gmt":"2022-09-12T06:44:43","slug":"displaying-additional-product-table-columns","status":"publish","type":"docs","link":"https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/developer-section\/displaying-additional-product-table-columns\/","title":{"rendered":"Displaying additional product table columns"},"content":{"rendered":"\n<p>Create OCMOD like the one shown below.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?>\n&lt;modification>\n    &lt;name>PDF INVOICE Customization&lt;\/name>\n    &lt;version>2.1.4&lt;\/version>\n    &lt;author>HuntBee OpenCart Services&lt;\/author>\n    &lt;link>https:\/\/www.huntbee.com&lt;\/link>\n    &lt;code>huntbee_pdf_invoice_custom&lt;\/code>\n\n    &lt;file path=\"admin\/controller\/extension\/hbapps\/hb_pdfinvoice.php\">\n\t&lt;operation>\n            &lt;search>&lt;![CDATA[array('image','model','sku','upc','ean','jan','isbn','mpn','weight','dimension','quantity','item_price','item_tax','price')]]>&lt;\/search>\n            &lt;add position=\"replace\">&lt;![CDATA[array('image','model','sku','act_size','upc','ean','jan','isbn','mpn','weight','dimension','quantity','item_price','item_tax','price')]]>&lt;\/add>\n        &lt;\/operation>\n  &lt;\/file>\n  \n  &lt;file path=\"catalog\/model\/extension\/module\/hb_pdfinvoice.php\">\n\t&lt;operation>\n            &lt;search>&lt;![CDATA[$productinfo['sku'],]]>&lt;\/search>\n            &lt;add position=\"after\">&lt;![CDATA['act_size'    \t=> $productinfo['act_size'],]]>&lt;\/add>\n        &lt;\/operation>\n\n        &lt;operation>\n            &lt;search>&lt;![CDATA[array('model','sku','upc','ean','jan','isbn','mpn','weight','dimension','quantity','item_price','item_tax','price')]]>&lt;\/search>\n            &lt;add position=\"replace\">&lt;![CDATA[array('model','sku','act_size','upc','ean','jan','isbn','mpn','weight','dimension','quantity','item_price','item_tax','price')]]>&lt;\/add>\n        &lt;\/operation>\n\n\t&lt;operation>\n            &lt;search>&lt;![CDATA[$language->get('text_pdf_sku'),]]>&lt;\/search>\n            &lt;add position=\"after\">&lt;![CDATA['act_size' \t\t=> $language->get('text_pdf_act_size'),]]>&lt;\/add>\n        &lt;\/operation>\n  &lt;\/file>\n  \n  &lt;file path=\"catalog\/language\/en-gb\/extension\/module\/hb_pdfinvoice.php\">\n\t&lt;operation>\n            &lt;search>&lt;![CDATA[$_['text_pdf_sku'] ]]>&lt;\/search>\n            &lt;add position=\"before\">&lt;![CDATA[$_['text_pdf_act_size']            \t= 'Size';]]>&lt;\/add>\n        &lt;\/operation>\n  &lt;\/file>\n\t\n&lt;\/modification><\/pre>\n","protected":false},"featured_media":0,"parent":2986,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-2987","docs","type-docs","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Displaying additional product table columns - HuntBee Resources<\/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:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/developer-section\/displaying-additional-product-table-columns\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Displaying additional product table columns - HuntBee Resources\" \/>\n<meta property=\"og:description\" content=\"Create OCMOD like the one shown below. &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;modification&gt; &lt;name&gt;PDF INVOICE Customization&lt;\/name&gt; &lt;version&gt;2.1.4&lt;\/version&gt; &lt;author&gt;HuntBee OpenCart Services&lt;\/author&gt; &lt;link&gt;https:\/\/www.huntbee.com&lt;\/link&gt; &lt;code&gt;huntbee_pdf_invoice_custom&lt;\/code&gt; &lt;file path=&quot;admin\/controller\/extension\/hbapps\/hb_pdfinvoice.php&quot;&gt; &lt;operation&gt; &lt;search&gt;&lt;![CDATA[array(&#039;image&#039;,&#039;model&#039;,&#039;sku&#039;,&#039;upc&#039;,&#039;ean&#039;,&#039;jan&#039;,&#039;isbn&#039;,&#039;mpn&#039;,&#039;weight&#039;,&#039;dimension&#039;,&#039;quantity&#039;,&#039;item_price&#039;,&#039;item_tax&#039;,&#039;price&#039;)]]&gt;&lt;\/search&gt; &lt;add position=&quot;replace&quot;&gt;&lt;![CDATA[array(&#039;image&#039;,&#039;model&#039;,&#039;sku&#039;,&#039;act_size&#039;,&#039;upc&#039;,&#039;ean&#039;,&#039;jan&#039;,&#039;isbn&#039;,&#039;mpn&#039;,&#039;weight&#039;,&#039;dimension&#039;,&#039;quantity&#039;,&#039;item_price&#039;,&#039;item_tax&#039;,&#039;price&#039;)]]&gt;&lt;\/add&gt; &lt;\/operation&gt; &lt;\/file&gt; &lt;file path=&quot;catalog\/model\/extension\/module\/hb_pdfinvoice.php&quot;&gt; &lt;operation&gt; &lt;search&gt;&lt;![CDATA[$productinfo[&#039;sku&#039;],]]&gt;&lt;\/search&gt; &lt;add position=&quot;after&quot;&gt;&lt;![CDATA[&#039;act_size&#039; =&gt; $productinfo[&#039;act_size&#039;],]]&gt;&lt;\/add&gt; &lt;\/operation&gt; &lt;operation&gt; &lt;search&gt;&lt;![CDATA[array(&#039;model&#039;,&#039;sku&#039;,&#039;upc&#039;,&#039;ean&#039;,&#039;jan&#039;,&#039;isbn&#039;,&#039;mpn&#039;,&#039;weight&#039;,&#039;dimension&#039;,&#039;quantity&#039;,&#039;item_price&#039;,&#039;item_tax&#039;,&#039;price&#039;)]]&gt;&lt;\/search&gt; &lt;add position=&quot;replace&quot;&gt;&lt;![CDATA[array(&#039;model&#039;,&#039;sku&#039;,&#039;act_size&#039;,&#039;upc&#039;,&#039;ean&#039;,&#039;jan&#039;,&#039;isbn&#039;,&#039;mpn&#039;,&#039;weight&#039;,&#039;dimension&#039;,&#039;quantity&#039;,&#039;item_price&#039;,&#039;item_tax&#039;,&#039;price&#039;)]]&gt;&lt;\/add&gt; &lt;\/operation&gt; &lt;operation&gt; &lt;search&gt;&lt;![CDATA[$language-&gt;get(&#039;text_pdf_sku&#039;),]]&gt;&lt;\/search&gt; &lt;add position=&quot;after&quot;&gt;&lt;![CDATA[&#039;act_size&#039; =&gt; $language-&gt;get(&#039;text_pdf_act_size&#039;),]]&gt;&lt;\/add&gt; &lt;\/operation&gt; &lt;\/file&gt; &lt;file path=&quot;catalog\/language\/en-gb\/extension\/module\/hb_pdfinvoice.php&quot;&gt; &lt;operation&gt; &lt;search&gt;&lt;![CDATA[$_[&#039;text_pdf_sku&#039;] ]]&gt;&lt;\/search&gt; [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/developer-section\/displaying-additional-product-table-columns\/\" \/>\n<meta property=\"og:site_name\" content=\"HuntBee Resources\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/huntbee.opencart\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-12T06:44:43+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/pdf-invoice-generator\\\/developer-section\\\/displaying-additional-product-table-columns\\\/\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/pdf-invoice-generator\\\/developer-section\\\/displaying-additional-product-table-columns\\\/\",\"name\":\"Displaying additional product table columns - HuntBee Resources\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#website\"},\"datePublished\":\"2022-09-12T06:38:34+00:00\",\"dateModified\":\"2022-09-12T06:44:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/pdf-invoice-generator\\\/developer-section\\\/displaying-additional-product-table-columns\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/pdf-invoice-generator\\\/developer-section\\\/displaying-additional-product-table-columns\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/pdf-invoice-generator\\\/developer-section\\\/displaying-additional-product-table-columns\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PDF Invoice Generator\",\"item\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/pdf-invoice-generator\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Developer Section\",\"item\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/pdf-invoice-generator\\\/developer-section\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Displaying additional product table columns\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#website\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/\",\"name\":\"HuntBee Resources\",\"description\":\"OpenCart Extension Documentations - Guides - Blogs - Projects\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#organization\",\"name\":\"HuntBee OpenCart\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/cropped-mobile-logo-new.png\",\"contentUrl\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/cropped-mobile-logo-new.png\",\"width\":945,\"height\":200,\"caption\":\"HuntBee OpenCart\"},\"image\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/huntbee.opencart\",\"https:\\\/\\\/www.instagram.com\\\/opencart.huntbee\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Displaying additional product table columns - HuntBee Resources","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:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/developer-section\/displaying-additional-product-table-columns\/","og_locale":"en_US","og_type":"article","og_title":"Displaying additional product table columns - HuntBee Resources","og_description":"Create OCMOD like the one shown below. &lt;?xml version=\"1.0\" encoding=\"utf-8\"?> &lt;modification> &lt;name>PDF INVOICE Customization&lt;\/name> &lt;version>2.1.4&lt;\/version> &lt;author>HuntBee OpenCart Services&lt;\/author> &lt;link>https:\/\/www.huntbee.com&lt;\/link> &lt;code>huntbee_pdf_invoice_custom&lt;\/code> &lt;file path=\"admin\/controller\/extension\/hbapps\/hb_pdfinvoice.php\"> &lt;operation> &lt;search>&lt;![CDATA[array('image','model','sku','upc','ean','jan','isbn','mpn','weight','dimension','quantity','item_price','item_tax','price')]]&gt;&lt;\/search> &lt;add position=\"replace\">&lt;![CDATA[array('image','model','sku','act_size','upc','ean','jan','isbn','mpn','weight','dimension','quantity','item_price','item_tax','price')]]&gt;&lt;\/add> &lt;\/operation> &lt;\/file> &lt;file path=\"catalog\/model\/extension\/module\/hb_pdfinvoice.php\"> &lt;operation> &lt;search>&lt;![CDATA[$productinfo['sku'],]]&gt;&lt;\/search> &lt;add position=\"after\">&lt;![CDATA['act_size' => $productinfo['act_size'],]]&gt;&lt;\/add> &lt;\/operation> &lt;operation> &lt;search>&lt;![CDATA[array('model','sku','upc','ean','jan','isbn','mpn','weight','dimension','quantity','item_price','item_tax','price')]]&gt;&lt;\/search> &lt;add position=\"replace\">&lt;![CDATA[array('model','sku','act_size','upc','ean','jan','isbn','mpn','weight','dimension','quantity','item_price','item_tax','price')]]&gt;&lt;\/add> &lt;\/operation> &lt;operation> &lt;search>&lt;![CDATA[$language->get('text_pdf_sku'),]]&gt;&lt;\/search> &lt;add position=\"after\">&lt;![CDATA['act_size' => $language->get('text_pdf_act_size'),]]&gt;&lt;\/add> &lt;\/operation> &lt;\/file> &lt;file path=\"catalog\/language\/en-gb\/extension\/module\/hb_pdfinvoice.php\"> &lt;operation> &lt;search>&lt;![CDATA[$_['text_pdf_sku'] ]]&gt;&lt;\/search> [&hellip;]","og_url":"https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/developer-section\/displaying-additional-product-table-columns\/","og_site_name":"HuntBee Resources","article_publisher":"https:\/\/www.facebook.com\/huntbee.opencart","article_modified_time":"2022-09-12T06:44:43+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/developer-section\/displaying-additional-product-table-columns\/","url":"https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/developer-section\/displaying-additional-product-table-columns\/","name":"Displaying additional product table columns - HuntBee Resources","isPartOf":{"@id":"https:\/\/www.huntbee.com\/resources\/#website"},"datePublished":"2022-09-12T06:38:34+00:00","dateModified":"2022-09-12T06:44:43+00:00","breadcrumb":{"@id":"https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/developer-section\/displaying-additional-product-table-columns\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/developer-section\/displaying-additional-product-table-columns\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/developer-section\/displaying-additional-product-table-columns\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.huntbee.com\/resources\/"},{"@type":"ListItem","position":2,"name":"PDF Invoice Generator","item":"https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/"},{"@type":"ListItem","position":3,"name":"Developer Section","item":"https:\/\/www.huntbee.com\/resources\/docs\/pdf-invoice-generator\/developer-section\/"},{"@type":"ListItem","position":4,"name":"Displaying additional product table columns"}]},{"@type":"WebSite","@id":"https:\/\/www.huntbee.com\/resources\/#website","url":"https:\/\/www.huntbee.com\/resources\/","name":"HuntBee Resources","description":"OpenCart Extension Documentations - Guides - Blogs - Projects","publisher":{"@id":"https:\/\/www.huntbee.com\/resources\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.huntbee.com\/resources\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.huntbee.com\/resources\/#organization","name":"HuntBee OpenCart","url":"https:\/\/www.huntbee.com\/resources\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.huntbee.com\/resources\/#\/schema\/logo\/image\/","url":"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2020\/04\/cropped-mobile-logo-new.png","contentUrl":"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2020\/04\/cropped-mobile-logo-new.png","width":945,"height":200,"caption":"HuntBee OpenCart"},"image":{"@id":"https:\/\/www.huntbee.com\/resources\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/huntbee.opencart","https:\/\/www.instagram.com\/opencart.huntbee\/"]}]}},"comment_count":0,"_links":{"self":[{"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/2987","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/comments?post=2987"}],"version-history":[{"count":4,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/2987\/revisions"}],"predecessor-version":[{"id":2993,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/2987\/revisions\/2993"}],"up":[{"embeddable":true,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/2986"}],"wp:attachment":[{"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/media?parent=2987"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/doc_tag?post=2987"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}