Skip to main content

some keys in the hikashop user

More
14 years 3 months ago #55705 by mohamed
when I load the user using hikashop_loadUser(true) I get some keys such as
[user_partner_id] => 0
[user_partner_price] => 0.00000
which are always zero no matter if I came from an affiliate link so what do those do exactly.

Also is there a way to find out if the user came in through an affiliate in the at the shopping cart other than looking for the stored cookie?

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

More
14 years 3 months ago #55766 by nicolas
These options are used for affiliate users. For non affiliate users they are always set to 0. They have nothing to do with how the users came on the website.

Looking for the stored cookie is the way to go actually.

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

More
14 years 3 months ago #55816 by mohamed
ok about the stored cookie I get a letter and a number. so how does that relate to the ID of the affiliate. For the affiliate of ID 5 I get F5 written in the cookie, what do these represent and how can I get the real user ID that I can lookup in the database

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

More
14 years 3 months ago #55886 by nicolas
Remove all the letters and keep only the numbers and you will get the id of the user.

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

Time to create page: 0.222 seconds
Powered by Kunena Forum