Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I've installed the following contribution (HTTP_REFERER Referral 1.3)(http://www.oscommerce.com/community/contributions,2203/page,2).

 

I keep getting the referrer as another page within the same OSC site. I'm using a plain HTML test page on one of the my other websites to link to this OSC site.

 

It's on 2.2ms2

 

I found the announcement thread but can't find a support thread. Anyone have experience with this? The important usage of this contrib is for a site I built for a client who needs to track number of products sold on his site for customers who arrived from a banner ad elsewhere. The banner ad site requires a portion of the sales.

 

thanks

  • 1 month later...
Posted

I got that installed too, but it won't save me any $url at all.

would also like to find the suport thread.

 

I want to start the "banner" service.

Posted (edited)

I now got it working for me, I can test it and in all cases I get a proper url stored.

I have not yet seen any orders made, but I know that now works.

 

I had to put the

  if (!$referer_url) {
if ($HTTP_SERVER_VARS['HTTP_REFERER']) {
	$referer_url = $HTTP_SERVER_VARS['HTTP_REFERER'];
  session_register('referer_url'); 
}
}

a couple of times more in the aplication top.

 

if .... session_start

code

elsif ... session_start

code

else .... session_start

code

 

now I always get the referer stored if present.

I personaly removed the if ($HTTP_SERVER_VARS['HTTP_REFERER']) {} signs so that if a referer is not present (opening from favorites, newsletter and so on) there is not a page from my own site stored instead.

 

I do see online users without a referer a lot though, but I am unable to reproduce this behaviour. I can only reproduce this on a single page opened from my favorites or from a newsletter (outlook).

 

ps. I am running on 2.2ms2 as well.

Edited by jdvb
  • 4 weeks later...
Posted
I now got it working for me, I can test it and in all cases I get a proper url stored.

I have not yet seen any orders made, but I know that now works.

 

I had to put the

  if (!$referer_url) {
if ($HTTP_SERVER_VARS['HTTP_REFERER']) {
	$referer_url = $HTTP_SERVER_VARS['HTTP_REFERER'];
  session_register('referer_url'); 
}
}

a couple of times more in the aplication top.

 

if .... session_start

code

elsif ... session_start

code

else .... session_start

code

 

now I always get the referer stored if present.

I personaly removed the if ($HTTP_SERVER_VARS['HTTP_REFERER']) {} signs so that if a referer is not present (opening from favorites, newsletter and so on) there is not a page from my own site stored instead.

 

I do see online users without a referer a lot though, but I am unable to reproduce this behaviour. I can only reproduce this on a single page opened from my favorites or from a newsletter (outlook).

 

ps. I am running on 2.2ms2 as well.

 

How did you do it exactly?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...