- Posts: 177
- Thank you received: 1
Pdf invoice plugin: doesn't show Payment Method
- andreasuriani
-
Topic Author
- Offline
Less
More
12 years 1 month ago #168643
by andreasuriani
Pdf invoice plugin: doesn't show Payment Method was created by andreasuriani
-- HikaShop version -- : latest
Hi All,
this code doesn't work. Nothing is showing in the pdf invoice.
Any Ideas?
Hi All,
this code doesn't work. Nothing is showing in the pdf invoice.
Code:
<?php
if (!empty($pluginsShipping))
echo JText::_('HIKASHOP_SHIPPING_METHOD').' : '.$pluginsShipping->getName($order->order_shipping_method, $order->order_shipping_id).'<br/>' ;
if(!empty($pluginsPayment))
echo JText::_('HIKASHOP_PAYMENT_METHOD').' : '.$pluginsPayment->getName($order->order_payment_method, $order->order_payment_id).'<br/>';
?>
Any Ideas?
Please Log in or Create an account to join the conversation.
12 years 1 month ago #168693
by nicolas
Replied by nicolas on topic Pdf invoice plugin: doesn't show Payment Method
Hi,
Try to add this code before:
Try to add this code before:
Code:
<?php if(!empty($order->order_payment_id)){
$pluginsPayment = hikashop_get('type.plugins');
$pluginsPayment->type='payment';
}
if(!empty($order->order_shipping_id)){
$pluginsShipping = hikashop_get('type.plugins');
$pluginsShipping->type='shipping';
} ?>
Please Log in or Create an account to join the conversation.
- andreasuriani
-
Topic Author
- Offline
Less
More
- Posts: 177
- Thank you received: 1
12 years 1 month ago #168739
by andreasuriani
Replied by andreasuriani on topic Pdf invoice plugin: doesn't show Payment Method
Works perfectly.
Thanks Nicolas.
Thanks Nicolas.
Please Log in or Create an account to join the conversation.
Time to create page: 0.166 seconds