[Skip to main content](#vessel-content)

#   Attache PDF invoice not showing additional info

##

- **[grayt7](/forum/user/30010-grayt7 "View grayt7's Profile")**
- [![grayt7's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30010.jpg)](/forum/user/30010-grayt7 "View grayt7's Profile") Topic Author
- [ Offline](/forum/user/30010-grayt7)

Less More

- Posts: 377
- Thank you received: 7
-
-
- [](http://www.identitywebdesign.com)
-

4 years 3 months ago [\#343919](#343919) by [grayt7](/forum/user/30010-grayt7 "View grayt7's Profile")  *[Attache PDF invoice not showing additional info](/forum/35-orders-management/904854-attache-pdf-invoice-not-showing-additional-info#343919 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 3.10 -- PHP version -- : 7.4  Hi,  I have two custom fields on the order table. I have selected them to appear on the invoice but they are not showing. I'm using the attache invoice plugin. I have removed any overrides but still nothing is shown?  Many thanks.")* was created by *[grayt7](/forum/user/30010-grayt7 "View grayt7's Profile")*

-- HikaShop version -- : 4.6.1
-- Joomla version -- : 3.10
-- PHP version -- : 7.4

Hi,

I have two custom fields on the order table. I have selected them to appear on the invoice but they are not showing. I'm using the attache invoice plugin. I have removed any overrides but still nothing is shown?

Many thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNDg1NC1hdHRhY2hlLXBkZi1pbnZvaWNlLW5vdC1zaG93aW5nLWFkZGl0aW9uYWwtaW5mbz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

4 years 3 months ago [\#343925](#343925) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Attache PDF invoice not showing additional info](/forum/35-orders-management/904854-attache-pdf-invoice-not-showing-additional-info#343925 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 3.10 -- PHP version -- : 7.4  Hi,  I have two custom fields on the order table. I have selected them to appear on the invoice but they are not showing. I'm using the attache invoice plugin. I have removed any overrides but still nothing is shown?  Many thanks.")*

Hi,

There are two possibilities:
- You have an old version of the PDF invoice plugin which doesn't support that invoice display setting as it was added a few years back (5 ?)
- You have an override file of the invoice file of the plugin. Check if you have the file media/com_hikashop/plugins/invoice.php
This file won't be updated when you update the plugin so you might have it based on an old version of the invoice.php file of the plugin which is why it doesn't take into account the setting of the custom field.

The custom order fields are displayed by the code: Code:

&lt;?php if(hikashop_level(2) &amp;&amp; !empty($fields['order'])){ ob_start(); foreach($fields['order'] as $fieldName =&gt; $oneExtraField) { if(!@$oneExtraField-&gt;field_frontcomp &#124;&#124; empty($order-&gt;$fieldName)) continue; ?&gt; &lt;tr class="hikashop_order_custom_field_&lt;?php echo $fieldName;?&gt;_line"&gt; &lt;td class="key"&gt; &lt;?php echo $fieldsClass-&gt;getFieldName($oneExtraField);?&gt; &lt;/td&gt; &lt;td&gt; &lt;?php echo $fieldsClass-&gt;show($oneExtraField,$order-&gt;$fieldName,'user_email'); ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } $additionalInfo = ob_get_clean(); if(!empty($additionalInfo)){ ?&gt; &lt;fieldset class="hikashop_order_custom_fields_fieldset"&gt; &lt;legend&gt;&lt;?php echo JText::_('ADDITIONAL_INFORMATION'); ?&gt;&lt;/legend&gt; &lt;table class="hikashop_order_custom_fields_table adminlist" cellpadding="1" width="100%"&gt; &lt;?php echo $additionalInfo; ?&gt; &lt;/table&gt; &lt;/fieldset&gt; &lt;br/&gt; &lt;?php } } ?&gt;

at the end of the plugins/hikashop/attachinvoice/attachinvoice/invoice.php for the PDF invoice plugin.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNDg1NC1hdHRhY2hlLXBkZi1pbnZvaWNlLW5vdC1zaG93aW5nLWFkZGl0aW9uYWwtaW5mbz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")**
- [![mohairbears's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/916-mohairbears "View mohairbears's Profile")
- [ Offline](/forum/user/916-mohairbears)

Less More

- Posts: 611
- Thank you received: 13
-

4 years 3 months ago [\#343937](#343937) by [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")  Replied by *[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")* on topic *[Attache PDF invoice not showing additional info](/forum/35-orders-management/904854-attache-pdf-invoice-not-showing-additional-info#343937 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 3.10 -- PHP version -- : 7.4  Hi,  I have two custom fields on the order table. I have selected them to appear on the invoice but they are not showing. I'm using the attache invoice plugin. I have removed any overrides but still nothing is shown?  Many thanks.")*

Hi I have the same issue, just updated to the new version? on Joomla 4 all lastest updates in Hikashop and Joomla

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNDg1NC1hdHRhY2hlLXBkZi1pbnZvaWNlLW5vdC1zaG93aW5nLWFkZGl0aW9uYWwtaW5mbz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")**
- [![mohairbears's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/916-mohairbears "View mohairbears's Profile")
- [ Offline](/forum/user/916-mohairbears)

Less More

- Posts: 611
- Thank you received: 13
-

4 years 3 months ago [\#343938](#343938) by [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")  Replied by *[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")* on topic *[Attache PDF invoice not showing additional info](/forum/35-orders-management/904854-attache-pdf-invoice-not-showing-additional-info#343938 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 3.10 -- PHP version -- : 7.4  Hi,  I have two custom fields on the order table. I have selected them to appear on the invoice but they are not showing. I'm using the attache invoice plugin. I have removed any overrides but still nothing is shown?  Many thanks.")*

sorted this, in J3 in Custom Fields, there is a setting, display invoice, this is set to no, in J4 it has to be yes.

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNDg1NC1hdHRhY2hlLXBkZi1pbnZvaWNlLW5vdC1zaG93aW5nLWFkZGl0aW9uYWwtaW5mbz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.050 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
