Magento Forum

   
[resolved] Page Referrer equivalent to $_SERVER[’HTTP_REFERER’]
 
darryla
Member
 
Total Posts:  52
Joined:  2008-07-08
 

Hi,

I am creating a phtml home page and I am trying to display certain products on the home page based on the Google search which brought them there but in order to know the search term I need the HTTP referrer but using $_SERVER[’HTTP_REFERER’] throws an error.

Is there a function I can call in a .phtml file in Magento that will give me this value?

Thanks in advance smile

Update: resolved, rather silly omission of isset(), caused error if no referrer (dumb, I know)

 
Magento Community Magento Community
Magento Community
Magento Community
 
darryla
Member
 
Total Posts:  52
Joined:  2008-07-08
 

Anyone? :D

 
Magento Community Magento Community
Magento Community
Magento Community
 
Xplora
Jr. Member
 
Avatar
Total Posts:  10
Joined:  2009-02-07
Barcelona
 

Hello,
I have the same problem. Did you solve it?
Thank you!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top