<?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>E-Commerce Development &#187; Magento E-Commerce Help</title>
	<atom:link href="http://www.imagedia.com/category/magento-help/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.imagedia.com</link>
	<description>Imagedia - Maximizing and developing ecommerce applications</description>
	<lastBuildDate>Tue, 27 Sep 2011 00:19:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded try restarting transaction</title>
		<link>http://www.imagedia.com/2011/09/sqlstatehy000-general-error-1205-lock-wait-timeout-exceeded-try-restarting-transaction/</link>
		<comments>http://www.imagedia.com/2011/09/sqlstatehy000-general-error-1205-lock-wait-timeout-exceeded-try-restarting-transaction/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 00:19:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento E-Commerce Help]]></category>

		<guid isPermaLink="false">http://www.imagedia.com/?p=623</guid>
		<description><![CDATA[<p></p>
 
  

<p>Today we ran into this error message using Magento: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction</p>
<p>We searched around a bit and found this solution that seems to work.</p>
<p>In lib/Zend/Db/Statement/Pdo.php find the public function _execute and replace the function with this code:</p>
<p>public function _execute(array $params = null)</p>
<p>{</p>
<p>// begin changes</p>
<p>$tries [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<div><!-- Wordbooker created FB tags --> <fb:like layout="button_count" show_faces="false" action="recommend" font="arial" colorscheme="dark"  href="http://www.imagedia.com/2011/09/sqlstatehy000-general-error-1205-lock-wait-timeout-exceeded-try-restarting-transaction/" width="250"></fb:like>
<div style="float:right;"><!-- Wordbooker created FB tags --> <fb:share-button class="meta" type="button" href="http://www.imagedia.com/2011/09/sqlstatehy000-general-error-1205-lock-wait-timeout-exceeded-try-restarting-transaction/" > </fb:share-button></div>
</div>
<p>Today we ran into this error message using Magento: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction</p>
<p>We searched around a bit and found this solution that seems to work.</p>
<p>In lib/Zend/Db/Statement/Pdo.php find the public function _execute and replace the function with this code:</p>
<p>public function _execute(array $params = null)</p>
<p>{</p>
<p>// begin changes</p>
<p>$tries = 0;</p>
<p>do {</p>
<p>$retry = false;</p>
<p>try {</p>
<p>if ($params !== null) {</p>
<p>return $this-&gt;_stmt-&gt;execute($params);</p>
<p>} else {</p>
<p>return $this-&gt;_stmt-&gt;execute();</p>
<p>}</p>
<p>} catch (PDOException $e) {</p>
<p>#require_once &#8216;Zend/Db/Statement/Exception.php&#8217;;</p>
<p>if ($tries &lt; 10 and $e-&gt;getMessage()==&#8217;SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction&#8217;) {</p>
<p>$retry = true;</p>
<p>} else {</p>
<p>throw new Zend_Db_Statement_Exception($e-&gt;getMessage());</p>
<p>}</p>
<p>$tries++;</p>
<p>}</p>
<p>} while ($retry);</p>
<p>// end changes</p>
<p>}</p>
<p>Then in lib/Varien/Db/Adapter/Mysqli.php find the raw_query with:</p>
<p>$tries = 0;</p>
<p>do {</p>
<p>$retry = false;</p>
<p>try {</p>
<p>$this-&gt;clear_result();</p>
<p>$result = $this-&gt;getConnection()-&gt;query($sql);</p>
<p>$this-&gt;clear_result();</p>
<p>}</p>
<p>catch (Exception $e) {</p>
<p>if ($tries &lt; 10 and $e-&gt;getMessage()==&#8217;SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction&#8217;) {</p>
<p>$retry = true;</p>
<p>} else {</p>
<p>throw $e;</p>
<p>}</p>
<p>$tries++;</p>
<p>}</p>
<p>} while ($retry);</p>
<p>return $result;</p>
<p>}</p>
<p>Hopefully, that will take care of the error message &#8220;SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction&#8221; for you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imagedia.com/2011/09/sqlstatehy000-general-error-1205-lock-wait-timeout-exceeded-try-restarting-transaction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom Design Layout Update Not Working On Child Elements In Magento</title>
		<link>http://www.imagedia.com/2011/07/custom-design-layout-update-not-working-on-child-elements-in-magento/</link>
		<comments>http://www.imagedia.com/2011/07/custom-design-layout-update-not-working-on-child-elements-in-magento/#comments</comments>
		<pubDate>Sat, 16 Jul 2011 16:47:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento E-Commerce Help]]></category>

		<guid isPermaLink="false">http://www.imagedia.com/?p=618</guid>
		<description><![CDATA[<p></p>
 
  

<p>Related to our recent post &#8220;How To Use The Custom Layout Update In Magento&#8220;, it turns out Magento has a bug that keeps design layouts from working on child elements. So if you did the custom layout update to your category as described, it worked fine in that category, but would not [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<div><!-- Wordbooker created FB tags --> <fb:like layout="button_count" show_faces="false" action="recommend" font="arial" colorscheme="dark"  href="http://www.imagedia.com/2011/07/custom-design-layout-update-not-working-on-child-elements-in-magento/" width="250"></fb:like>
<div style="float:right;"><!-- Wordbooker created FB tags --> <fb:share-button class="meta" type="button" href="http://www.imagedia.com/2011/07/custom-design-layout-update-not-working-on-child-elements-in-magento/" > </fb:share-button></div>
</div>
<p>Related to our recent post &#8220;<strong><a href="http://www.imagedia.com/2011/07/how-to-use-the-custom-layout-update-in-magento/" target="_blank">How To Use The Custom Layout Update In Magento</a></strong>&#8220;, it turns out Magento has a bug that keeps design layouts from working on child elements. So if you did the custom layout update to your category as described, it worked fine in that category, but would not go down to the product level even though that was selected. So if you wanted, you could put in that custom layout update on every product manually, but for us that would be a huge undertaking because of the number of products in the category. Besides, that&#8217;s just not the way it should be.</p>
<p>So after wasting tons of time researching the forums, we finally came up with this great fix. It comes from another website out there, called Exanto.de. Under Exanto.de/magento-module-und-hacks.html, this guy has made a complete package to fix this bug. Problem is (nothing&#8217;s easy), the site is in German or Dutch, not sure which. If you speak whatever language it is, I guess it&#8217;s not a problem. Unfortunately I only know english and a little bit of spanish &#8220;Una mas cervesa, pour some more&#8221; (haha).</p>
<p>Anyway, back to the solution. I went ahead and got brave. I clicked on a few of the links and figured I would try the one here:</p>
<p>http://www.exanto.de/svn/magento-free/trunk/modules/mod_reclayup/</p>
<p>I&#8217;m not going to spend the time explaining from here, but basically, if you&#8217;ll drill down through all the links in that section, he has provided all the files you need to fix this bug.</p>
<p>Thanks modman for showing us how to fix the bug, &#8220;Custom Design Layout Update Not Working On Child Elements In Magento&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imagedia.com/2011/07/custom-design-layout-update-not-working-on-child-elements-in-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Use The Custom Layout Update In Magento</title>
		<link>http://www.imagedia.com/2011/07/how-to-use-the-custom-layout-update-in-magento/</link>
		<comments>http://www.imagedia.com/2011/07/how-to-use-the-custom-layout-update-in-magento/#comments</comments>
		<pubDate>Sat, 16 Jul 2011 16:32:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento E-Commerce Help]]></category>

		<guid isPermaLink="false">http://www.imagedia.com/?p=616</guid>
		<description><![CDATA[<p></p>
 
  

<p>As anyone who uses Magento may know, getting a grasp on how things work with Magento can be pretty mind boggling at times. But along with that, I have to say it&#8217;s pretty nice when things work out for you. One of those cases is figuring out how to use custom layout [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<div><!-- Wordbooker created FB tags --> <fb:like layout="button_count" show_faces="false" action="recommend" font="arial" colorscheme="dark"  href="http://www.imagedia.com/2011/07/how-to-use-the-custom-layout-update-in-magento/" width="250"></fb:like>
<div style="float:right;"><!-- Wordbooker created FB tags --> <fb:share-button class="meta" type="button" href="http://www.imagedia.com/2011/07/how-to-use-the-custom-layout-update-in-magento/" > </fb:share-button></div>
</div>
<p>As anyone who uses Magento may know, getting a grasp on how things work with Magento can be pretty mind boggling at times. But along with that, I have to say it&#8217;s pretty nice when things work out for you. One of those cases is figuring out <strong>how to use custom layout updates on categories or products in magento.</strong> Turns out it can be pretty simple.</p>
<p>Recently, we wanted to do a custom layout update to <a href="http://www.realworktrucks.com" target="_blank">Real Work Trucks.com</a> that announced an <strong><a href="http://www.realworktrucks.com/winches-and-hoists/electric-winches-and-hoists.html" target="_blank">$80 rebate on select Warn Winches</a></strong>. We wanted it to appear on the applicable category as well as all of the products in that category.</p>
<p>First, we went to Magento Admin &gt; CMS &gt; Static Blocks</p>
<p>Select Add New Block</p>
<p>Put in you block title. In this case we named it Warn Rebate</p>
<p>Next enter the identifier. This is what will be used in you actual code. This one for us is warn_rebate</p>
<p>Make status &#8220;Enabled&#8221;</p>
<p>For content we made it &lt;h1&gt;$80 Mail In Rebate on select Warn Winches. Offer ends 7-31-11&lt;/h1&gt;</p>
<p>Save your block.</p>
<p>Next go to your category under Catalog &gt; Mange Categories</p>
<p>Select the category, in this case it was &#8220;<strong><a href="http://www.realworktrucks.com/winches-and-hoists/electric-winches-and-hoists.html" target="_blank">Warn Winches and Hoists</a></strong>&#8220;. Under the &#8220;Custom Design&#8221; tab, you&#8217;ll see the box called &#8220;Custom Layout Update&#8221;. Put your code in that box to call your CMS Static Block. The code we used looks like this:</p>
<p>&lt;reference name=&#8221;left&#8221;&gt;&lt;block type=&#8221;cms/block&#8221; name=&#8221;warn_rebate&#8221; before=&#8221;-&#8221;&gt;&lt;action method=&#8221;setBlockId&#8221;&gt;&lt;block_id&gt;warn_rebate&lt;/block_id&gt;&lt;/action&gt;&lt;/block&gt;&lt;/reference&gt;</p>
<p>With the &#8220;Apply To&#8221; drop down menu, we selected &#8220;This category and it&#8217;s products only&#8221;</p>
<p>Click save category. There you go, you&#8217;re all set. Refresh your cache in Magento Admin then go to your website category to see the changes.</p>
<p>That&#8217;s it, that&#8217;s how you &#8220;<strong>Use The Custom Layout Update In Magento</strong>&#8221;</p>
<p>That&#8217;s how</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imagedia.com/2011/07/how-to-use-the-custom-layout-update-in-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Categories Don&#8217;t Show Up In Layered Navigation in Magento</title>
		<link>http://www.imagedia.com/2011/05/categories-dont-show-up-in-layered-navigation-in-magento/</link>
		<comments>http://www.imagedia.com/2011/05/categories-dont-show-up-in-layered-navigation-in-magento/#comments</comments>
		<pubDate>Tue, 10 May 2011 20:43:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento E-Commerce Help]]></category>

		<guid isPermaLink="false">http://www.imagedia.com/?p=614</guid>
		<description><![CDATA[<p></p>
 
  

<p>If you want to make sure layered navigation shows all your categories and sub categories in your search results in Magento, make sure you select the parent category as an anchor. This will cause the category where a product resides to show up in the &#8220;Shopping Options&#8221; box.</p>
]]></description>
			<content:encoded><![CDATA[<p></p>
<div><!-- Wordbooker created FB tags --> <fb:like layout="button_count" show_faces="false" action="recommend" font="arial" colorscheme="dark"  href="http://www.imagedia.com/2011/05/categories-dont-show-up-in-layered-navigation-in-magento/" width="250"></fb:like>
<div style="float:right;"><!-- Wordbooker created FB tags --> <fb:share-button class="meta" type="button" href="http://www.imagedia.com/2011/05/categories-dont-show-up-in-layered-navigation-in-magento/" > </fb:share-button></div>
</div>
<p>If you want to make sure layered navigation shows all your categories and sub categories in your search results in Magento, make sure you select the parent category as an anchor. This will cause the category where a product resides to show up in the &#8220;Shopping Options&#8221; box.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imagedia.com/2011/05/categories-dont-show-up-in-layered-navigation-in-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Add Recently Viewed in Left Column in Magento</title>
		<link>http://www.imagedia.com/2011/05/how-to-add-recently-viewed-in-left-column-in-magento/</link>
		<comments>http://www.imagedia.com/2011/05/how-to-add-recently-viewed-in-left-column-in-magento/#comments</comments>
		<pubDate>Mon, 09 May 2011 19:33:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento E-Commerce Help]]></category>

		<guid isPermaLink="false">http://www.imagedia.com/?p=611</guid>
		<description><![CDATA[<p></p>
 
  

<p>We wanted to add the &#8220;Recently Viewed&#8221; box in the left column to one of our Magento sites. Magento by default has the recently viewed box in the right.</p>
<p>Here&#8217;s what we did:</p>
<p>In page.xml we added this line under the &#8220;left&#8221; reference:</p>
<p>&#60;block type=&#8221;reports/product_viewed&#8221; name=&#8221;product.recently.viewed&#8221; as=&#8221;product_recently_viewed&#8221; template=&#8221;reports/product_viewed.phtml&#8221;/&#62;</p>
<p>Next, in template/page/2columns-left.phtml we added:</p>
<p>&#60;?php echo $this-&#62;getChildHtml(&#8217;product_recently_viewed&#8217;) ?&#62;</p>
<p>Where [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<div><!-- Wordbooker created FB tags --> <fb:like layout="button_count" show_faces="false" action="recommend" font="arial" colorscheme="dark"  href="http://www.imagedia.com/2011/05/how-to-add-recently-viewed-in-left-column-in-magento/" width="250"></fb:like>
<div style="float:right;"><!-- Wordbooker created FB tags --> <fb:share-button class="meta" type="button" href="http://www.imagedia.com/2011/05/how-to-add-recently-viewed-in-left-column-in-magento/" > </fb:share-button></div>
</div>
<p>We wanted to add the &#8220;Recently Viewed&#8221; box in the left column to one of our Magento sites. Magento by default has the recently viewed box in the right.</p>
<p>Here&#8217;s what we did:</p>
<p>In page.xml we added this line under the &#8220;left&#8221; reference:</p>
<p>&lt;block type=&#8221;reports/product_viewed&#8221; name=&#8221;product.recently.viewed&#8221; as=&#8221;product_recently_viewed&#8221; template=&#8221;reports/product_viewed.phtml&#8221;/&gt;</p>
<p>Next, in template/page/2columns-left.phtml we added:</p>
<p>&lt;?php echo $this-&gt;getChildHtml(&#8217;product_recently_viewed&#8217;) ?&gt;</p>
<p>Where we wanted it to appear in the left column.</p>
<p>There you go, that&#8217;s how to add the &#8220;Recently Viewed&#8221; box in the left column of your Magento site</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imagedia.com/2011/05/how-to-add-recently-viewed-in-left-column-in-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using the Magento getSkinUrl Call For Images</title>
		<link>http://www.imagedia.com/2011/05/using-the-magento-getskinurl-call-for-images/</link>
		<comments>http://www.imagedia.com/2011/05/using-the-magento-getskinurl-call-for-images/#comments</comments>
		<pubDate>Mon, 09 May 2011 14:28:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento E-Commerce Help]]></category>

		<guid isPermaLink="false">http://www.imagedia.com/?p=609</guid>
		<description><![CDATA[<p></p>
 
  

<p>If you&#8217;re trying to figure out how to call an image up in one of your design template files in Magento, here&#8217;s the correct code to make it happen:</p>
<p>echo $this-&#62;getSkinUrl(&#8217;images/your-image.jpg&#8217;);</p>
<p>So for instance, if you&#8217;re creating a new left column phtml file for your Magento store and need to call an image from [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<div><!-- Wordbooker created FB tags --> <fb:like layout="button_count" show_faces="false" action="recommend" font="arial" colorscheme="dark"  href="http://www.imagedia.com/2011/05/using-the-magento-getskinurl-call-for-images/" width="250"></fb:like>
<div style="float:right;"><!-- Wordbooker created FB tags --> <fb:share-button class="meta" type="button" href="http://www.imagedia.com/2011/05/using-the-magento-getskinurl-call-for-images/" > </fb:share-button></div>
</div>
<p>If you&#8217;re trying to figure out how to call an image up in one of your design template files in Magento, here&#8217;s the correct code to make it happen:</p>
<p>echo $this-&gt;getSkinUrl(&#8217;images/your-image.jpg&#8217;);</p>
<p>So for instance, if you&#8217;re creating a new left column phtml file for your Magento store and need to call an image from your skin images directory, that command will do it. If you want to do the same thing but calling it from elsewhere, use this command:</p>
<p>echo Mage::getDesign()-&gt;getSkinUrl(&#8217;images/your-image.jpg&#8217;);</p>
<p>That&#8217;s it. Hope it helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imagedia.com/2011/05/using-the-magento-getskinurl-call-for-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Text Before Price In Magento Cart</title>
		<link>http://www.imagedia.com/2011/04/add-text-before-price-in-magento-cart/</link>
		<comments>http://www.imagedia.com/2011/04/add-text-before-price-in-magento-cart/#comments</comments>
		<pubDate>Sat, 30 Apr 2011 22:55:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento E-Commerce Help]]></category>

		<guid isPermaLink="false">http://www.imagedia.com/?p=606</guid>
		<description><![CDATA[<p></p>
 
  

<p>Here was another toughy. We wanted to add the text &#8220;Regular Price:&#8221; in front of the price on one of our sites running Magento, and after a bit of searching, found the correct file and line to add it to.</p>
<p>Go to /app/design/frontend/default/yourtheme/template/catalog/product/price.phtml and find this line:</p>
<p>&#60;span class=&#8221;regular-price&#8221; id=&#8221;product-price-&#60;?php echo $_id ?&#62;&#60;?php echo $this-&#62;getIdSuffix() [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<div><!-- Wordbooker created FB tags --> <fb:like layout="button_count" show_faces="false" action="recommend" font="arial" colorscheme="dark"  href="http://www.imagedia.com/2011/04/add-text-before-price-in-magento-cart/" width="250"></fb:like>
<div style="float:right;"><!-- Wordbooker created FB tags --> <fb:share-button class="meta" type="button" href="http://www.imagedia.com/2011/04/add-text-before-price-in-magento-cart/" > </fb:share-button></div>
</div>
<p>Here was another toughy. We wanted to add the text &#8220;Regular Price:&#8221; in front of the price on one of our sites running Magento, and after a bit of searching, found the correct file and line to add it to.</p>
<p>Go to /app/design/frontend/default/yourtheme/template/catalog/product/price.phtml and find this line:</p>
<p>&lt;span class=&#8221;regular-price&#8221; id=&#8221;product-price-&lt;?php echo $_id ?&gt;&lt;?php echo $this-&gt;getIdSuffix() ?&gt;&#8221;&gt;&lt;?php echo Mage::helper(&#8217;core&#8217;)-&gt;currency($_price,true,true) ?&gt;&lt;/span&gt;</p>
<p>And change it to read:</p>
<p>&lt;span class=&#8221;regular-price&#8221; id=&#8221;product-price-&lt;?php echo $_id ?&gt;&lt;?php echo $this-&gt;getIdSuffix() ?&gt;&#8221;&gt;&lt;?php echo $this-&gt;__(&#8217;Regular Price: &#8216;), Mage::helper(&#8217;core&#8217;)-&gt;currency($_price,true,true) ?&gt;&lt;/span&gt;</p>
<p>Save your file and have a look at your results.</p>
<p>You should now have &#8220;Regular Price: in front of your price in Magento</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imagedia.com/2011/04/add-text-before-price-in-magento-cart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Add A Close Button To Magento Product Image Pop-ups</title>
		<link>http://www.imagedia.com/2011/04/how-to-add-a-close-button-to-magento-product-image-pop-ups/</link>
		<comments>http://www.imagedia.com/2011/04/how-to-add-a-close-button-to-magento-product-image-pop-ups/#comments</comments>
		<pubDate>Tue, 26 Apr 2011 21:38:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento E-Commerce Help]]></category>

		<guid isPermaLink="false">http://www.imagedia.com/?p=602</guid>
		<description><![CDATA[<p></p>
 
  

<p>We wanted to add a &#8220;Close Window&#8221; button to a Magento store for one of our clients. Turns out, it&#8217;s one of the easiest things to do with Magento!</p>
<p>Open /app/design/frontend/default/yourtheme/template/catalog/product/gallery.phtml.</p>
<p>Just under the first line of code: &#60;?php $_width=$this-&#62;getImageWidth() ?&#62;</p>
<p>Add this line of code and save the file.</p>
<p>&#60;div-left&#8221;&#62;&#60;a href=&#8221;javascript:window.close()&#8221;&#62;&#60;img border=&#8221;0&#8243; src=&#8221;/images/btn-close.png&#8221;&#62;&#60;/a&#62;&#60;/div&#62;</p>
<p>Make sure you [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<div><!-- Wordbooker created FB tags --> <fb:like layout="button_count" show_faces="false" action="recommend" font="arial" colorscheme="dark"  href="http://www.imagedia.com/2011/04/how-to-add-a-close-button-to-magento-product-image-pop-ups/" width="250"></fb:like>
<div style="float:right;"><!-- Wordbooker created FB tags --> <fb:share-button class="meta" type="button" href="http://www.imagedia.com/2011/04/how-to-add-a-close-button-to-magento-product-image-pop-ups/" > </fb:share-button></div>
</div>
<p>We wanted to add a &#8220;Close Window&#8221; button to a Magento store for one of our clients. Turns out, it&#8217;s one of the easiest things to do with Magento!</p>
<p>Open /app/design/frontend/default/yourtheme/template/catalog/product/gallery.phtml.</p>
<p>Just under the first line of code: &lt;?php $_width=$this-&gt;getImageWidth() ?&gt;</p>
<p>Add this line of code and save the file.</p>
<p>&lt;div-left&#8221;&gt;&lt;a href=&#8221;javascript:window.close()&#8221;&gt;&lt;img border=&#8221;0&#8243; src=&#8221;/images/btn-close.png&#8221;&gt;&lt;/a&gt;&lt;/div&gt;</p>
<p>Make sure you create an image for the close button, name it btn-close.png and put it in your images directory.</p>
<p>If you wanted to just do a link instead, use this code: &lt;a href=&#8221;javascript:window.close()&#8221;&gt;Close Window&lt;/a&gt;</p>
<p>You should be done. <strong>That&#8217;s how we added a &#8220;Close Button&#8221; to our Magento product images.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.imagedia.com/2011/04/how-to-add-a-close-button-to-magento-product-image-pop-ups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Disable Enlarge Image View In Magento</title>
		<link>http://www.imagedia.com/2011/04/how-to-disable-enlarge-image-view-in-magento/</link>
		<comments>http://www.imagedia.com/2011/04/how-to-disable-enlarge-image-view-in-magento/#comments</comments>
		<pubDate>Tue, 26 Apr 2011 17:33:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento E-Commerce Help]]></category>

		<guid isPermaLink="false">http://www.imagedia.com/?p=598</guid>
		<description><![CDATA[<p></p>
 
  

<p>We had a client that wanted to disable the double click feature of the main product image in Magento, but still be able to click on the thumbnail images to expand them. We think this is a great little feature and will be implementing on more sites of ours.</p>
<p>Here&#8217;s how to do [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<div><!-- Wordbooker created FB tags --> <fb:like layout="button_count" show_faces="false" action="recommend" font="arial" colorscheme="dark"  href="http://www.imagedia.com/2011/04/how-to-disable-enlarge-image-view-in-magento/" width="250"></fb:like>
<div style="float:right;"><!-- Wordbooker created FB tags --> <fb:share-button class="meta" type="button" href="http://www.imagedia.com/2011/04/how-to-disable-enlarge-image-view-in-magento/" > </fb:share-button></div>
</div>
<p>We had a client that wanted to disable the double click feature of the main product image in Magento, but still be able to click on the thumbnail images to expand them. We think this is a great little feature and will be implementing on more sites of ours.</p>
<p>Here&#8217;s how to do it:</p>
<p>Go to js/varien/product.js</p>
<p>Find this code:</p>
<p>this.scale(0);</p>
<p>Event.observe(this.imageEl, &#8216;dblclick&#8217;, this.toggleFull.bind(this));</p>
<p>Event.observe($(zoomInEl), &#8216;mousedown&#8217;, this.startZoomIn.bind(this));</p>
<p>Event.observe($(zoomInEl), &#8216;mouseup&#8217;, this.stopZooming.bind(this));</p>
<p>Event.observe($(zoomInEl), &#8216;mouseout&#8217;, this.stopZooming.bind(this));</p>
<p>Event.observe($(zoomOutEl), &#8216;mousedown&#8217;, this.startZoomOut.bind(this));</p>
<p>Event.observe($(zoomOutEl), &#8216;mouseup&#8217;, this.stopZooming.bind(this));</p>
<p>Event.observe($(zoomOutEl), &#8216;mouseout&#8217;, this.stopZooming.bind(this));</p>
<p>},</p>
<p>and comment out the second line of code, like this:</p>
<p>this.scale(0);</p>
<p>//Event.observe(this.imageEl, &#8216;dblclick&#8217;, this.toggleFull.bind(this));</p>
<p>Event.observe($(zoomInEl), &#8216;mousedown&#8217;, this.startZoomIn.bind(this));</p>
<p>Event.observe($(zoomInEl), &#8216;mouseup&#8217;, this.stopZooming.bind(this));</p>
<p>Event.observe($(zoomInEl), &#8216;mouseout&#8217;, this.stopZooming.bind(this));</p>
<p>Event.observe($(zoomOutEl), &#8216;mousedown&#8217;, this.startZoomOut.bind(this));</p>
<p>Event.observe($(zoomOutEl), &#8216;mouseup&#8217;, this.stopZooming.bind(this));</p>
<p>Event.observe($(zoomOutEl), &#8216;mouseout&#8217;, this.stopZooming.bind(this));</p>
<p>},</p>
<p>Save the file. Now, when you look at your products in Magento, the main image still shows up, you can still zoom in and out with the slider, but double clicking has no effect. We also moved the code that said &#8220;Double click on above image to view full picture&#8221; that is in your theme/template/catalog/product/view/media.phtml file to the end of the file and changed wording to &#8220;Click above image for larger view&#8221;.</p>
<p>That&#8217;s kind of the summary of how we disabled the double click to zoom feature in Magento.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imagedia.com/2011/04/how-to-disable-enlarge-image-view-in-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can&#8217;t Login to Magento Admin</title>
		<link>http://www.imagedia.com/2011/04/cant-login-to-magento-admin/</link>
		<comments>http://www.imagedia.com/2011/04/cant-login-to-magento-admin/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 16:45:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento E-Commerce Help]]></category>

		<guid isPermaLink="false">http://www.imagedia.com/?p=593</guid>
		<description><![CDATA[<p></p>
 
  

<p>We&#8217;ve been working on a new Magento Commerce site for another client. We&#8217;re doing this all on our server then will transfer it to their server when completed. We&#8217;re trying to keep most of the settings we&#8217;ll be using after the transfer, so of course we have selected admin as being secure [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<div><!-- Wordbooker created FB tags --> <fb:like layout="button_count" show_faces="false" action="recommend" font="arial" colorscheme="dark"  href="http://www.imagedia.com/2011/04/cant-login-to-magento-admin/" width="250"></fb:like>
<div style="float:right;"><!-- Wordbooker created FB tags --> <fb:share-button class="meta" type="button" href="http://www.imagedia.com/2011/04/cant-login-to-magento-admin/" > </fb:share-button></div>
</div>
<p>We&#8217;ve been working on a new Magento Commerce site for another client. We&#8217;re doing this all on our server then will transfer it to their server when completed. We&#8217;re trying to keep most of the settings we&#8217;ll be using after the transfer, so of course we have selected admin as being secure using https. Problem is, we&#8217;re not going to buy a SSL cert just for the setup. We&#8217;ve been working on this site for weeks now and all of a sudden, we <strong>can&#8217;t login to admin in Magento</strong>! We did a little research and found the answer, so here it is.</p>
<p>Open file app/code/core/Mage/Core/Model/Session/Abstract/Varien.php. Find the line that reads:</p>
<p>// set session cookie params</p>
<p>session_set_cookie_params(</p>
<p>$this-&gt;getCookie()-&gt;getLifetime(),</p>
<p>$this-&gt;getCookie()-&gt;getPath(),</p>
<p>$this-&gt;getCookie()-&gt;getDomain(),</p>
<p>$this-&gt;getCookie()-&gt;isSecure(),</p>
<p>$this-&gt;getCookie()-&gt;getHttponly()</p>
<p>);</p>
<p>Change it to read:</p>
<p>// set session cookie params</p>
<p>session_set_cookie_params(</p>
<p>$this-&gt;getCookie()-&gt;getLifetime(),</p>
<p>$this-&gt;getCookie()-&gt;getPath()</p>
<p>//$this-&gt;getCookie()-&gt;getDomain(),</p>
<p>//$this-&gt;getCookie()-&gt;isSecure(),</p>
<p>// $this-&gt;getCookie()-&gt;getHttponly()</p>
<p>);</p>
<p>Save the file. Empty your browser cache and reload the page.</p>
<p>That should take care of the problem cant log in to Magento admin.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imagedia.com/2011/04/cant-login-to-magento-admin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

