Display User ID

  • Posts: 137
  • Thank you received: 2
13 years 8 months ago #10809

Hi!

I would like to display the customer ID = Hikashop UserID in the confirmation mail sent to the customer and also in the account administration on every order. How is this possible?

Best regards

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #10811

You can edit the emails via the menu System->Emails, there you can add something like this:
<?php echo "Your id: ".$data->order_user_id; ?>

You can edit the file form of the view order via the menu Display->Views and add something like this:
<?php echo "User id: ".$this->order->order_user_id; ?>
It's strange that you're asking because this id is already displayed in the order details page on the back end...

Last edit: 13 years 8 months ago by nicolas.

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

  • Posts: 137
  • Thank you received: 2
13 years 8 months ago #10820

Because we would like that the customers knows his ID, if we have to handle problems with a product or a payment.

To help others: for the view its

<?php echo "User id: ".$this->order->order_user_id; ?>

and not
<?php echo "User id: ".$this->order->customer->user_id; ?>

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #10841

I've changed the code in my message. Thanks.

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

  • Posts: 137
  • Thank you received: 2
13 years 8 months ago #11404

Is it possible to start the internal hikashop user ID from 1000 and not from 1?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #11417

Yes. You need to go in your phpmyadmin and change the auto increment value of the jos_hikashop_user table:
ALTER TABLE jos_hikashop_user AUTO_INCREMENT = 1000;

Then, new users will have their ID starting from 1000 and not 1

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

Time to create page: 0.060 seconds
Powered by Kunena Forum