Get payment image

  • Posts: 843
  • Thank you received: 66
10 months 3 weeks 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: 63597
  • Thank you received: 9160
  • MODERATOR
10 months 3 weeks 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.069 seconds
Powered by Kunena Forum