<?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 : &quot;Add to Cart&quot; problem</title>
  <link>https://forum.productcart.com/</link>
  <description><![CDATA[This is an XML content feed of; ProductCart Shopping Cart Software Forums : Using ProductCart : &quot;Add to Cart&quot; problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 10 Apr 2026 18:44:57 +0000</pubDate>
  <lastBuildDate>Wed, 28 Apr 2010 16:00:27 +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=3595</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[&quot;Add to Cart&quot; problem : That surly did it. Thanks for...]]></title>
   <link>https://forum.productcart.com/add-to-cart-problem_topic3595_post14170.html#14170</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=4">katharina</a><br /><strong>Subject:</strong> 3595<br /><strong>Posted:</strong> 28-April-2010 at 4:00pm<br /><br />That surly did it.&nbsp; Thanks for the fast help.&nbsp; <br><br>]]>
   </description>
   <pubDate>Wed, 28 Apr 2010 16:00:27 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/add-to-cart-problem_topic3595_post14170.html#14170</guid>
  </item> 
  <item>
   <title><![CDATA[&quot;Add to Cart&quot; problem : Your missing the closing tag on...]]></title>
   <link>https://forum.productcart.com/add-to-cart-problem_topic3595_post14168.html#14168</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=213">Matt</a><br /><strong>Subject:</strong> 3595<br /><strong>Posted:</strong> 28-April-2010 at 3:51pm<br /><br />Your missing the closing tag on the link (in red below)<br><br>&lt;% If pcf_AddToCart(pIdProduct)=True Then %&gt;&lt;a href="instPrd.asp?idproduct=&lt;%=pIdProduct%&gt;"&gt;&lt;img src="&lt;%=rslayout("add2")%&gt;" alt="&lt;%=dictLanguage.Item(Session("language")&amp;"_altTag_2")&amp; pDescription %&gt;"&gt;&lt;/a&gt;&lt;/p&gt;<br>&lt;% Else %&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p class="pcShowProductLink"&gt;&lt;a href="viewPrd.asp?idproduct=&lt;%=pIdProduct%&gt;&amp;idcategory=&lt;%=pIdCategory%&gt;"<font color="#ff0000">&gt;</font> &lt;img src="&lt;%=rslayout("add2")%&gt;" alt="&lt;%=dictLanguage.Item(Session("language")&amp;"_altTag_2")&amp; pDescription %&gt;"&gt;&lt;/a&gt;&lt;/p&gt;&nbsp;&nbsp;&nbsp;&nbsp; <br>&lt;% End If %&gt;&nbsp; <br>]]>
   </description>
   <pubDate>Wed, 28 Apr 2010 15:51:56 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/add-to-cart-problem_topic3595_post14168.html#14168</guid>
  </item> 
  <item>
   <title><![CDATA[&quot;Add to Cart&quot; problem : Just noticed that this code works...]]></title>
   <link>https://forum.productcart.com/add-to-cart-problem_topic3595_post14167.html#14167</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=4">katharina</a><br /><strong>Subject:</strong> 3595<br /><strong>Posted:</strong> 28-April-2010 at 3:43pm<br /><br />Just noticed that this code works only in FF, but not in IE.&nbsp; Any ideas?<br><a href="http://www.germanplaza.com/productcart/pc/viewCategories.asp?idCategory=297" target="_blank">http://www.germanplaza.com/productcart/pc/viewCategories.asp?idCategory=297</a><br>The idea is to have the add to cart on all products, even the apparel add ons.&nbsp; This is so the customer does not think an item is out of stock, because they do not see the add to cart button.&nbsp; Items without apparel add on will add the item directly to the cart, and the ones with apparel add on will go to the details page first.&nbsp; <br>Below is the code used:<br><br><b>Find:</b><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;% If pcf_AddToCart(pIdProduct)=True Then %&gt;&lt;p class="pcShowProductLink"&gt;&lt;a href="instPrd.asp?idproduct=&lt;%=pIdProduct%&gt;"&gt;&lt;img src="&lt;%=rslayout("add2")%&gt;" alt="&lt;%=dictLanguage.Item(Session("language")&amp;"_altTag_2")&amp; pDescription %&gt;"&gt;&lt;/a&gt;&lt;/p&gt;&lt;% End If %&gt;<br><br><b>Replace with:</b><br>&lt;% If pcf_AddToCart(pIdProduct)=True Then %&gt;&lt;a href="instPrd.asp?idproduct=&lt;%=pIdProduct%&gt;"&gt;&lt;img src="&lt;%=rslayout("add2")%&gt;" alt="&lt;%=dictLanguage.Item(Session("language")&amp;"_altTag_2")&amp; pDescription %&gt;"&gt;&lt;/a&gt;&lt;/p&gt;<br>&lt;% Else %&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p class="pcShowProductLink"&gt;&lt;a href="viewPrd.asp?idproduct=&lt;%=pIdProduct%&gt;&amp;idcategory=&lt;%=pIdCategory%&gt;" &lt;img src="&lt;%=rslayout("add2")%&gt;" alt="&lt;%=dictLanguage.Item(Session("language")&amp;"_altTag_2")&amp; pDescription %&gt;"&gt;&lt;/a&gt;&lt;/p&gt;&nbsp;&nbsp;&nbsp;&nbsp; <br>&lt;% End If %&gt;&nbsp; <br><br>Katharina<br>]]>
   </description>
   <pubDate>Wed, 28 Apr 2010 15:43:04 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/add-to-cart-problem_topic3595_post14167.html#14167</guid>
  </item> 
  <item>
   <title><![CDATA[&quot;Add to Cart&quot; problem : Matt, I leave it up to you guys...]]></title>
   <link>https://forum.productcart.com/add-to-cart-problem_topic3595_post13916.html#13916</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=4">katharina</a><br /><strong>Subject:</strong> 3595<br /><strong>Posted:</strong> 07-April-2010 at 4:54pm<br /><br />Matt, I leave it up to you guys to post it into the WIKI.&nbsp; I think a lot of PC users will like this simple adjustment.&nbsp; Besides, you are the one that posted the original fix.&nbsp; I just tweaked it a little.&nbsp; Thanks for pointing me into the right direction if the first place.&nbsp; I'm just so happy right now, and no more dump calls or emails asking when the items are back in stock.&nbsp; Crazy that a little visual missing image can cause so much confusion among shoppers. &nbsp;]]>
   </description>
   <pubDate>Wed, 07 Apr 2010 16:54:12 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/add-to-cart-problem_topic3595_post13916.html#13916</guid>
  </item> 
  <item>
   <title><![CDATA[&quot;Add to Cart&quot; problem : I should have clarified the code...]]></title>
   <link>https://forum.productcart.com/add-to-cart-problem_topic3595_post13915.html#13915</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=213">Matt</a><br /><strong>Subject:</strong> 3595<br /><strong>Posted:</strong> 07-April-2010 at 4:31pm<br /><br />I should have clarified the code I posted was for v4.&nbsp; You did good adjusting it for v3.&nbsp; Just note it will need updated for the SEO module (for anyone using that)]]>
   </description>
   <pubDate>Wed, 07 Apr 2010 16:31:32 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/add-to-cart-problem_topic3595_post13915.html#13915</guid>
  </item> 
  <item>
   <title><![CDATA[&quot;Add to Cart&quot; problem : Well, that is way beyond my ASP...]]></title>
   <link>https://forum.productcart.com/add-to-cart-problem_topic3595_post13914.html#13914</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=4">katharina</a><br /><strong>Subject:</strong> 3595<br /><strong>Posted:</strong> 07-April-2010 at 4:26pm<br /><br />Well, that is way beyond my ASP knowledge.&nbsp; Newer learned ASP, just C over 15 years ago.&nbsp; I just looked at the code in the pcShowProductH.asp file you mentioned and kind of copied it.&nbsp;&nbsp; Simply tried to make sense out of what I saw.&nbsp; It's version 3.51.&nbsp; Perhaps someone else can give a better code segment.&nbsp; For now I'm happy, because there is no fake button which returned be back to the category.&nbsp; Which makes the customer wonder what is going on. &nbsp; Now it goes to the product details page, and gives the apparel choices.&nbsp; It looks better that way on the site, and I don't get confused customers.]]>
   </description>
   <pubDate>Wed, 07 Apr 2010 16:26:19 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/add-to-cart-problem_topic3595_post13914.html#13914</guid>
  </item> 
  <item>
   <title><![CDATA[&quot;Add to Cart&quot; problem : Hi Katharina,The code I posted...]]></title>
   <link>https://forum.productcart.com/add-to-cart-problem_topic3595_post13913.html#13913</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=213">Matt</a><br /><strong>Subject:</strong> 3595<br /><strong>Posted:</strong> 07-April-2010 at 4:20pm<br /><br />Hi Katharina,<br><br>The code I posted works on our v4 SP3 demo store.&nbsp; You replaced the product details variable with the hard coded page name.&nbsp; It is fine, but it will not work with the SEO module.<br>]]>
   </description>
   <pubDate>Wed, 07 Apr 2010 16:20:18 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/add-to-cart-problem_topic3595_post13913.html#13913</guid>
  </item> 
  <item>
   <title><![CDATA[&quot;Add to Cart&quot; problem : Matt, thanks for the code. It...]]></title>
   <link>https://forum.productcart.com/add-to-cart-problem_topic3595_post13912.html#13912</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=4">katharina</a><br /><strong>Subject:</strong> 3595<br /><strong>Posted:</strong> 07-April-2010 at 4:14pm<br /><br />Matt, thanks for the code.&nbsp; It was almost right.&nbsp; I did change it a little bit, and it works.&nbsp; That's from someone who does not know ASP.&nbsp; LOL&nbsp; So now when you have apparel add one products you will see a link from the "Add to cart" image to the product details page.&nbsp; That will fix the issue of customers thinking the items are out of stock, since it shows an add to cart button.&nbsp; Can someone please confirm that the code is correct from it's syntax.&nbsp; It does work so I think it is ok.<br><br>However, the general idea is to add an "Else" statement.&nbsp; Here is an example using the horizontal product view "pcShowProductH.asp".<br><br><b>Find:</b><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;% If pcf_AddToCart(pIdProduct)=True Then %&gt;&lt;p class="pcShowProductLink"&gt;&lt;a href="instPrd.asp?idproduct=&lt;%=pIdProduct%&gt;"&gt;&lt;img src="&lt;%=rslayout("add2")%&gt;" alt="&lt;%=dictLanguage.Item(Session("language")&amp;"_altTag_2")&amp; pDescription %&gt;"&gt;&lt;/a&gt;&lt;/p&gt;&lt;% End If %&gt;<br><br><b>Replace with:</b><br>&lt;% If pcf_AddToCart(pIdProduct)=True Then %&gt;&lt;a href="instPrd.asp?idproduct=&lt;%=pIdProduct%&gt;"&gt;&lt;img src="&lt;%=rslayout("add2")%&gt;" alt="&lt;%=dictLanguage.Item(Session("language")&amp;"_altTag_2")&amp; pDescription %&gt;"&gt;&lt;/a&gt;&lt;/p&gt;<br>&lt;% Else %&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p class="pcShowProductLink"&gt;&lt;a href="viewPrd.asp?idproduct=&lt;%=pIdProduct%&gt;&amp;idcategory=&lt;%=pIdCategory%&gt;" &lt;img src="&lt;%=rslayout("add2")%&gt;" alt="&lt;%=dictLanguage.Item(Session("language")&amp;"_altTag_2")&amp; pDescription %&gt;"&gt;&lt;/a&gt;&lt;/p&gt;&nbsp;&nbsp;&nbsp;&nbsp; <br>&lt;% End If %&gt;&nbsp; <br>]]>
   </description>
   <pubDate>Wed, 07 Apr 2010 16:14:54 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/add-to-cart-problem_topic3595_post13912.html#13912</guid>
  </item> 
  <item>
   <title><![CDATA[&quot;Add to Cart&quot; problem : &amp;#034;add to cart&amp;#034; linked...]]></title>
   <link>https://forum.productcart.com/add-to-cart-problem_topic3595_post13911.html#13911</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1542">joshs</a><br /><strong>Subject:</strong> 3595<br /><strong>Posted:</strong> 07-April-2010 at 3:53pm<br /><br />"add to cart" linked to the viewprd.asp instead of the instprd.asp.<br /><br />Fakie because the customer assumes it will function like the rest of the add to cart buttons.]]>
   </description>
   <pubDate>Wed, 07 Apr 2010 15:53:05 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/add-to-cart-problem_topic3595_post13911.html#13911</guid>
  </item> 
  <item>
   <title><![CDATA[&quot;Add to Cart&quot; problem : I guess one that links you to...]]></title>
   <link>https://forum.productcart.com/add-to-cart-problem_topic3595_post13910.html#13910</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=4">katharina</a><br /><strong>Subject:</strong> 3595<br /><strong>Posted:</strong> 07-April-2010 at 3:52pm<br /><br />I guess one that links you to the product details page.&nbsp; PC needs it.]]>
   </description>
   <pubDate>Wed, 07 Apr 2010 15:52:00 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/add-to-cart-problem_topic3595_post13910.html#13910</guid>
  </item> 
 </channel>
</rss>