Detect Affiliate

  • Posts: 44
  • Thank you received: 0
12 years 9 months ago #44558

I was wondering if there was a way to detect if the user has came in through an affiliate or not? In the code I mean.

Last edit: 12 years 9 months ago by mohamed.

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

  • Posts: 83103
  • Thank you received: 13418
  • MODERATOR
12 years 9 months ago #44731

Yes, if you load the current user information like that:
$user = hikashop_loadUser(true);

Then, you can know that like that:
if($user->user_partner_id){
//actions on your current page for users coming from partners
}

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

Time to create page: 0.054 seconds
Powered by Kunena Forum