<?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 : Forcing a Cart Save</title>
  <link>https://forum.productcart.com/</link>
  <description><![CDATA[This is an XML content feed of; ProductCart Shopping Cart Software Forums : Customizing ProductCart : Forcing a Cart Save]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 07 Apr 2026 18:55:55 +0000</pubDate>
  <lastBuildDate>Sat, 29 Jan 2011 17:26:05 +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=4252</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[Forcing a Cart Save : you might like this:    &amp;lt;% &amp;#039;avalight:...]]></title>
   <link>https://forum.productcart.com/forcing-a-cart-save_topic4252_post16706.html#16706</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1159">Brett</a><br /><strong>Subject:</strong> 4252<br /><strong>Posted:</strong> 29-January-2011 at 5:26pm<br /><br />you might like this:<br /><br /><table width="99%"><tr><td><pre class="BBcode"><br />&lt;%<br />'avalight: Add save cart functionality per forum post 4252<br />if session("idcustomer")=0 then%&gt;<br />&lt;div style="text-align:right; clear: both;"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Please &lt;a href="/productcart/pc/Checkout.asp?cmode=1"&gt;log in or register&lt;/a&gt; to save this cart.<br />&lt;/div&gt;<br />&lt;%else%&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;form action="CustSavedCartsRename.asp" method="post" class="pcForms"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type="hidden" value="&lt;%=IDSC%&gt;" name="id"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;table class="pcMainTable"&gt;&lt;tbody&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;td&gt;&lt;input type="text" value="Save this cart" name="SavedCartName" size="50"&gt; &lt;input type="submit" name="submit" class="submit2" value="Save Cart"&gt;&lt;/td&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/tbody&gt;&lt;/table&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/form&gt;<br />&lt;%end if%&gt;<br /></pre></td></tr></table><br /><br />If they are logged out, it will show them the login link like you had. If they are logged in, it will show them a form to name and save the cart directly from the viewCart.asp page. The stipulation is this code must be OUTSIDE the other main &lt;form&gt; from the page. I put it right before the opening &lt;form, just after "&lt;% '// START main form %&gt;"<br /><br />You could probably also put it after the end of that form, it just can't be inside because I guess you can't have a form within a form.]]>
   </description>
   <pubDate>Sat, 29 Jan 2011 17:26:05 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/forcing-a-cart-save_topic4252_post16706.html#16706</guid>
  </item> 
  <item>
   <title><![CDATA[Forcing a Cart Save : hey Curt,  im glad you got it...]]></title>
   <link>https://forum.productcart.com/forcing-a-cart-save_topic4252_post16705.html#16705</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1159">Brett</a><br /><strong>Subject:</strong> 4252<br /><strong>Posted:</strong> 29-January-2011 at 5:15pm<br /><br />hey Curt,<br /><br />im glad you got it working! what's funny is the only tricky thing I really did was pull the save cart id and append that to the CustSavedCarts url. now all you've done is provide a link to the view or save cart page, which already exists in custpref.asp. however, i agree that it is far more useful on the shopping cart page, for this particular use. <br /><br />Here's my viewCart.asp, where I have the link just below the list of cart items and the &lt;hr&gt;. the problem with the previous code may have been a lack of table row and divisions.<br /><br />Here's a screenshot of the portion of the cart where you can see the link is displayed:<br /><img src="uploads/1159/cartc&#111;ntains.jpg" border="0" /><br /><br /><a href="uploads/1159/viewcart.zip" target="_blank">viewcart.zip</a><br /><br /><br />Here's the edited code:<br /><table width="99%"><tr><td><pre class="BBcode"><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;td colspan="6"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;%<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'avalight: Add save cart functionality per forum post 4252<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if session("idcustomer")=0 then%&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div style="text-align:right; clear: both;"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Please &lt;a href="/productcart/pc/Checkout.asp?cmode=1"&gt;log in or register&lt;/a&gt; to save this cart.<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/td&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;<br /></pre></td></tr></table><br /><br />I put it right above:<br /><table width="99%"><tr><td><pre class="BBcode"><br />&lt;%' Calculate & display order total<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;total=total-CatDiscTotal-TotalPromotions %&gt;<br /></pre></td></tr></table>]]>
   </description>
   <pubDate>Sat, 29 Jan 2011 17:15:17 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/forcing-a-cart-save_topic4252_post16705.html#16705</guid>
  </item> 
  <item>
   <title><![CDATA[Forcing a Cart Save : Okay BrettHere is the code I ended...]]></title>
   <link>https://forum.productcart.com/forcing-a-cart-save_topic4252_post16702.html#16702</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=667">avalight</a><br /><strong>Subject:</strong> 4252<br /><strong>Posted:</strong> 29-January-2011 at 3:04pm<br /><br />Okay Brett<br>Here is the code I ended up using.&nbsp; Beginning with yours, I added a link for someone to jump directly to the login screen in case they weren't already logged in, and also once they were logged in, the link changes so they can view all their saved carts, not the page where they can rename their carts.<br>&nbsp; <br>As far as code placement , tried putting the code where you suggested, and it didn't show up.&nbsp; So thru trial and error, the only place I could get it to show up in a decent place in the storefront was just before the code section labeled BTO ADDON-S - Putting it here makes the links show up above the cart contents, under the checkout button.&nbsp; I couldn't get it to show up at the bottom of the page, where it would be more noticable.&nbsp; Maybe there is another asp file that gets loaded for that section of the page...who knows.<br><table width="99%"><tr><td><pre class="BBcode"><br>&lt;%<br>'avalight: Add save cart functionality per forum post 4252<br>if session("idcustomer")=0 then%&gt;<br>&lt;div style="text-align:right; clear: both;"&gt;<br><br>Please &lt;a href="/productcart/pc/Checkout.asp?cmode=1"&gt;log in or register&lt;/a&gt; to save this cart.<br><br>&lt;/div&gt;<br><br>&lt;%else%&gt;<br>&lt;div style="text-align:right; clear: both;"&gt;<br><br>&nbsp; &lt;a href="CustSavedCarts.asp"&gt;View or Save Cart&lt;/a&gt;<br><br>&lt;/div&gt;<br><br>&lt;%end if%&gt;<br></pre></td></tr></table><br><br>So there you have it.&nbsp; At least it is there and is functional.<br>Thanks again<br>curt<br><br>]]>
   </description>
   <pubDate>Sat, 29 Jan 2011 15:04:13 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/forcing-a-cart-save_topic4252_post16702.html#16702</guid>
  </item> 
  <item>
   <title><![CDATA[Forcing a Cart Save : Hi Avalight, Good idea, I&amp;#039;ll...]]></title>
   <link>https://forum.productcart.com/forcing-a-cart-save_topic4252_post16693.html#16693</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=303">Hamish</a><br /><strong>Subject:</strong> 4252<br /><strong>Posted:</strong> 29-January-2011 at 7:55am<br /><br />Hi Avalight, Good idea, I'll move it to Customizing ProductCart]]>
   </description>
   <pubDate>Sat, 29 Jan 2011 07:55:04 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/forcing-a-cart-save_topic4252_post16693.html#16693</guid>
  </item> 
  <item>
   <title><![CDATA[Forcing a Cart Save : Hey avalight, put this code at...]]></title>
   <link>https://forum.productcart.com/forcing-a-cart-save_topic4252_post16691.html#16691</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1159">Brett</a><br /><strong>Subject:</strong> 4252<br /><strong>Posted:</strong> 29-January-2011 at 7:38am<br /><br />Hey avalight, put this code at line 1591 (might be different on your cart page if mine has been edited - i'm not sure if it has been):<br /><br /><table width="99%"><tr><td><pre class="BBcode"><br />&lt;%if session("idcustomer")=0 then%&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div style="text-align:right; clear: both;"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Please log in to save this cart.<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br />&lt;%else%&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div style="text-align:right; clear: both;"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a href="CustSavedCartsRename.asp?id=&lt;%=IDSC%&gt;"&gt;Save This Cart&lt;/a&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br />&lt;%end if%&gt;<br /></pre></td></tr></table><br /><br />It should go just before this section:<br /><table width="99%"><tr><td><pre class="BBcode"><br />&lt;%' ------------------------------------------------------<br />' START - Show estimated shipping charges link<br />' ------------------------------------------------------<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if iShipService=0 then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if scShowEstimateLink="-1" then %&gt;<br /><br /></pre></td></tr></table>]]>
   </description>
   <pubDate>Sat, 29 Jan 2011 07:38:26 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/forcing-a-cart-save_topic4252_post16691.html#16691</guid>
  </item> 
  <item>
   <title><![CDATA[Forcing a Cart Save : I think it probably should be...]]></title>
   <link>https://forum.productcart.com/forcing-a-cart-save_topic4252_post16689.html#16689</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1159">Brett</a><br /><strong>Subject:</strong> 4252<br /><strong>Posted:</strong> 29-January-2011 at 6:31am<br /><br />I think it probably should be moved. Curt ill let you know in an hour or so when I'm at laptop.]]>
   </description>
   <pubDate>Sat, 29 Jan 2011 06:31:45 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/forcing-a-cart-save_topic4252_post16689.html#16689</guid>
  </item> 
  <item>
   <title><![CDATA[Forcing a Cart Save : Hamish- do you think this post...]]></title>
   <link>https://forum.productcart.com/forcing-a-cart-save_topic4252_post16687.html#16687</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=667">avalight</a><br /><strong>Subject:</strong> 4252<br /><strong>Posted:</strong> 28-January-2011 at 9:01pm<br /><br />Hamish- do you think this post should be moved to customizing productcart.?]]>
   </description>
   <pubDate>Fri, 28 Jan 2011 21:01:48 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/forcing-a-cart-save_topic4252_post16687.html#16687</guid>
  </item> 
  <item>
   <title><![CDATA[Forcing a Cart Save : BrettCan you tell me what line...]]></title>
   <link>https://forum.productcart.com/forcing-a-cart-save_topic4252_post16686.html#16686</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=667">avalight</a><br /><strong>Subject:</strong> 4252<br /><strong>Posted:</strong> 28-January-2011 at 9:00pm<br /><br />Brett<br>Can you tell me what line are you suggesting to insert this code?&nbsp; I see the &lt;h1&gt; tag, and I would like to have the save text appear right below cart total.<br>Thanks<br>Curt<br><br>]]>
   </description>
   <pubDate>Fri, 28 Jan 2011 21:00:36 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/forcing-a-cart-save_topic4252_post16686.html#16686</guid>
  </item> 
  <item>
   <title><![CDATA[Forcing a Cart Save : Hi Claydough,  Thanks for asking...]]></title>
   <link>https://forum.productcart.com/forcing-a-cart-save_topic4252_post16649.html#16649</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=303">Hamish</a><br /><strong>Subject:</strong> 4252<br /><strong>Posted:</strong> 25-January-2011 at 6:23pm<br /><br />Hi Claydough, <br>&nbsp;&nbsp;&nbsp; Thanks for asking the question &amp; Hi Brett, thanks for posting a solution. It seems like a good idea so we will look into making it an option in the next release. <br><br>Regards,<br>&nbsp; Hamish<br><br>&nbsp;]]>
   </description>
   <pubDate>Tue, 25 Jan 2011 18:23:27 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/forcing-a-cart-save_topic4252_post16649.html#16649</guid>
  </item> 
  <item>
   <title><![CDATA[Forcing a Cart Save : No problem. Sorry for being a...]]></title>
   <link>https://forum.productcart.com/forcing-a-cart-save_topic4252_post16639.html#16639</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1159">Brett</a><br /><strong>Subject:</strong> 4252<br /><strong>Posted:</strong> 23-January-2011 at 4:47pm<br /><br />No problem. Sorry for being a bit of an ass about it. I guess sometimes I forget that not everyone has spent the greater part of a year or two exploring productcarts sometimes strange quirks. The answer came intuitively to me because I've had to mess with stuff like that so many times. Thankfully productcart is one of the easiest platforms to modify and extend. I hope it continues to work well for you and I'm sure you'll find most of the community here are much nicer than me ;)]]>
   </description>
   <pubDate>Sun, 23 Jan 2011 16:47:52 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/forcing-a-cart-save_topic4252_post16639.html#16639</guid>
  </item> 
 </channel>
</rss>