<?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: Adding to the Cart with a jQuery Ajax Call in Magento</title>
	<atom:link href="http://blogs.ifuelinteractive.com/2009/09/10/adding-to-the-cart-with-a-jquery-ajax-call-in-magento/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.ifuelinteractive.com/2009/09/10/adding-to-the-cart-with-a-jquery-ajax-call-in-magento/</link>
	<description>A NY INTERACTIVE AGENCY</description>
	<lastBuildDate>Fri, 21 May 2010 04:45:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sweety</title>
		<link>http://blogs.ifuelinteractive.com/2009/09/10/adding-to-the-cart-with-a-jquery-ajax-call-in-magento/comment-page-1/#comment-369</link>
		<dc:creator>Sweety</dc:creator>
		<pubDate>Wed, 10 Mar 2010 11:33:56 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.ifuelinteractive.com/?p=9#comment-369</guid>
		<description>Cant figure out where to add third part of code</description>
		<content:encoded><![CDATA[<p>Cant figure out where to add third part of code</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://blogs.ifuelinteractive.com/2009/09/10/adding-to-the-cart-with-a-jquery-ajax-call-in-magento/comment-page-1/#comment-12</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Wed, 14 Oct 2009 11:41:05 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.ifuelinteractive.com/?p=9#comment-12</guid>
		<description>Hi Sam -

I&#039;ll try to put together a cleaner version of the code for you.  Yes, I do use jquery.ui.  I tried to simplify it for the original post and all I succeeded in doing was confusing people.  Sorry!

Andy</description>
		<content:encoded><![CDATA[<p>Hi Sam -</p>
<p>I&#8217;ll try to put together a cleaner version of the code for you.  Yes, I do use jquery.ui.  I tried to simplify it for the original post and all I succeeded in doing was confusing people.  Sorry!</p>
<p>Andy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://blogs.ifuelinteractive.com/2009/09/10/adding-to-the-cart-with-a-jquery-ajax-call-in-magento/comment-page-1/#comment-9</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Mon, 12 Oct 2009 11:33:46 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.ifuelinteractive.com/?p=9#comment-9</guid>
		<description>Oh, and just for your own reference, there is a free extension that does this now, but your version seems much simpler (http://www.magentocommerce.com/extension/2101/j2t-ajax-cart)</description>
		<content:encoded><![CDATA[<p>Oh, and just for your own reference, there is a free extension that does this now, but your version seems much simpler (<a href="http://www.magentocommerce.com/extension/2101/j2t-ajax-cart" rel="nofollow">http://www.magentocommerce.com/extension/2101/j2t-ajax-cart</a>)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://blogs.ifuelinteractive.com/2009/09/10/adding-to-the-cart-with-a-jquery-ajax-call-in-magento/comment-page-1/#comment-8</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Mon, 12 Oct 2009 11:24:04 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.ifuelinteractive.com/?p=9#comment-8</guid>
		<description>Hmmmm...still no joy getting this going. Does it require jQuery UI to work correctly?

I placed the buy now link and the script in default/template/catalog/product/list.phtml. But I get an error if I don&#039;t change $product to $_product as that&#039;s what the default template uses. I&#039;m guessing it&#039;s because I&#039;m not using a color selector, so that bits redundant? 

Also, I suppose the buy now button should have a class of &quot;add-to-cart&quot;? And that it needs to be used with the list view and not grid, as grid doesn&#039;t use the &quot;listing-item&quot; class?

Any chance you can strip out the custom attributes (#colorSelector) and just use the simplest setup in your example?</description>
		<content:encoded><![CDATA[<p>Hmmmm&#8230;still no joy getting this going. Does it require jQuery UI to work correctly?</p>
<p>I placed the buy now link and the script in default/template/catalog/product/list.phtml. But I get an error if I don&#8217;t change $product to $_product as that&#8217;s what the default template uses. I&#8217;m guessing it&#8217;s because I&#8217;m not using a color selector, so that bits redundant? </p>
<p>Also, I suppose the buy now button should have a class of &#8220;add-to-cart&#8221;? And that it needs to be used with the list view and not grid, as grid doesn&#8217;t use the &#8220;listing-item&#8221; class?</p>
<p>Any chance you can strip out the custom attributes (#colorSelector) and just use the simplest setup in your example?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://blogs.ifuelinteractive.com/2009/09/10/adding-to-the-cart-with-a-jquery-ajax-call-in-magento/comment-page-1/#comment-7</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Thu, 08 Oct 2009 21:50:31 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.ifuelinteractive.com/?p=9#comment-7</guid>
		<description>I have the addToCart.php in a folder off the root of my site (see previous comment and reply).  Shouldn&#039;t really matter where you have it as long as you have the getJSON call pointing to the right location.</description>
		<content:encoded><![CDATA[<p>I have the addToCart.php in a folder off the root of my site (see previous comment and reply).  Shouldn&#8217;t really matter where you have it as long as you have the getJSON call pointing to the right location.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://blogs.ifuelinteractive.com/2009/09/10/adding-to-the-cart-with-a-jquery-ajax-call-in-magento/comment-page-1/#comment-6</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Thu, 08 Oct 2009 21:49:31 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.ifuelinteractive.com/?p=9#comment-6</guid>
		<description>Sorry, should have included that.  Common.php is where I have some shared functions.  I simplified the code for this article when I originally posted it, so you shouldn&#039;t actually need it anymore.

I posted it in a folder off the root of my site, but you could really put it anywhere as long as you have the following line correct in your client script:

var result = $.getJSON(&quot;/scripts/addToCart.php&quot;, params, function(data, textStatus){

Thanks for the feedback.  Really glad you found it helpful!</description>
		<content:encoded><![CDATA[<p>Sorry, should have included that.  Common.php is where I have some shared functions.  I simplified the code for this article when I originally posted it, so you shouldn&#8217;t actually need it anymore.</p>
<p>I posted it in a folder off the root of my site, but you could really put it anywhere as long as you have the following line correct in your client script:</p>
<p>var result = $.getJSON(&#8220;/scripts/addToCart.php&#8221;, params, function(data, textStatus){</p>
<p>Thanks for the feedback.  Really glad you found it helpful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://blogs.ifuelinteractive.com/2009/09/10/adding-to-the-cart-with-a-jquery-ajax-call-in-magento/comment-page-1/#comment-5</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Thu, 08 Oct 2009 21:34:52 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.ifuelinteractive.com/?p=9#comment-5</guid>
		<description>This looks like it could be very useful! Where do you put the addToCart.php file?</description>
		<content:encoded><![CDATA[<p>This looks like it could be very useful! Where do you put the addToCart.php file?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://blogs.ifuelinteractive.com/2009/09/10/adding-to-the-cart-with-a-jquery-ajax-call-in-magento/comment-page-1/#comment-4</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Thu, 08 Oct 2009 18:35:42 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.ifuelinteractive.com/?p=9#comment-4</guid>
		<description>Hey,

Where is the script being stored and what is the common.php file? Great article by the way!</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>Where is the script being stored and what is the common.php file? Great article by the way!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pedro Sanders</title>
		<link>http://blogs.ifuelinteractive.com/2009/09/10/adding-to-the-cart-with-a-jquery-ajax-call-in-magento/comment-page-1/#comment-2</link>
		<dc:creator>Pedro Sanders</dc:creator>
		<pubDate>Fri, 18 Sep 2009 16:22:55 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.ifuelinteractive.com/?p=9#comment-2</guid>
		<description>You just saved me a lot of time. Thanks so much!</description>
		<content:encoded><![CDATA[<p>You just saved me a lot of time. Thanks so much!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
