<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Magento Clear Shopping Cart and Session</title>
	<atom:link href="http://www.nvncbl.com/2009/09/magento-clear-shopping-cart-and-session/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nvncbl.com/2009/09/magento-clear-shopping-cart-and-session/</link>
	<description>A place to log my programming solutions for future reference</description>
	<lastBuildDate>Mon, 30 Jan 2012 15:16:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Anil</title>
		<link>http://www.nvncbl.com/2009/09/magento-clear-shopping-cart-and-session/comment-page-1/#comment-2256</link>
		<dc:creator>Anil</dc:creator>
		<pubDate>Sat, 17 Sep 2011 08:15:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.nvncbl.com/?p=410#comment-2256</guid>
		<description>you can find the solution here for the php also


http://phptalks.wordpress.com/</description>
		<content:encoded><![CDATA[<p>you can find the solution here for the php also</p>
<p><a href="http://phptalks.wordpress.com/" rel="nofollow">http://phptalks.wordpress.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avtar</title>
		<link>http://www.nvncbl.com/2009/09/magento-clear-shopping-cart-and-session/comment-page-1/#comment-2254</link>
		<dc:creator>Avtar</dc:creator>
		<pubDate>Thu, 08 Sep 2011 05:27:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.nvncbl.com/?p=410#comment-2254</guid>
		<description>Thanks, Your code worked fine.</description>
		<content:encoded><![CDATA[<p>Thanks, Your code worked fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arturo Hernandez</title>
		<link>http://www.nvncbl.com/2009/09/magento-clear-shopping-cart-and-session/comment-page-1/#comment-2250</link>
		<dc:creator>Arturo Hernandez</dc:creator>
		<pubDate>Tue, 25 Jan 2011 18:37:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.nvncbl.com/?p=410#comment-2250</guid>
		<description>@pierre

You ay have thougth about it already. Put it in the logon. I have the same issue and I will try that.</description>
		<content:encoded><![CDATA[<p>@pierre</p>
<p>You ay have thougth about it already. Put it in the logon. I have the same issue and I will try that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jonathan</title>
		<link>http://www.nvncbl.com/2009/09/magento-clear-shopping-cart-and-session/comment-page-1/#comment-2249</link>
		<dc:creator>jonathan</dc:creator>
		<pubDate>Thu, 20 Jan 2011 15:11:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.nvncbl.com/?p=410#comment-2249</guid>
		<description>Hello, 

I am looking for a code to:
- append or add new values in cart session
- how to overwrite total in cart session as we need to change total of cart to a different value than the one set on back end (custom programing done on products)

Basically i need to overwrite the cart session

Thanks for letting me know if anyone has an answer, this is really urgent need.</description>
		<content:encoded><![CDATA[<p>Hello, </p>
<p>I am looking for a code to:<br />
- append or add new values in cart session<br />
- how to overwrite total in cart session as we need to change total of cart to a different value than the one set on back end (custom programing done on products)</p>
<p>Basically i need to overwrite the cart session</p>
<p>Thanks for letting me know if anyone has an answer, this is really urgent need.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pierre j</title>
		<link>http://www.nvncbl.com/2009/09/magento-clear-shopping-cart-and-session/comment-page-1/#comment-2245</link>
		<dc:creator>pierre j</dc:creator>
		<pubDate>Wed, 15 Dec 2010 18:49:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.nvncbl.com/?p=410#comment-2245</guid>
		<description>Your piece of code is exactly what I need, thanks. Customers are coming back and buying items that are no longer in inventory, but I believe because they are already in the carts Magento does not go back and insure they are still available and  next thing I know I have another order for an out of stock items.

My question is the same as Kristy&#039;s, where exactly do I put this piece of code?

all the best,
pierre</description>
		<content:encoded><![CDATA[<p>Your piece of code is exactly what I need, thanks. Customers are coming back and buying items that are no longer in inventory, but I believe because they are already in the carts Magento does not go back and insure they are still available and  next thing I know I have another order for an out of stock items.</p>
<p>My question is the same as Kristy&#8217;s, where exactly do I put this piece of code?</p>
<p>all the best,<br />
pierre</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.nvncbl.com/2009/09/magento-clear-shopping-cart-and-session/comment-page-1/#comment-2242</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sat, 20 Nov 2010 13:52:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.nvncbl.com/?p=410#comment-2242</guid>
		<description>You&#039;ll get much better performance if you rewrite the Empty Cart code as follows:

&lt;code&gt;
$cart = Mage::getSingleton(&#039;checkout/cart&#039;);
foreach( Mage::getSingleton(&#039;checkout/session&#039;)-&gt;getQuote()-&gt;getItemsCollection() as $item ){
    $cart-&gt;removeItem( $item-&gt;getId() );
}
$cart-&gt;save();
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>You&#8217;ll get much better performance if you rewrite the Empty Cart code as follows:</p>
<p><code><br />
$cart = Mage::getSingleton('checkout/cart');<br />
foreach( Mage::getSingleton('checkout/session')-&gt;getQuote()-&gt;getItemsCollection() as $item ){<br />
    $cart-&gt;removeItem( $item-&gt;getId() );<br />
}<br />
$cart-&gt;save();<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kristy</title>
		<link>http://www.nvncbl.com/2009/09/magento-clear-shopping-cart-and-session/comment-page-1/#comment-2241</link>
		<dc:creator>Kristy</dc:creator>
		<pubDate>Fri, 19 Nov 2010 01:56:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.nvncbl.com/?p=410#comment-2241</guid>
		<description>Yes, please answer where is the file/location where you place this code snippet?</description>
		<content:encoded><![CDATA[<p>Yes, please answer where is the file/location where you place this code snippet?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://www.nvncbl.com/2009/09/magento-clear-shopping-cart-and-session/comment-page-1/#comment-2240</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Wed, 10 Nov 2010 09:32:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.nvncbl.com/?p=410#comment-2240</guid>
		<description>Is there anyways to clear selected shipping method only. I want to clear everything that user selected (billing, shipping, shipping method info,...) when he click on &quot;View Cart&quot; link.</description>
		<content:encoded><![CDATA[<p>Is there anyways to clear selected shipping method only. I want to clear everything that user selected (billing, shipping, shipping method info,&#8230;) when he click on &#8220;View Cart&#8221; link.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Atomschinken</title>
		<link>http://www.nvncbl.com/2009/09/magento-clear-shopping-cart-and-session/comment-page-1/#comment-2227</link>
		<dc:creator>Atomschinken</dc:creator>
		<pubDate>Fri, 04 Jun 2010 09:41:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.nvncbl.com/?p=410#comment-2227</guid>
		<description>Shouldn&#039;t do     &quot;Mage::getSingleton(&#039;checkout/cart&#039;)-&gt;truncate();&quot;

the same?</description>
		<content:encoded><![CDATA[<p>Shouldn&#8217;t do     &#8220;Mage::getSingleton(&#8216;checkout/cart&#8217;)-&gt;truncate();&#8221;</p>
<p>the same?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.nvncbl.com/2009/09/magento-clear-shopping-cart-and-session/comment-page-1/#comment-2226</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 03 Jun 2010 22:20:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.nvncbl.com/?p=410#comment-2226</guid>
		<description>What page should we update in order to get this working correctly? I figured out how to do it by modifying core code but was thinking someone was able to do it by modifying a design file.</description>
		<content:encoded><![CDATA[<p>What page should we update in order to get this working correctly? I figured out how to do it by modifying core code but was thinking someone was able to do it by modifying a design file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mario H.</title>
		<link>http://www.nvncbl.com/2009/09/magento-clear-shopping-cart-and-session/comment-page-1/#comment-2090</link>
		<dc:creator>Mario H.</dc:creator>
		<pubDate>Wed, 23 Sep 2009 11:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.nvncbl.com/?p=410#comment-2090</guid>
		<description>&quot;Clear shopping cart&quot; works perfectly.
Thx!</description>
		<content:encoded><![CDATA[<p>&#8220;Clear shopping cart&#8221; works perfectly.<br />
Thx!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

