Show Hikashop User ID on PDF attachinvoice

  • Posts: 43
  • Thank you received: 0
10 years 6 months ago #191161

-- url of the page with the problem -- : nordic-medical.com
-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6

Hi,

I'm trying to display Hikashop User ID. I've added <?php $user = hikashop_loadUser(true); echo $user->user_id; ?><br /> in show.php and the correct user ID is displayed in the back end. Using the same string in invoice.php echos a wrong number on the attached invoice. I've tried $this->order->order_user_id, but that doesn't return any value.

Any idea where I'm going wrong

Thanks,
David

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

  • Posts: 13201
  • Thank you received: 2322
10 years 5 months ago #191173

Hi,

Please do a var_dump($order); in order to see all the content of that $order PHP object and you should see the desired informations about the customer inside.

The following user(s) said Thank You: DavidThor

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

  • Posts: 43
  • Thank you received: 0
10 years 5 months ago #191246

Perfect! var_dump($order) showed that '$order->order_user_id' did the trick. Thank you!!

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

Time to create page: 0.066 seconds
Powered by Kunena Forum