<?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 : Add item behind</title>
  <link>https://forum.productcart.com/</link>
  <description><![CDATA[This is an XML content feed of; ProductCart Shopping Cart Software Forums : Customizing ProductCart : Add item behind]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 12 Apr 2026 06:39:45 +0000</pubDate>
  <lastBuildDate>Sun, 27 Mar 2011 11:18:26 +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=4393</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[Add item behind : Okay, I pretty much figured it...]]></title>
   <link>https://forum.productcart.com/add-item-behind_topic4393_post17189.html#17189</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1991">SharpDataInc</a><br /><strong>Subject:</strong> 4393<br /><strong>Posted:</strong> 27-March-2011 at 11:18am<br /><br />Okay, I pretty much figured it out.&nbsp;I used some scripting to go through the radio&nbsp;controls to see which one is checked and set that to the correct input value.<DIV></DIV><DIV></DIV><P>&lt;!-- small--&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<BR>&lt;input name="idProduct1" type="hidden" value="2160"&gt;<BR>&lt;input name="QtyM2160" id="myProduct" type="hidden" value="1"&gt;<BR>&lt;input name="BTOTOTAL1" type="hidden" value="185"&gt;</P><P>&lt;!-- medium --&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<BR>&lt;input name="idProduct2" type="hidden" value="2161"&gt;<BR>&lt;input name="QtyM2161" id="myProduct2" type="hidden" value="0"&gt;<BR>&lt;input name="BTOTOTAL2" type="hidden" value="185"&gt;</P><P>&lt;!-- large --&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<BR>&lt;input name="idProduct3" type="hidden" value="2162"&gt;<BR>&lt;input name="QtyM2162" id="myProduct3" type="hidden" value="0"&gt;<BR>&lt;input name="BTOTOTAL3" type="hidden" value="185"&gt;</P><P>&lt;!-- item to be added for a penny --&gt;<BR>&lt;input name="idProduct4" type="hidden" value="2245"&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<BR>&lt;input name="QtyM2245" type="hidden" value="1"&gt;<BR>&lt;input name="BTOTOTAL4" type="hidden" value="0.01"&gt;</P><DIV></DIV><DIV></DIV>The default is the small (its checked already), then if the user selects a different size the script assigns the 'true/false' to the correct input by the getElementByID code that the "onclick" for that particular radio button. It adds the item to be added for a penny for any size (as a promo), behind the scenes. Now, when should I use the pcCartArray, to see if the "promo" item was added already, before adding it? Should code be in the viewCart.asp module? I dont want to add it more than onces, AND it should be removed if none of the promo parent products are in the cart, ie - the small/med/large items.<DIV>&nbsp;</DIV><DIV>On another note, where is the session.timeout intiated and in which asp docs is it in. I read the documentation on it, but it doesnt specify which files this setting can be changed. </DIV><DIV><strong></strong>&nbsp;</DIV><DIV><strong>Individual Page</strong>. The amount of time after which a session is cleared can be altered by using the “session.timeout” variable. A proficient <ACR&#079;NYM title="Active  Pages">ASP</ACR&#079;NYM> programmer can help you edit this setting. Several pages in ProductCart use a higher session timeout setting by default (e.g. importing and exporting features). </DIV><DIV>&nbsp;</DIV><DIV>Thanks!</DIV><DIV>SDI</DIV>]]>
   </description>
   <pubDate>Sun, 27 Mar 2011 11:18:26 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/add-item-behind_topic4393_post17189.html#17189</guid>
  </item> 
  <item>
   <title><![CDATA[Add item behind : version 3.51 The merchant has...]]></title>
   <link>https://forum.productcart.com/add-item-behind_topic4393_post17186.html#17186</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1991">SharpDataInc</a><br /><strong>Subject:</strong> 4393<br /><strong>Posted:</strong> 27-March-2011 at 12:48am<br /><br /><DIV>version 3.51</DIV><DIV>The merchant has 1 item on a page with 3 radio buttons for small / med / large, and they all have a different ID numbers and SKU. I want to add a completely different item to the cart when they add any one of these items. So I tried the code for adding multiple items and it seems the ID numbers (in the ex) match the input names. Your example shows 1 product being added "behind the scenes", but how do you do say 3 or 4? When the radio button is clicked it returns a number to the input as its value from script. But then it will no work if it returns something different than the "name" of the input. So...</DIV><DIV>&nbsp;</DIV><DIV>&lt;input name="idProduct1" type="hidden" value="431"&gt;<BR>&lt;input name="QtyM431" type="text" value="1"&gt;</DIV><DIV>&nbsp;</DIV><DIV>If my value of 431 (small) &nbsp;is now 432 (med), it will not work because of the QtyM431 name. Can someone explain how this is suppose to work if my values get changed? Or maybe I am not understanding it.</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV><DIV>SDI</DIV>]]>
   </description>
   <pubDate>Sun, 27 Mar 2011 00:48:29 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/add-item-behind_topic4393_post17186.html#17186</guid>
  </item> 
 </channel>
</rss>