<?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>Huy Dinh &#187; zoomer</title>
	<atom:link href="http://huydinh.co.uk/blog/tag/zoomer/feed/" rel="self" type="application/rss+xml" />
	<link>http://huydinh.co.uk/blog</link>
	<description>Just 8 bit crazy about coding</description>
	<lastBuildDate>Sat, 23 Jan 2010 11:47:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Replacement zoomer for Magento</title>
		<link>http://huydinh.co.uk/blog/2008/08/31/replacement-zoomer-for-magento/</link>
		<comments>http://huydinh.co.uk/blog/2008/08/31/replacement-zoomer-for-magento/#comments</comments>
		<pubDate>Sun, 31 Aug 2008 11:57:55 +0000</pubDate>
		<dc:creator>Huy Dinh</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[zoomer]]></category>

		<guid isPermaLink="false">http://huydinh.co.uk/blog/?p=40</guid>
		<description><![CDATA[One of Magento's little annoyances is the main image preview method - like everything else about Magento, it comes with bells and whistles. Is that a bad thing? Well, yes.
Before I complain, look at the original zoomer.
I'd argue whether the average user needs to zoom into an image using the a slider, because imo, they [...]]]></description>
			<content:encoded><![CDATA[<p>One of <a title="Magento homepage" href="http://www.magentocommerce.com/" target="_blank">Magento</a>'s little annoyances is the main image preview method - like everything else about Magento, it comes with bells and whistles. Is that a bad thing? Well, yes.</p>
<p>Before I complain, look at the <a href="http://demo.magentocommerce.com/asicsr-men-s-gel-kayanor-xii.html">original zoomer</a>.</p>
<p>I'd argue whether the average user needs to zoom into an image using the a slider, because imo, they wither want to see the whole image or as much detail as possible (maximum zoom). Luckily the front end is much easier to change than the back end, so I've made my own zoomer tool which is infinitely easier to use (because you can't actually control anything) you just roll the mouse pointer over the image, a little box will appear that shows a portion of the actual image with maximum zoom. Move the mouse pointer and the zoomed image will be updated accordingly.</p>
<p>Easy, peasy, nifty.</p>
<p>See a <a title="Zoomer demo" href="/demo/zoomer/">demo</a> and <a title="Download zoomer" href="/demo/zoomer/zoomer.zip">download</a> it.</p>
<p>It was written specificly for <a title="Magento homepage" href="http://www.magentocommerce.com/" target="_blank">Magento</a> 1.1 so uses <a title="Prototype homepage" href="http://www.prototypejs.org/" target="_blank">Prototype</a> 1.4 instead of the latest.</p>
<p>To use it, follow similar instructions to <a title="Install Lightbox for Magento" href="http://www.magentocommerce.com/wiki/adding_lightbox_to_magento_v2" target="_blank">installing lightbox</a>:</p>
<p>Put the .js in the main js folder: /js/huy/.<br />
Put the .css in your theme's css folder: /skin/frontend/default/default/css/huy/</p>
<p>In /app/design/frontend/default/default/template/catalog/product/view/ delete the following lines:</p>
<div class="igBar"><span id="lphp-2"><a href="#" onclick="javascript:showPlainTxt('php-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-2">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;p <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"a-center"</span> id=<span style="color:#FF0000;">"track_hint"</span>&gt;&lt;?php <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#0000FF;">$this</span>-&gt;__<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Double click on above image to view full picture'</span><span style="color:#006600; font-weight:bold;">&#41;</span> ?&gt;&lt;/p&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;div <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"image-zoom"</span> id=<span style="color:#FF0000;">"track_outer"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;img id=<span style="color:#FF0000;">"zoom_out"</span> src=<span style="color:#FF0000;">"&lt;?php echo $this-&gt;getSkinUrl('images/slider_btn_zoom_out.gif') ?&gt;"</span> alt=<span style="color:#FF0000;">"&lt;?php echo $this-&gt;__('Zoom Out') ?&gt;"</span> <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"btn-zoom-out"</span> /&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;div id=<span style="color:#FF0000;">"track"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=<span style="color:#FF0000;">"handle"</span>&gt;&lt;/div&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;/div&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;img id=<span style="color:#FF0000;">"zoom_in"</span> src=<span style="color:#FF0000;">"&lt;?php echo $this-&gt;getSkinUrl('images/slider_btn_zoom_in.gif') ?&gt;"</span> alt=<span style="color:#FF0000;">"&lt;?php echo $this-&gt;__('Zoom In') ?&gt;"</span> <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"btn-zoom-in"</span> /&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/div&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color:#FF0000;">"text/javascript"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; Event.observe<span style="color:#006600; font-weight:bold;">&#40;</span>window, <span style="color:#FF0000;">'load'</span>, <span style="color:#000000; font-weight:bold;">function</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; product_zoom = <span style="color:#000000; font-weight:bold;">new</span> Product.Zoom<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'image'</span>, <span style="color:#FF0000;">'track'</span>, <span style="color:#FF0000;">'handle'</span>, <span style="color:#FF0000;">'zoom_in'</span>, <span style="color:#FF0000;">'zoom_out'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;/script&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>You may want to change the styling of zoomer.css to taste.</p>
<p>Remember to minify it!</p>
]]></content:encoded>
			<wfw:commentRss>http://huydinh.co.uk/blog/2008/08/31/replacement-zoomer-for-magento/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
