<?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 : pcCartArray</title>
  <link>https://forum.productcart.com/</link>
  <description><![CDATA[This is an XML content feed of; ProductCart Shopping Cart Software Forums : Using ProductCart : pcCartArray]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 11:56:36 +0000</pubDate>
  <lastBuildDate>Mon, 16 May 2011 16:24:45 +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=4485</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[pcCartArray : Actually in checkout.asp its: ...]]></title>
   <link>https://forum.productcart.com/pccartarray_topic4485_post17530.html#17530</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1991">SharpDataInc</a><br /><strong>Subject:</strong> 4485<br /><strong>Posted:</strong> 16-May-2011 at 4:24pm<br /><br />Actually in checkout.asp its:<br /><br />ppcCartIndex=Session("pcCartIndex")<br /><br />so,<br /><br />For f=1 To ppcCartIndex&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /> If InStr(pcCartArray(f,7), "PROMO") Then<br />&nbsp;&nbsp;&nbsp;pcCartArray(f,2) = 1<br /> End If<br />Next<br /><br />I am looping through and changing a quantity value to 1 in the pcCartArray. So "f" would be the current item in the cart item count from ppcCartIndex, then when I hit the item I want in the loop ("PROMO") SKU it should be able the change the quantity to 1. So I am not adding, I am editing a element value in the array.]]>
   </description>
   <pubDate>Mon, 16 May 2011 16:24:45 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/pccartarray_topic4485_post17530.html#17530</guid>
  </item> 
  <item>
   <title><![CDATA[pcCartArray : I&amp;#039;m not sure what exactly...]]></title>
   <link>https://forum.productcart.com/pccartarray_topic4485_post17528.html#17528</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1159">Brett</a><br /><strong>Subject:</strong> 4485<br /><strong>Posted:</strong> 16-May-2011 at 2:49pm<br /><br />I'm not sure what exactly you're asking here, but without looking too far into it I'd say that you need to change the "f" variable. I believe that's the one which holds the current item in the shopping cart array. Maybe try f+1? Or else see where f is being set and adjust your code accordingly.<br /><br />*edit*<br /><br />Oh just realized that already loops through all f values. I'd then suggest looking at ppcCartIndex or whatever that variable is that f is counting up to. I believe that variable determines how many items are in the cart, so if you want to add another one you'll probably have to increment that and then use the corresponding value to hold the new item in the array.<span style="font-size:10px"><br /><br />Edited by Brett - 16-May-2011 at 2:50pm</span>]]>
   </description>
   <pubDate>Mon, 16 May 2011 14:49:37 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/pccartarray_topic4485_post17528.html#17528</guid>
  </item> 
  <item>
   <title><![CDATA[pcCartArray : When tochange values in the pcCartArray...]]></title>
   <link>https://forum.productcart.com/pccartarray_topic4485_post17527.html#17527</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1991">SharpDataInc</a><br /><strong>Subject:</strong> 4485<br /><strong>Posted:</strong> 16-May-2011 at 9:08am<br /><br /><P>When to&nbsp;change values in the pcCartArray at checkout (ver 3.51). I have a customer who has a promotion when purchasing an item it adds another to the cart on the fly. Mind you they are usign HTML as the storefront (how silly it is, but its what they want), so I add the item using the multiple item code and all is good. However, if they could get multiple items in the cart for the "promo" item, which is a no no. I want to edit the pcCartArray variable array and change the item quantity to 1 in the checkout.asp. </P><DIV>So&nbsp;its coded to&nbsp;loop through the items in the array and check for a InStr on the word "PROMO" in the product part number (element 7) and change the quantity value to 1.</DIV><DIV>&nbsp;</DIV><DIV>I have this at line 211 (after it makes sure there is items in the cart):</DIV><DIV>&nbsp;</DIV><DIV>pcCartArray(f,7) would have a value of "CSLT-1006PROMO" and quantity&nbsp;would be changed to 1.</DIV><DIV>&nbsp;</DIV><DIV>For f=1 To ppcCartIndex&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;If InStr(pcCartArray(f,7), "PROMO") Then<BR>&nbsp;&nbsp;&nbsp;pcCartArray(f,2) = 1<BR>&nbsp;End If<BR>Next</DIV><DIV>&nbsp;</DIV><DIV>This doesnt seem to be updating the cart array quantity. Is this in the right spot? I want to do it before the total is calcuated...</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 16 May 2011 09:08:43 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/pccartarray_topic4485_post17527.html#17527</guid>
  </item> 
 </channel>
</rss>