Pdf invoice plugin: doesn't show Payment Method

  • Posts: 177
  • Thank you received: 1
10 years 3 months ago #168643

-- HikaShop version -- : latest

Hi All,

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

<?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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 3 months ago #168693

Hi,

Try to add this code before:

<?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.

  • Posts: 177
  • Thank you received: 1
10 years 3 months ago #168739

Works perfectly.

Thanks Nicolas.

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

Time to create page: 0.055 seconds
Powered by Kunena Forum