Get payment image

  • Posts: 726
  • Thank you received: 54
  • Hikashop Business
4 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: 61867
  • Thank you received: 8801
  • MODERATOR
4 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.066 seconds
Powered by Kunena Forum