mazgalici Posted June 7, 2015 Share Posted June 7, 2015 it possible to get the referer in the order templates? We basically would just like to know what domain a particular order is coming from so we can take particular actions. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted June 7, 2015 Share Posted June 7, 2015 you can use this: <? if (isset($_SERVER['HTTP_REFERER'])) { // check there was a referrer $uri = parse_url($_SERVER['HTTP_REFERER']); // use the parse_url() function to create an array containing information about the domain Echo $uri['host']; // echo the host } ?> along with this Action Hook to pass the domain name to your template files 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.