Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Show Referrer Information on Order Details Page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 06-10-2007, 11:17 AM
 
chiactivate chiactivate is offline
 

Senior Member
  
Join Date: Feb 2007
Location: Canada
Posts: 148
 

Default Re: Show Referrer Information on Order Details Page

Thanks for this great tip!

I was looking for that too. I'll try the MOD asap.
__________________
www.ChiMassager.com
X-cart Version 4.44

www.SEOMarketing30days.com
--> Download FREE SEO marketing Ebook (valued $50)
Attract more visitors and sales with top 5 most powerful SEO marketing strategies. Converting visitors into buyers, not just traffic!
Reply With Quote
  #12  
Old 06-10-2007, 02:39 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Show Referrer Information on Order Details Page

May I suggest, if you ae using version 4.1.x, try this:

BEFORE:
Code:
{include file="main/subheader.tpl" title=$lng.lbl_products_info}
INSERT:
Code:
{if $usertype eq "A" or $usertype eq "P"} <table cellspacing="0" cellpadding="0" width="100%"> <tr> <td valign="top">{$lng.lbl_referred_by}</td> <td> {if $customer.referer} {$customer.referer} {else} {$lng.lbl_unknown} {/if} </td> </tr> <tr> <td colspan="2" valign="top" height="10">&nbsp;</td> </tr> </table> {/if}

I agree with QVS -- I like it on top of the page... One thing though -- for xhtml, you really MUST use lowercase tr and td tags if you want to validate.

This is confirmed good with 4.1.7
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote

The following user thanks carpeperdiem for this useful post:
donavichi (10-25-2009)
  #13  
Old 01-07-2009, 09:27 AM
 
sjrconsulting sjrconsulting is offline
 

Newbie
  
Join Date: Nov 2007
Posts: 9
 

Default Re: Show Referrer Information on Order Details Page

I see that the referer field stores the complete url.
( ie. http://www.domain.com/websitepage.php)

Can anyone shed some light on how to display just the Domain portion?
( ie. http://www.domain.com )


Thanks
Steve
__________________
X-Cart Gold: 4.1.9
PHP: 5.2.4
MySQL: 4.1.20
Apache/2.0.52
Reply With Quote
  #14  
Old 01-20-2009, 03:46 AM
 
microdaq microdaq is offline
 

Senior Member
  
Join Date: Jan 2006
Location: New Hampshire
Posts: 109
 

Default Re: Show Referrer Information on Order Details Page

Anybody Know how to show the Referrer on the Order Message Page. (Invoice page)?

I tried using $customer.referer but that did not work.

Ideas?


Steve
__________________
Steve J Racicot
X-Cart Consultant Version 4 and 5
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:26 AM.

   

 
X-Cart forums © 2001-2020