Get payment image

  • Posts: 1119
  • Thank you received: 114
6 years 11 months ago #283452

Hi,

How could i get payment image inside order/show.php?

Doing var_dump I see that shipping image is loaded but not payment.

Thanks

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
6 years 11 months ago #283485

Hi,

You'll have to load that yourself ith a MySQL query.
Something like that:

			$database = JFactory::getDBO();
			$query = 'SELECT * FROM ' . hikashop_table('payment') . ' WHERE payment_id = ' . (int)$this->element->order_payment_id;
			$database->setQuery($query);
			$this->element->payment = $database->loadObject();

The following user(s) said Thank You: kyratn

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

Time to create page: 0.057 seconds
Powered by Kunena Forum