- Posts: 137
- Thank you received: 2
Display User ID
- emergentec
-
Topic Author
- Offline
Less
More
15 years 6 months ago #10809
by emergentec
Display User ID was created by emergentec
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
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.
15 years 6 months ago - 15 years 6 months ago #10811
by nicolas
Replied by nicolas on topic Re: Display User ID
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...
<?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: 15 years 6 months ago by nicolas.
Please Log in or Create an account to join the conversation.
- emergentec
-
Topic Author
- Offline
Less
More
- Posts: 137
- Thank you received: 2
15 years 6 months ago #10820
by emergentec
Replied by emergentec on topic Re: Display User ID
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
and not
To help others: for the view its
Code:
<?php echo "User id: ".$this->order->order_user_id; ?>
and not
Code:
<?php echo "User id: ".$this->order->customer->user_id; ?>
Please Log in or Create an account to join the conversation.
15 years 6 months ago #10841
by nicolas
Replied by nicolas on topic Re: Display User ID
I've changed the code in my message. Thanks.
Please Log in or Create an account to join the conversation.
- emergentec
-
Topic Author
- Offline
Less
More
- Posts: 137
- Thank you received: 2
15 years 6 months ago #11404
by emergentec
Replied by emergentec on topic Re: Display User ID
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.
15 years 6 months ago #11417
by nicolas
Replied by nicolas on topic Re: Display User ID
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
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.192 seconds