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

#   Pdf invoice plugin: doesn't show Payment Method

##

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

Less More

- Posts: 177
- Thank you received: 1
-
-

12 years 3 months ago [\#168643](#168643) by [andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")  *[Pdf invoice plugin: doesn't show Payment Method](/forum/33-customers/870566-pdf-invoice-plugin-doesnt-show-payment-method#168643 "-- HikaShop version -- : latest  Hi All,  this code doesn't work. Nothing is showing in the pdf invoice.  Any Ideas?")* was created by *[andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")*

-- HikaShop version -- : latest

Hi All,

this code doesn't work. Nothing is showing in the pdf invoice.
Code:

&lt;?php if (!empty($pluginsShipping)) echo JText::_('HIKASHOP_SHIPPING_METHOD').' : '.$pluginsShipping-&gt;getName($order-&gt;order_shipping_method, $order-&gt;order_shipping_id).'&lt;br/&gt;' ; if(!empty($pluginsPayment)) echo JText::_('HIKASHOP_PAYMENT_METHOD').' : '.$pluginsPayment-&gt;getName($order-&gt;order_payment_method, $order-&gt;order_payment_id).'&lt;br/&gt;'; ?&gt;

Any Ideas?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzA1NjYtcGRmLWludm9pY2UtcGx1Z2luLWRvZXNudC1zaG93LXBheW1lbnQtbWV0aG9kP3RtcGw9bWFya2Rvd24=) 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: 86586
- Thank you received: 14325
-
-

12 years 3 months ago [\#168693](#168693) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Pdf invoice plugin: doesn't show Payment Method](/forum/33-customers/870566-pdf-invoice-plugin-doesnt-show-payment-method#168693 "-- HikaShop version -- : latest  Hi All,  this code doesn't work. Nothing is showing in the pdf invoice.  Any Ideas?")*

Hi,

Try to add this code before: Code:

&lt;?php if(!empty($order-&gt;order_payment_id)){ $pluginsPayment = hikashop_get('type.plugins'); $pluginsPayment-&gt;type='payment'; } if(!empty($order-&gt;order_shipping_id)){ $pluginsShipping = hikashop_get('type.plugins'); $pluginsShipping-&gt;type='shipping'; } ?&gt;

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

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

Less More

- Posts: 177
- Thank you received: 1
-
-

12 years 3 months ago [\#168739](#168739) by [andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")  Replied by *[andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")* on topic *[Pdf invoice plugin: doesn't show Payment Method](/forum/33-customers/870566-pdf-invoice-plugin-doesnt-show-payment-method#168739 "-- HikaShop version -- : latest  Hi All,  this code doesn't work. Nothing is showing in the pdf invoice.  Any Ideas?")*

Works perfectly.

Thanks Nicolas.

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

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