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

#   PDF Plugin - Userpoints

##

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

Less More

- Posts: 224
- Thank you received: 10
-
-
- [](http://www.joomill.nl)
-

10 years 1 month ago [\#251340](#251340) by [Joomill](/forum/user/33738-joomill "View Joomill's Profile")  *[PDF Plugin - Userpoints](/forum/35-orders-management/886703-pdf-plugin-userpoints#251340 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6  Hi,  I use the Attachinvoice PDF Plugin and Hikashop Userpoints. When someone pay with userpoints you see this in the backend invoice. The userpoints don't appear on the PDF invoice. Is it possible to add it to the plugin or guide us how to add it.  Besides this i would like to show the total collected userpoints on the invoice, is this possible?  Thank you!")* was created by *[Joomill](/forum/user/33738-joomill "View Joomill's Profile")*

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6

Hi,

I use the Attachinvoice PDF Plugin and Hikashop Userpoints.
When someone pay with userpoints you see this in the backend invoice.
The userpoints don't appear on the PDF invoice.
Is it possible to add it to the plugin or guide us how to add it.

Besides this i would like to show the total collected userpoints on the invoice, is this possible?

Thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NjcwMy1wZGYtcGx1Z2luLXVzZXJwb2ludHM/dG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

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

10 years 1 month ago [\#251373](#251373) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PDF Plugin - Userpoints](/forum/35-orders-management/886703-pdf-plugin-userpoints#251373 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6  Hi,  I use the Attachinvoice PDF Plugin and Hikashop Userpoints. When someone pay with userpoints you see this in the backend invoice. The userpoints don't appear on the PDF invoice. Is it possible to add it to the plugin or guide us how to add it.  Besides this i would like to show the total collected userpoints on the invoice, is this possible?  Thank you!")*

Hi,

The PDF invoice does display the user points used for the payment like in the backend invoice on my end.
It's done thanks to the code: Code:

if(!empty($order-&gt;additional)) { $exclude_additionnal = explode(',', $config-&gt;get('order_additional_hide', '')); foreach($order-&gt;additional as $additional) { if(in_array(@$additional-&gt;name, $exclude_additionnal)) continue; echo '&lt;tr&gt;&lt;td colspan="3" class="newarea"&gt;'. JText::_($additional-&gt;order_product_name).'&lt;/td&gt;&lt;td class="price"&gt;'; if(!empty($additional-&gt;order_product_price) &#124;&#124; empty($additionaltionnal-&gt;order_product_options)) { if($config-&gt;get('price_with_tax')){ echo $currencyHelper-&gt;format($additional-&gt;order_product_price+@$additional-&gt;order_product_tax, $order-&gt;order_currency_id); }else{ echo $currencyHelper-&gt;format($additional-&gt;order_product_price, $order-&gt;order_currency_id); } } else { echo $additional-&gt;order_product_options; } echo '&lt;/td&gt;&lt;/tr&gt;'; } }

in the file plugins/hikashop/attachinvoice/attachinvoice/invoice.php
So make sure that you have that code in your PDF invoice file. If you do then either we're talking about something else or you're in a particular case where it's not working properly. So please provide a screenshot of the PDF invoice and of the backend invoice so that we can see the difference.

Regarding the collected amount of points, you should be able to find them in the variable $order-&gt;order_payment_params-&gt;userpoints-&gt;earn_points in that file. so you could just echo it there.

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

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

Less More

- Posts: 224
- Thank you received: 10
-
-
- [](http://www.joomill.nl)
-

10 years 1 month ago [\#251802](#251802) by [Joomill](/forum/user/33738-joomill "View Joomill's Profile")  Replied by *[Joomill](/forum/user/33738-joomill "View Joomill's Profile")* on topic *[PDF Plugin - Userpoints](/forum/35-orders-management/886703-pdf-plugin-userpoints#251802 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6  Hi,  I use the Attachinvoice PDF Plugin and Hikashop Userpoints. When someone pay with userpoints you see this in the backend invoice. The userpoints don't appear on the PDF invoice. Is it possible to add it to the plugin or guide us how to add it.  Besides this i would like to show the total collected userpoints on the invoice, is this possible?  Thank you!")*

I checked it and the code is indeed in the invoice.php

hereby the screenshots

####  Attachment not found

####  Attachment not found

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NjcwMy1wZGYtcGx1Z2luLXVzZXJwb2ludHM/dG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

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

10 years 1 month ago [\#251895](#251895) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PDF Plugin - Userpoints](/forum/35-orders-management/886703-pdf-plugin-userpoints#251895 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6  Hi,  I use the Attachinvoice PDF Plugin and Hikashop Userpoints. When someone pay with userpoints you see this in the backend invoice. The userpoints don't appear on the PDF invoice. Is it possible to add it to the plugin or guide us how to add it.  Besides this i would like to show the total collected userpoints on the invoice, is this possible?  Thank you!")*

Hi,

I'm not able to reproduce the problem. Do you have it displaying properly if you deactivate the PDF plugin ?
Also, It seems that you customized the invoice.php
Did you make an override of the file ? In that case, you would need to look for the code of my previous message in the override invoice.php file and not the default one.

If that doesn't help either, then we'll have to have a FTP and backend access in order to look deeper into it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NjcwMy1wZGYtcGx1Z2luLXVzZXJwb2ludHM/dG1wbD1tYXJrZG93bg==) 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.048 seconds

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