payment_description on invoice ?

  • Posts: 41
  • Thank you received: 3
8 years 5 months ago #242760

-- url of the page with the problem -- : www.greenville.ag/shop
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1
-- Error-message(debug-mod must be tuned on) -- : How to show the field "payment_description" on the invoice

How to show the field "payment_description" on the invoice

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

  • Posts: 82865
  • Thank you received: 13373
  • MODERATOR
8 years 5 months ago #242782

Hi,

Are you using the PDF invoice plugin ?
When you say "invoice", are you talking about the invoice you can get in the backend, the one the customer can get in the frontend ? The order notifications ?

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

  • Posts: 41
  • Thank you received: 3
8 years 5 months ago #242804
Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
8 years 5 months ago #242808

Hello,
To do that the solution will be to directly edit the code of the "Invoice" file of the "Order" view of your back-end template via "Hikashop->Display->Views" and add your code just after these lines :

<?php if(!empty($this->payment)){
	echo JText::_('HIKASHOP_PAYMENT_METHOD').' : '.$this->payment->getName($this->order->order_payment_method,$this->order->order_payment_id);
}?>

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

  • Posts: 41
  • Thank you received: 3
8 years 5 months ago #242978

That is the question. What code exactly that I might get the contents of the table field "PAYMENT_DESCRIPTION" ?

.....$this->payment->getDescripion ...this function does not exist

Torsten.E

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

  • Posts: 12953
  • Thank you received: 1778
8 years 5 months ago #242985

Hello,

The solution can be to do an SQL request on the #_hikashop_payment table and retrieve the "payment_description" field of the row which have the payment id equals to : $this->order->order_payment_id

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

Time to create page: 0.083 seconds
Powered by Kunena Forum