Jump to content


Photo

Conditionnal Visitor Group relying on referrer


  • Please log in to reply
No replies to this topic

#1 lemrao

lemrao

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 01 December 2016 - 04:36 PM

Hi,

 

My shop is currently running on 1.6.0.14 and I'd like to set a condition in order to assign a visitor (with a specific referring url) to another group than built-in visitor group. Indeed, I want these visitors to see immediately the discount price they can get by visiting my store if they come from a specific website.   

 

I know the built-in visitor group rely on PS_UNIDENTIFIED_GROUP directive.

 

I typed "grep -R PS_UNIDENTIFIED_GROUP" on my webserver and found quite many files.

 

Therefore, I don't know where to add my condition based on $_SERVER['HTTP_REFERER'] in order to change the visitor group for these users.

 

 

Thank's in advance for support.

 

Have a good day !



looking for the best presta addons with outstanding support? check this: PrestaShop Modules



IPB Skin By Virteq