Affiliation cookie

  • Posts: 46
  • Thank you received: 0
12 years 4 months ago #56805

For some reasons ... i want the affiliation process to work only once ... as a 'parrainge' thing see somewhere else in the forum ......
I thought that the easiest way to achieve that was to check with a plugin if the customer previously ordered something or not and delete the cookie if I need to ...
setcookie("hikashop_affiliate", "", -3600);
But I've got issues deleting the cookie ... any reasons for that ? something I'm doing wrong ?

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
12 years 4 months ago #56832

Try like that:
setcookie('hikashop_affiliate', '',0,'/');

The following user(s) said Thank You: ouebagency

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

  • Posts: 46
  • Thank you received: 0
12 years 4 months ago #57538

Thanks nicolas ... that's working fine ...

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

Time to create page: 0.055 seconds
Powered by Kunena Forum