<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>ProductCart Shopping Cart Software Forums : Need help with displaying Affiliate name on screen</title>
  <link>https://forum.productcart.com/</link>
  <description><![CDATA[This is an XML content feed of; ProductCart Shopping Cart Software Forums : Customizing ProductCart : Need help with displaying Affiliate name on screen]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 13 Apr 2026 17:32:10 +0000</pubDate>
  <lastBuildDate>Tue, 21 Apr 2009 10:56:18 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.productcart.com/RSS_post_feed.asp?TID=2616</WebWizForums:feedURL>
  <image>
   <title><![CDATA[ProductCart Shopping Cart Software Forums]]></title>
   <url>https://forum.productcart.com/forum_images/pc_logo_50.png</url>
   <link>https://forum.productcart.com/</link>
  </image>
  <item>
   <title><![CDATA[Need help with displaying Affiliate name on screen : I solved it  (sort of )I was not...]]></title>
   <link>https://forum.productcart.com/need-help-with-displaying-affiliate-name-on-screen_topic2616_post9677.html#9677</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1372">Andy @ Landmarq</a><br /><strong>Subject:</strong> 2616<br /><strong>Posted:</strong> 21-April-2009 at 10:56am<br /><br />I solved it <img src="https://forum.productcart.com/smileys/smiley1.gif" border="0" alt="Smile" /> (sort of <img src="https://forum.productcart.com/smileys/smiley2.gif" border="0" alt="Wink" />)<br><br>I was not winning with the whole sql query thing (need to learn more on that front) but had a flash on inspiration that allows me a touch more flexability albeit with a touch more work.<br><br>In my header I now have<br><br>&nbsp;&nbsp;&nbsp; &nbsp; &lt;% if session("idAffiliate")&gt;1 then %&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp; &lt;%<br>&nbsp;&nbsp;&nbsp; &nbsp; Server.Execute("aff/"&amp;session("idAffiliate")&amp;".asp")<br>&nbsp;&nbsp;&nbsp; &nbsp; %&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp; &lt;% else %&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;% response.write "&lt;h2&gt;&amp;nbsp;&amp;nbsp;&lt;/h2&gt;" %&gt;&nbsp;&nbsp; <br>&nbsp; &lt;% end if %&gt;<br><br>(on the line with &amp;nbsp;&amp;nbsp; you can have a message shown when there is no affiliate set)<br><br>Then in my subdir aff/ i have files simply named 2.asp, 3.asp etc . . . which might contain<br><br>&lt;% response.write "&lt;h2&gt;In partnership with XYZ Computers&lt;/h2&gt;" %&gt;<br><br>or<br><br>&lt;% response.write "&lt;h2&gt;&lt;span style=""vertical-align: bottom;""&gt;In partnership with&amp;nbsp;&amp;nbsp;&lt;img style=""vertical-align: bottom;"" src=images/login.gif&gt;&lt;/span&gt;&lt;/h2&gt;" %&gt;<br><br>So when an affilate link is parsed the idaffilate becomes the filename and can display either a simple line of text or text/image or anything I fancy in the called .asp file. It work just fine and save a lot of extra database calls on every page load.<br><br>If anyone wants to use this code please feel free to help yourself <img src="https://forum.productcart.com/smileys/smiley1.gif" border="0" alt="Smile" /> the only thing I found is that if you want to test different affiliates you have to clear the cookies and restart IE or clear private data and select cookies in Firefox other wise the first affiliate used will override all subsequent affiliates. There is meant to be an option in the settings to change this behaviour but could not see it on 3.51<br>]]>
   </description>
   <pubDate>Tue, 21 Apr 2009 10:56:18 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/need-help-with-displaying-affiliate-name-on-screen_topic2616_post9677.html#9677</guid>
  </item> 
  <item>
   <title><![CDATA[Need help with displaying Affiliate name on screen : Hi, ProductCart automatically...]]></title>
   <link>https://forum.productcart.com/need-help-with-displaying-affiliate-name-on-screen_topic2616_post9629.html#9629</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=303">Hamish</a><br /><strong>Subject:</strong> 2616<br /><strong>Posted:</strong> 16-April-2009 at 2:50am<br /><br />Hi,<br>&nbsp;&nbsp; ProductCart automatically retrieves the affiliateid if there is one stored in the cookie in code within pc/pcStartSession.asp so you should be able to access it just about everywhere with: session("idAffiliate")&nbsp; - basically combine your two posts.&nbsp; <br>You should also exclude affiliateid=1<br>&nbsp;<br>]]>
   </description>
   <pubDate>Thu, 16 Apr 2009 02:50:16 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/need-help-with-displaying-affiliate-name-on-screen_topic2616_post9629.html#9629</guid>
  </item> 
  <item>
   <title><![CDATA[Need help with displaying Affiliate name on screen : My suggestion is   You need...]]></title>
   <link>https://forum.productcart.com/need-help-with-displaying-affiliate-name-on-screen_topic2616_post9626.html#9626</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1363">RUOnTheNet</a><br /><strong>Subject:</strong> 2616<br /><strong>Posted:</strong> 16-April-2009 at 12:44am<br /><br />My suggestion is <DIV>&nbsp;</DIV><DIV>You need to retrieve the&nbsp;Aff ID from the cookie on the&nbsp;visitor's site&nbsp;if product cart uses a cookie for tracking affiliates.&nbsp;&nbsp; ( we use a third party aff program, but asp based&nbsp; and that is how we do this. ) </DIV><DIV>&nbsp;</DIV><DIV>What you need to do is get the Aff ID from the cookie, then have it passed to your page as a string etc. ... so the idaffiliate="string_COOKIE" .. </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 16 Apr 2009 00:44:04 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/need-help-with-displaying-affiliate-name-on-screen_topic2616_post9626.html#9626</guid>
  </item> 
  <item>
   <title><![CDATA[Need help with displaying Affiliate name on screen :  Being the SQL thickie that I...]]></title>
   <link>https://forum.productcart.com/need-help-with-displaying-affiliate-name-on-screen_topic2616_post9485.html#9485</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1372">Andy @ Landmarq</a><br /><strong>Subject:</strong> 2616<br /><strong>Posted:</strong> 02-April-2009 at 11:44am<br /><br />Being the SQL thickie that I am I have got to this, I am manually using affiliate 2 as it's a test one but I will need to find how to detect which idaffiliate is being used on the link I guess I'm still missing something as the IF statement shows the first line but the company is not being shown. Any more pointers to get me on track would be great :)<br><br>&lt;!--#include virtual="shop/includes/opendb.asp"--&gt;<br>&lt;%<br>call openDB()<br>query="SELECT idaffiliate, affiliatecompany FROM affiliates WHERE idaffiliate=2"<br>set rstemp=conntemp.execute(query)<br>session("affid")=rstemp("idAffiliate")<br>Session("affcomp")=rstemp("affilatecompany")<br>%&gt;<br>&nbsp;&nbsp;&nbsp; &lt;div id="logo"&gt;<br>&nbsp; &nbsp;&nbsp;&nbsp; &lt;h1&gt;&lt;img src=images2/shutlogo.png&gt;&lt;/h1&gt;<br>&nbsp; &lt;% if session("affid")&lt;&gt;"0" then %&gt;<br>&nbsp;&nbsp;&nbsp; &lt;% response.write "&lt;h2&gt;&amp;nbsp;&amp;nbsp;In partnership with Landmarq Technologies Limited &amp; " &amp; session("affcomp") &amp; "&lt;/h2&gt;" %&gt;<br>&nbsp; &lt;% else %&gt;<br>&nbsp;&nbsp;&nbsp; &lt;% response.write "&lt;h2&gt;&amp;nbsp;&amp;nbsp;In partnership with Landmarq Technologies Limited&lt;/h2&gt;" %&gt;<br>&nbsp; &lt;% end if %&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br><span style="font-size:10px"><br /><br />Edited by Andy @ Landmarq - 02-April-2009 at 11:45am</span>]]>
   </description>
   <pubDate>Thu, 02 Apr 2009 11:44:20 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/need-help-with-displaying-affiliate-name-on-screen_topic2616_post9485.html#9485</guid>
  </item> 
  <item>
   <title><![CDATA[Need help with displaying Affiliate name on screen : Hi Hamish,Thanks for the pointers...]]></title>
   <link>https://forum.productcart.com/need-help-with-displaying-affiliate-name-on-screen_topic2616_post9484.html#9484</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1372">Andy @ Landmarq</a><br /><strong>Subject:</strong> 2616<br /><strong>Posted:</strong> 02-April-2009 at 9:19am<br /><br />Hi Hamish,<br><br>Thanks for the pointers :)<br><br>I thought I might but did not have much luck intially will give it another whirl, I was using newaffa.asp as a reference point to get the table names.<br><br><br>]]>
   </description>
   <pubDate>Thu, 02 Apr 2009 09:19:48 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/need-help-with-displaying-affiliate-name-on-screen_topic2616_post9484.html#9484</guid>
  </item> 
  <item>
   <title><![CDATA[Need help with displaying Affiliate name on screen : Hi Andy, You will need to get...]]></title>
   <link>https://forum.productcart.com/need-help-with-displaying-affiliate-name-on-screen_topic2616_post9483.html#9483</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=303">Hamish</a><br /><strong>Subject:</strong> 2616<br /><strong>Posted:</strong> 02-April-2009 at 9:08am<br /><br />Hi Andy,<br>&nbsp;&nbsp;&nbsp;&nbsp; You will need to get the "affiliatecompany" from the "affiliates" table of the database with some SQL. See NewAffa.asp for the code that inserts it in the table. <br>]]>
   </description>
   <pubDate>Thu, 02 Apr 2009 09:08:52 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/need-help-with-displaying-affiliate-name-on-screen_topic2616_post9483.html#9483</guid>
  </item> 
  <item>
   <title><![CDATA[Need help with displaying Affiliate name on screen : Afternoon fellow &amp;#039;cartersI...]]></title>
   <link>https://forum.productcart.com/need-help-with-displaying-affiliate-name-on-screen_topic2616_post9482.html#9482</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1372">Andy @ Landmarq</a><br /><strong>Subject:</strong> 2616<br /><strong>Posted:</strong> 02-April-2009 at 8:55am<br /><br />Afternoon fellow 'carters<br><br>I am trying to set up a site for use with the affiliate feature but I want the Affilate company name to display when an affilate link is clicked.<br><br>The idea being if someone just arrives on out site it's says one message but if it's an affiliate link it will add their name to the end. I have been using the code below which is a modified version of how I display a logged in customers name on the screen on my main site but having trouble pinning down the fields needed for this to work.<br><br>&lt;% if session("IDAffiliate")&lt;&gt;"0" then %&gt;<br>&lt;% response.write "&lt;h2&gt;&amp;nbsp;&amp;nbsp;In partnership with Landmarq Technologies Limited &amp; " &amp; session("pcSFCompany") &amp; "&lt;/h2&gt;" %&gt;<br>&lt;% else %&gt;<br>&lt;% response.write "&lt;h2&gt;&amp;nbsp;&amp;nbsp;In partnership with Landmarq Technologies Limited&lt;/h2&gt;" %&gt;<br>&nbsp;&lt;% end if %&gt;<br><br>The IDAffiliate should be able to pick which affiliate is being used and then the company name gets displayed but I cannot get the company name to display or get it to properly detect the difference between a regular vist and an affiliate vist.<br><br>Any help on this would be great I'm pretty sure im on the right track but it's the fields tat need tweaking.<br><br>Thanks in advance for any replies :)<br>]]>
   </description>
   <pubDate>Thu, 02 Apr 2009 08:55:50 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/need-help-with-displaying-affiliate-name-on-screen_topic2616_post9482.html#9482</guid>
  </item> 
 </channel>
</rss>