<?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 : Customer Login/ Affiliate Login code block</title>
  <link>https://forum.productcart.com/</link>
  <description><![CDATA[This is an XML content feed of; ProductCart Shopping Cart Software Forums : Customizing ProductCart : Customer Login/ Affiliate Login code block]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 12 Apr 2026 14:40:43 +0000</pubDate>
  <lastBuildDate>Mon, 19 May 2008 18:08:13 +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=1637</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[Customer Login/ Affiliate Login code block :  Hi, My immediate thought is...]]></title>
   <link>https://forum.productcart.com/customer-login-affiliate-login-code-block_topic1637_post5104.html#5104</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=303">Hamish</a><br /><strong>Subject:</strong> 1637<br /><strong>Posted:</strong> 19-May-2008 at 6:08pm<br /><br />Hi,<br>&nbsp;&nbsp; My immediate thought is that - as you KNOW you have affiliates some of this code is unnecessary.<br><br>You should be able to drop :<br><pre ="BBcode">&lt;%<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'START Affiliate login if there are any affiliates<br>&nbsp;&nbsp;&nbsp;&nbsp; sdquery="SELECT idAffiliate FROM affiliates"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set rs=conlayout.execute(sdquery)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iRecordCount = 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do While not rs.EOF<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iRecordCount = iRecordCount + 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rs.MoveNext<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loop<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if iRecordCount &gt; 1 then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;%&gt;</pre>and the final <br><pre ="BBcode">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% end if %&gt;</pre><br>It shouldn't make any difference really, although removing loops is always good from an efficiency point of view <img src="https://forum.productcart.com/smileys/smiley1.gif" border="0" alt="Smile" /><br>Of course - that doesn't explain why you not getting the affiliate login&nbsp; showing up - have you got any affiliates set up on your store?&nbsp;  <br><br>]]>
   </description>
   <pubDate>Mon, 19 May 2008 18:08:13 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/customer-login-affiliate-login-code-block_topic1637_post5104.html#5104</guid>
  </item> 
  <item>
   <title><![CDATA[Customer Login/ Affiliate Login code block : I&amp;#039;m using some stock code...]]></title>
   <link>https://forum.productcart.com/customer-login-affiliate-login-code-block_topic1637_post5103.html#5103</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1117">inetbizo</a><br /><strong>Subject:</strong> 1637<br /><strong>Posted:</strong> 19-May-2008 at 5:55pm<br /><br /><P>I'm using some stock code here to produce the login box. The customer login shows up just fine, but the Affiliate Login/Register does not.<table width="99%"><tr><td><pre class="BBcode">&lt;!-- START Logins --&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id="pcCustomerLogin"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h3&gt;Customer Account:&lt;/h3&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;%<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' If the customer is not logged in<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' show a link to the registration page.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if session("idCustomer")="0" or session("idCustomer")="" then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;%&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href="custPref.asp"&gt;Register/Login&lt;/a&gt;&lt;/li&gt;<BR>&lt;% else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' Otherwise show the customer service links&nbsp;%&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href="/store/pc/custPref.asp"&gt;Account Home&lt;/a&gt;&lt;/li&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href="/store/pc/CustviewPast.asp"&gt;Previous Orders&lt;/a&gt;&lt;/li&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href="/store/pc/login.asp?lmode=1"&gt;Billing Address&lt;/a&gt;&lt;/li&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href="/store/pc/CustSAmanage.asp"&gt;Shipping Addresses&lt;/a&gt;&lt;/li&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;%<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' If the Wish List feature is active, show a link to it<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (scWL="-1") or ((scBTO=1) and (iBTOQuote=1)) then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;%&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href="/store/pc/Custquotesview.asp"&gt;Saved Products&lt;/a&gt;&lt;/li&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% end if %&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href="/store/pc/CustLO.asp"&gt;Log Out&lt;/a&gt;&lt;/li&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% end if %&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;%<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'START Affiliate login if there are any affiliates<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sdquery="SELECT idAffiliate FROM affiliates"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set rs=conlayout.execute(sdquery)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iRecordCount = 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do While not rs.EOF<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iRecordCount = iRecordCount + 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rs.MoveNext<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loop<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if iRecordCount &gt; 1 then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;%&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id="pcAffiliateLogin"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h3&gt;Affiliate Account:&lt;/h3&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% if session("pc_IDAffiliate")="0" or session("pc_IDAffiliate")="" then %&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href="AffiliateLogin.asp"&gt;Register/Login&lt;/a&gt;&lt;/li&gt;<BR>&lt;% else %&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href="AffiliateMain.asp"&gt;Account Home&lt;/a&gt;&lt;/li&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href="Affgenlinks.asp"&gt;Generate Links&lt;/a&gt;&lt;/li&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href="pcmodAffa.asp"&gt;Account Details&lt;/a&gt;&lt;/li&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href="AffCommissions.asp"&gt;View Commissions&lt;/a&gt;&lt;/li&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href="AffLO.asp"&gt;Log Out&lt;/a&gt;&lt;/li&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;%' End affiliate links<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if %&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% end if %&gt;</pre></td></tr></table></P>]]>
   </description>
   <pubDate>Mon, 19 May 2008 17:55:18 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/customer-login-affiliate-login-code-block_topic1637_post5103.html#5103</guid>
  </item> 
 </channel>
</rss>