<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Optimise Blog &#187; add to cart</title>
	<atom:link href="http://optimiseblog.co.uk/tag/add-to-cart/feed/" rel="self" type="application/rss+xml" />
	<link>http://optimiseblog.co.uk</link>
	<description>Technology, in plain English!</description>
	<lastBuildDate>Mon, 09 Jan 2012 19:08:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Internet Explorer Adds Twice the Quantity to Cart</title>
		<link>http://optimiseblog.co.uk/magento-fix-internet-explorer-adds-twice-doubl-quantity-to-cart/</link>
		<comments>http://optimiseblog.co.uk/magento-fix-internet-explorer-adds-twice-doubl-quantity-to-cart/#comments</comments>
		<pubDate>Mon, 10 May 2010 16:08:32 +0000</pubDate>
		<dc:creator>Sid Vel</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[add to cart]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[checkout]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://optimiseblog.co.uk/?p=245</guid>
		<description><![CDATA[We all like to style our Magento add to cart button as an image button. The problem is that IE 8 (Internet Explorer 8) will add the product twice and cause the quantity of that product in the cart to double up. There is an easy fix to this problem. Solution &#60;input type="image" src="&#60;?php echo $this-&#62;getSkinUrl('add-to-basket.png') [...]]]></description>
			<content:encoded><![CDATA[<p>We all like to style our Magento <strong>add to cart</strong> button as an image button. The problem is that IE 8 (Internet Explorer 8) will add the product twice and cause the quantity of that product in the cart to double up. There is an easy fix to this problem.<span id="more-245"></span></p>
<h3>Solution</h3>
<pre>&lt;input type="image" src="&lt;?php echo $this-&gt;getSkinUrl('add-to-basket.png') ?&gt;"</pre>
<pre>name="image-button" onclick="productAddToCartForm.submit(); return false;" /&gt;</pre>
<pre><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: small;"><span style="line-height: 19px; white-space: normal;"><span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: small;"><span style="line-height: 18px; white-space: pre;">
</span></span></span></span></pre>
<p>Notice the <strong>return false;</strong> that I&#8217;ve added after the <strong>productAddToCartForm.submit()</strong>.</p>
<p>This will fix the problem of IE submitting the add to cart button twice.</p>
<p><strong>Update (Thanks Barcaro) :</strong><br />
File where edit is to be made&#8230;<br />
app/design/frontend/default/default/template/catalog/product/view/addtocart.phtml<br />
(change /default/default/ to your custom template path).</p>
]]></content:encoded>
			<wfw:commentRss>http://optimiseblog.co.uk/magento-fix-internet-explorer-adds-twice-doubl-quantity-to-cart/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

