Skip to main content

Pdf invoice plugin: doesn't show Payment Method

More
12 years 1 month ago #168643 by andreasuriani
-- HikaShop version -- : latest

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.

More
12 years 1 month ago #168693 by nicolas
Hi,

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.

More
12 years 1 month ago #168739 by andreasuriani
Works perfectly.

Thanks Nicolas.

Please Log in or Create an account to join the conversation.

Time to create page: 0.166 seconds
Powered by Kunena Forum