<?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>Enovou&#039;s Development Blog</title>
	<atom:link href="http://developmentblog.vitahorizon.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://developmentblog.vitahorizon.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Fri, 18 Nov 2011 22:37:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Magento: Beautiful zoom effect for product image using JQuery</title>
		<link>http://developmentblog.vitahorizon.com/2011/11/16/magento-beautiful-zoom-effect-for-product-image-using-jquery/</link>
		<comments>http://developmentblog.vitahorizon.com/2011/11/16/magento-beautiful-zoom-effect-for-product-image-using-jquery/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 03:58:05 +0000</pubDate>
		<dc:creator>psn155</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://developmentblog.vitahorizon.com/?p=90</guid>
		<description><![CDATA[Main aims: + Magento v1.4 .2 does support the image viewing with its zooming effect using Prototype framework in which users have to drag and release a zoom button in order to zoom in/out the image . I found it not a friendly effect. + Instead of using this, I decided to use the Featured [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Main aims:</strong></p>
<p>+ Magento v1.4 .2 does support the image viewing with its zooming effect using Prototype framework in which users have to drag and release a zoom button in order to zoom in/out the image . I found it not a friendly effect.</p>
<p>+ Instead of using this, I decided to use the Featured Image Zoomer v1.5 (reference: <a href="http://www.dynamicdrive.com/dynamicindex4/featuredzoomer.htm">http://www.dynamicdrive.com/dynamicindex4/featuredzoomer.htm</a>) in which users just need to roll the mouse over the image, a zoomed image will automatically appear beside.</p>
<p>+ Also, users can use the mouse wheel to adjust the zoom size.</p>
<p><strong>Steps to do:</strong></p>
<p>1. Download and import JQuery (current version: 1.4.4) into the head section of the site.</p>
<p>2. Place the script <a href="http://www.dynamicdrive.com/dynamicindex4/featuredimagezoomer.js">featuredimagezoomer.js</a> in your Magento script folder. My case is &#8220;[home url]/js/jquery&#8221;. Please notice that you need to remove the code jQuery.noConfict() in this script as it will terminate all the Prototype script. (An error of this is the Add to Cart button would become &#8216;unclickable&#8217;)</p>
<p>3. Open the media.phtml from the path below</p>
<p>[home url]/app/design/frontend/default/[your theme]/template/catalog/product/view/media.phtml</p>
<p>and make the following changes:</p>
<p>4. Place the following code in the beginning of the file to import the <a href="http://www.dynamicdrive.com/dynamicindex4/featuredimagezoomer.js">featuredimagezoomer.js</a> script. The reason I put the script in this file is so that the site won&#8217;t take unnecessary time for loading this script in other pages which don&#8217;t need the zooming effect.</p>
<p><span style="color: #993300;">&lt;script type=&#8221;text/javascript&#8221; src=&#8221;&lt;?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS); ?&gt;jquery/featuredimagezoomer.js&#8221;&gt;<br />
&lt;/script&gt;</span></p>
<p><span style="color: #993300;">&lt;?php echo &#8216;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;</span></p>
<p><span style="color: #993300;">jQuery(document).ready(function(jQuery){</span></p>
<p><span style="color: #993300;">jQuery(&#8220;#image&#8221;).addimagezoom({<br />
zoomrange: [3, 10],<br />
magnifiersize: [350,350],<br />
magnifierpos: &#8220;right&#8221;,<br />
cursorshade: true,<br />
largeimage: &#8220;&#8216; . $this-&gt;helper(&#8216;catalog/image&#8217;)-&gt;init($_product, &#8216;image&#8217;) . &#8216;&#8221; //&lt;&#8211; No comma after last option!<br />
})<br />
})<br />
&lt;/script&gt;&#8217;<br />
?&gt;</span></p>
<p>5. In the paragraph &lt;p class=&#8221;product-image product-image-zoom&#8221;&gt;, make sure the image tag inside has the id=&#8221;image&#8221;.</p>
<p>6. In the division &lt;div class=&#8221;more-views&#8221;&gt;, replace the &lt;a&gt; inside the &lt;li&gt; with the following:</p>
<p><span style="color: #993300;">&lt;a href=&#8221;#&#8221; onclick=&#8221;updateImage(&#8216;&lt;?php echo $this-&gt;helper(&#8216;catalog/image&#8217;)-&gt;init($this-&gt;getProduct(), &#8216;image&#8217;, $_image-&gt;getFile())-&gt;resize(300); ?&gt;&#8217;, &#8216;&lt;?php echo $this-&gt;helper(&#8216;catalog/image&#8217;)-&gt;init($this-&gt;getProduct(), &#8216;image&#8217;, $_image-&gt;getFile()); ?&gt;&#8217;)&#8221; title=&#8221;&lt;?php echo $this-&gt;htmlEscape($_image-&gt;getLabel()) ?&gt;&#8221; ondblclick=&#8221;popWin(&#8216;&lt;?php echo $this-&gt;getGalleryUrl($_image) ?&gt;&#8217;, &#8216;gallery&#8217;, &#8216;width=300,height=300,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes&#8217;); return false;&#8221;&gt;<br />
&lt;img src=&#8221;&lt;?php echo $this-&gt;helper(&#8216;catalog/image&#8217;)-&gt;init($this-&gt;getProduct(), &#8216;thumbnail&#8217;, $_image-&gt;getFile())-&gt;resize(66); ?&gt;&#8221; width=&#8221;66&#8243; height=&#8221;66&#8243; alt=&#8221;&lt;?php echo $this-&gt;htmlEscape($_image-&gt;getLabel()) ?&gt;&#8221; /&gt;<br />
&lt;/a&gt;</span></p>
<p>7. Amend the code below to the last section of the file:</p>
<p><span style="color: #993300;">&lt;script type=&#8221;text/javascript&#8221;&gt;</span></p>
<p><span style="color: #993300;">function updateImage(smallImage, imageSource){<br />
document.getElementById(&#8216;image&#8217;).src = smallImage;</span></p>
<p><span style="color: #993300;">jQuery(&#8220;#image&#8221;).addimagezoom({ </span><span style="color: #993300;"><br />
zoomrange: [3, 10],<br />
magnifiersize: [350,350],<br />
magnifierpos: &#8220;right&#8221;,<br />
cursorshade: true,<br />
largeimage: imageSource //&lt;&#8211; No comma after last option!<br />
})<br />
}<br />
&lt;/script&gt;</span></p>
<p>8. The last thing to do is update the style sheet. Open the style.css, find the line below:</p>
<p><span style="color: #993300;">.product-view .product-img-box .product-image-zoom</span></p>
<p>and remove the<span style="color: #993300;"> z-index:9</span> from the style sheet. Without this step, even though all the code and script works fine you still won&#8217;t be able to see any thing from the front end as the CSS does not allow to.</p>
<p>Done. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://developmentblog.vitahorizon.com/2011/11/16/magento-beautiful-zoom-effect-for-product-image-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento: Create New Arrivals &amp; Specials pages that have paging toolbar and are filterable as normal category page</title>
		<link>http://developmentblog.vitahorizon.com/2011/10/23/magento-create-new-arrivals-specials-pages-that-are-filterable-as-normal-category-page-and-have-paging-toolbar/</link>
		<comments>http://developmentblog.vitahorizon.com/2011/10/23/magento-create-new-arrivals-specials-pages-that-are-filterable-as-normal-category-page-and-have-paging-toolbar/#comments</comments>
		<pubDate>Sun, 23 Oct 2011 09:52:20 +0000</pubDate>
		<dc:creator>psn155</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://developmentblog.vitahorizon.com/?p=79</guid>
		<description><![CDATA[Main aims: To create New Arrivals page and Specials page that + work just like other category pages + can be filtered by normal Shopping Options including by Category + and have paging toolbar Logic explanation: Magento (current ver: 1.4.2) does not support New Arrivals page and Specials page even though it does have the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Main aims</strong>:</p>
<p>To create New Arrivals page and Specials page that</p>
<p>+ work just like other category pages</p>
<p>+ can be filtered by normal Shopping Options including by Category</p>
<p>+ and have paging toolbar</p>
<p><strong>Logic explanation</strong>:</p>
<p>Magento (current ver:<strong> 1.4.2</strong>) does not support New Arrivals page and Specials page even though it does have the options to setup a product as new/special product. In order to create these pages, I have searched and found some solutions that can display the new arrival products by simply creating a CMS page with a small block of code. However, it does not work as I expected that those pages did not have the filterable functionality as well as the paging toolbar. Therefore, I have come up with my own solution that uses the root category (in my sample is <strong>Our Collections</strong> category) as the base category for the New Arrivals page and the Special page. By adding &#8220;key=value&#8221; attribute into the URL, the New Arrivals page is differentiated with the Specials page by the different value entered.</p>
<p>For New Arrivals page, the attribute &#8220;type=new-arrivals&#8221; is added into the url as example below: &#8230;index.php/our-collections.html?type=new-arrivals.</p>
<p>For Specials page, the attribute &#8220;type=specials&#8221; is added into the url as example below: &#8230;index.php/our-collections.html?type=specials.</p>
<p>What we then have to do is updating a core function of Magento that loads product collection so that when the page above is clicked, it will load only new arrival / special products. The function updated is called _getProductCollection that can be found in the file <strong>app\code\core\Mage\Catalog\Block\Product\List.php</strong>. Please make sure that you have backed up this file before making any changes.</p>
<p>Apart from other small changes (eg. page title change, breadscrumb change), that are all important things that we have to do so that the page can work properly as a normal category page.</p>
<p><strong>Steps to do:</strong></p>
<p><span style="color: #ff0000;"><strong>Step 1</strong></span>: Updating the Magento core file: <strong>app\code\core\Mage\Catalog\Block\Product\List.php</strong></p>
<p>Replacing thefunction _getProductCollection() with the following code:</p>
<p><span style="color: #0000ff;">protected function _getProductCollection()<br />
{<br />
$currentUrl = Mage::helper(&#8216;core/url&#8217;)-&gt;getCurrentUrl();<br />
$todayDate  = Mage::app()-&gt;getLocale()-&gt;date()-&gt;toString(Varien_Date::DATETIME_INTERNAL_FORMAT);</span></p>
<p><span style="color: #0000ff;">if (is_null($this-&gt;_productCollection)) {<br />
$layer = $this-&gt;getLayer();<br />
/* @var $layer Mage_Catalog_Model_Layer */<br />
if ($this-&gt;getShowRootCategory()) {<br />
$this-&gt;setCategoryId(Mage::app()-&gt;getStore()-&gt;getRootCategoryId());<br />
}</span></p>
<p><span style="color: #0000ff;">// if this is a product view page<br />
if (Mage::registry(&#8216;product&#8217;)) {<br />
// get collection of categories this product is associated with<br />
$categories = Mage::registry(&#8216;product&#8217;)-&gt;getCategoryCollection()<br />
-&gt;setPage(1, 1)<br />
-&gt;load();<br />
// if the product is associated with any category<br />
if ($categories-&gt;count()) {<br />
// show products from this category<br />
$this-&gt;setCategoryId(current($categories-&gt;getIterator()));<br />
}<br />
}</span></p>
<p><span style="color: #0000ff;">$origCategory = null;<br />
if ($this-&gt;getCategoryId()) {<br />
$category = Mage::getModel(&#8216;catalog/category&#8217;)-&gt;load($this-&gt;getCategoryId());<br />
if ($category-&gt;getId()) {<br />
$origCategory = $layer-&gt;getCurrentCategory();<br />
$layer-&gt;setCurrentCategory($category);<br />
}<br />
}<br />
$this-&gt;_productCollection = $layer-&gt;getProductCollection();</span></p>
<p><span style="color: #0000ff;">$this-&gt;prepareSortableFieldsByCategory($layer-&gt;getCurrentCategory());</span></p>
<p><span style="color: #0000ff;">if ($origCategory) {<br />
$layer-&gt;setCurrentCategory($origCategory);<br />
}<br />
}</span></p>
<p><span style="color: #0000ff;">if (strpos($currentUrl, &#8220;type=new-arrivals&#8221;) !== false){    // if the string &#8220;type=new-arrivals&#8221; exists in the url then<br />
$this-&gt;_productCollection = $this-&gt;_addProductAttributesAndPrices($this-&gt;_productCollection)<br />
-&gt;addStoreFilter()<br />
-&gt;addAttributeToFilter(&#8216;news_from_date&#8217;, array(&#8216;date&#8217; =&gt; true, &#8216;to&#8217; =&gt; $todayDate))<br />
-&gt;addAttributeToFilter(&#8216;news_to_date&#8217;, array(&#8216;or&#8217;=&gt; array(<br />
0 =&gt; array(&#8216;date&#8217; =&gt; true, &#8216;from&#8217; =&gt; $todayDate),<br />
1 =&gt; array(&#8216;is&#8217; =&gt; new Zend_Db_Expr(&#8216;null&#8217;)))<br />
), &#8216;left&#8217;)<br />
-&gt;addAttributeToSort(&#8216;news_from_date&#8217;, &#8216;desc&#8217;);<br />
}<br />
elseif (strpos($currentUrl, &#8220;type=specials&#8221;) !== false) {    // if the string &#8220;type=specials&#8221; exists in the url then<br />
$this-&gt;_productCollection = $this-&gt;_addProductAttributesAndPrices($this-&gt;_productCollection)<br />
-&gt;addStoreFilter()<br />
-&gt;addAttributeToFilter(&#8216;special_from_date&#8217;, array(&#8216;date&#8217; =&gt; true, &#8216;to&#8217; =&gt; $todayDate))<br />
-&gt;addAttributeToFilter(&#8216;special_to_date&#8217;, array(&#8216;or&#8217;=&gt; array(<br />
0 =&gt; array(&#8216;date&#8217; =&gt; true, &#8216;from&#8217; =&gt; $todayDate),<br />
1 =&gt; array(&#8216;is&#8217; =&gt; new Zend_Db_Expr(&#8216;null&#8217;)))<br />
), &#8216;left&#8217;)<br />
-&gt;addAttributeToSort(&#8216;special_from_date&#8217;, &#8216;desc&#8217;);<br />
}</span></p>
<p><span style="color: #0000ff;">return $this-&gt;_productCollection;<br />
}</span></p>
<p><span style="color: #ff0000;"><strong>Step 2</strong></span>:</p>
<p>Changing the page title as it, by default, is &#8220;<strong>Our Collections</strong>&#8220;. Open the file <strong>app\design\frontend\default\[your theme]\template\catalog\category\view.phtml</strong> and find the line below</p>
<p>&lt;h1&gt;&lt;?php echo $_helper-&gt;categoryAttribute($_category, $_category-&gt;getName(), &#8216;name&#8217;) ?&gt;&lt;/h1&gt;</p>
<p>and replace the whole line with the following code:</p>
<p><span style="color: #0000ff;">&lt;?php<br />
$currentUrl = Mage::helper(&#8216;core/url&#8217;)-&gt;getCurrentUrl();<br />
?&gt;</span></p>
<p><span style="color: #0000ff;">&lt;?php if (strpos($currentUrl, &#8220;type=new-arrivals&#8221;) !== false):?&gt; </span><span style="color: #0000ff;"><br />
&lt;h1&gt;&lt;?php echo &#8220;New Arrivals&#8221; ?&gt;&lt;/h1&gt;<br />
&lt;?php elseif (strpos($currentUrl, &#8220;type=specials&#8221;) !== false):?&gt;<br />
&lt;h1&gt;&lt;?php echo &#8220;Specials&#8221; ?&gt;&lt;/h1&gt;<br />
&lt;?php else: ?&gt;<br />
&lt;h1&gt;&lt;?php echo $_helper-&gt;categoryAttribute($_category, $_category-&gt;getName(), &#8216;name&#8217;) ?&gt;&lt;/h1&gt;<br />
&lt;?php endif; ?&gt; </span></p>
<p><span style="color: #ff0000;"><strong>Step 3</strong></span>:</p>
<p>Create a New Arrivals link in your website (such as in homepage) that has the address below: <strong>[home url]/our-collections.html?type=new-arrivals</strong>.</p>
<p>Create a Specials link in your website (such as in homepage) that  has the address below:<strong> [home url]/our-collections.html?type=specials.</strong></p>
<p>Now you can click into the New Arrivals or Specials link to see the result. Make sure that you have created some products that are set as new products and special products so that the page won&#8217;t be empty.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://developmentblog.vitahorizon.com/2011/10/23/magento-create-new-arrivals-specials-pages-that-are-filterable-as-normal-category-page-and-have-paging-toolbar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Javascripts moving HTML Element</title>
		<link>http://developmentblog.vitahorizon.com/2011/04/26/simple-javascripts-moving-html-element/</link>
		<comments>http://developmentblog.vitahorizon.com/2011/04/26/simple-javascripts-moving-html-element/#comments</comments>
		<pubDate>Tue, 26 Apr 2011 11:09:02 +0000</pubDate>
		<dc:creator>psn155</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://developmentblog.vitahorizon.com/?p=75</guid>
		<description><![CDATA[This scripts is to simply create an HTML Element moving horizontally. Please follow these steps: 1) For the HTML codes, put all the moving elements inside the &#8220;movingElement&#8221; Division. Then put this division inside the parent one which is &#8220;movingWrapper&#8221;. Make sure that you have all the important attributes and the windows events. &#60;div id=&#8221;movingWrapper&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>This scripts is to simply create an HTML Element moving horizontally. Please follow these steps:</p>
<p>1) For the HTML codes, put all the moving elements inside the &#8220;movingElement&#8221; Division. Then put this division inside the parent one which is &#8220;movingWrapper&#8221;. Make sure that you have all the important attributes and the windows events.</p>
<p>&lt;div <span style="color: #ff0000;">id=&#8221;movingWrapper&#8221;</span> style=&#8221;width: 100%; <span style="color: #ff0000;">overflow: hidden</span>&#8221; <span style="color: #ff0000;">onmouseover</span>=&#8221;stopMoving();&#8221; <span style="color: #ff0000;">onmouseout</span>=&#8221;continueMoving();&#8221;&gt;<br />
&lt;div<span style="color: #ff0000;"> id=&#8221;movingElement&#8221; </span>style=&#8221;width: 250px&#8221;&gt;</p>
<p>&lt;p&gt;</p>
<p>Welcome to Javascript for HTML moving<br />
&lt;/p&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;</p>
<p>2) For Javascripts, paste these code right under the &#8220;movingWrapper&#8221; Division in the HTML file:</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
//Get wrapper division<br />
var wrapper = document.getElementById(&#8220;<span style="color: #ff0000;">movingWrapper</span>&#8220;);<br />
//Get wrapper division width<br />
var width = wrapper.scrollWidth;</p>
<p>//Get Element to be moved<br />
var element = document.getElementById(&#8220;<span style="color: #ff0000;">movingElement</span>&#8220;);<br />
element.style.position = &#8216;relative&#8217;;</p>
<p>var step = 0.3;            //Moving step<br />
var <span style="color: #ff0000;">start </span>= width;        //Start position. This example is for moving from right to left<br />
var <span style="color: #ff0000;">end </span>= -element.scrollWidth;            //End position. Moving the element to the left until it completely disappears<br />
var interval = 10        //Interval time</p>
<p>var int=self.setInterval(&#8220;move()&#8221;,interval);</p>
<p>var pos = start;        //Current position</p>
<p>//This moves the element<br />
function move()<br />
{<br />
if (start &lt; end)<br />
pos += step;<br />
else<br />
pos -= step;</p>
<p>element.style.left = pos + &#8216;px&#8217;;</p>
<p>if (start &lt; end)<br />
if (pos &gt; end) pos = wrapper.scrollWidth;<br />
if (start &gt; end)<br />
if (pos &lt; end) pos = wrapper.scrollWidth;<br />
}</p>
<p>function stopMoving()<br />
{<br />
clearInterval(int);<br />
}</p>
<p>function continueMoving()<br />
{<br />
int = self.setInterval(&#8220;move()&#8221;,10);<br />
}<br />
&lt;/script&gt;</p>
<p>Done ! Enjoy</p>
]]></content:encoded>
			<wfw:commentRss>http://developmentblog.vitahorizon.com/2011/04/26/simple-javascripts-moving-html-element/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slideshow effect</title>
		<link>http://developmentblog.vitahorizon.com/2010/08/27/slideshow-effect/</link>
		<comments>http://developmentblog.vitahorizon.com/2010/08/27/slideshow-effect/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 07:21:32 +0000</pubDate>
		<dc:creator>.::DTN::.</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://developmentblog.vitahorizon.com/?p=64</guid>
		<description><![CDATA[This is a really awsome effect. Based on this writting http://jonraasch.com/blog/a-simple-jquery-slideshow , I just want to rewrite everything in my own site. And also one thing that you should consider about is in Magento, because of the confliction between Prototype and jQuery, the script in this effect won&#8217;t work properly. So, let change the $ [...]]]></description>
			<content:encoded><![CDATA[<p>This is a really awsome effect. Based on this writting <a title="http://jonraasch.com/blog/a-simple-jquery-slideshow" href="http://jonraasch.com/blog/a-simple-jquery-slideshow">http://jonraasch.com/blog/a-simple-jquery-slideshow</a> , I just want to rewrite everything in my own site. And also one thing that you should consider about is in Magento, because of the confliction between Prototype and jQuery, the script in this effect won&#8217;t work properly. So, let change the <strong><span style="color: #ff0000;">$ </span></strong>in Jquery script in the head to<strong><span style="color: #ff0000;"> jQuery</span></strong> and see how it works.</p>
<pre><strong><code>1) Insert in html page :</code></strong>
&lt;div id="slideshow"&gt;
    &lt;img src="img/img1.jpg" alt="" class="active"/&gt;
<pre><code>    &lt;img src="img/img2.jpg" alt="" /&gt;
    &lt;img src="img/img3.jpg" alt="" /&gt;
&lt;/div&gt;
</code></pre>
<p><strong>2)  Insert in CSS :</strong></pre>
<pre><code>#slideshow {
    position:relative;
    height:350px;
}

#slideshow IMG {
    position:absolute;
    top:0;
    left:0;
    z-index:8;
}

#slideshow IMG.active {
    z-index:10;
}

#slideshow IMG.last-active {
    z-index:9;
}
</code></pre>
<p><strong>3)  Insert the script  in the head of html :</strong></p>
<p><strong><span style="color: #ff0000;">jQuery.noConflict();</span><br />
</strong></p>
<pre><code>function slideSwitch() {
    var $active = </code><strong><span style="color: #ff0000;">jQuery</span></strong><code>('#slideshow IMG.active');

    if ( $active.length == 0 ) $active = </code><strong><span style="color: #ff0000;">jQuery</span></strong><code>('#slideshow IMG:last');

    var $next =  $active.next().length ? $active.next()
        : </code><strong><span style="color: #ff0000;">jQuery</span></strong><code>('#slideshow IMG:first');

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
} </code><strong><span style="color: #ff0000;">jQuery</span></strong><code>(function() {
    setInterval( "slideSwitch()", 5000 );
});

And don't forget to update your Jquery script. Enjoy !
</code></pre>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 607px; width: 1px; height: 1px; overflow: hidden;">http://developmentblog.vitahorizon.com</div>
]]></content:encoded>
			<wfw:commentRss>http://developmentblog.vitahorizon.com/2010/08/27/slideshow-effect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript: Moving HTML elements using Tween</title>
		<link>http://developmentblog.vitahorizon.com/2010/08/15/javascript-moving-html-elements-using-tween/</link>
		<comments>http://developmentblog.vitahorizon.com/2010/08/15/javascript-moving-html-elements-using-tween/#comments</comments>
		<pubDate>Sun, 15 Aug 2010 06:07:32 +0000</pubDate>
		<dc:creator>.::DTN::.</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://developmentblog.vitahorizon.com/?p=53</guid>
		<description><![CDATA[This is the script based on Tween using for any HTML elements basic animation.  Following these steps : - Insert this script file to your page : &#8220;moveTween.js&#8221;  moveTween - Create the DOM event with toggleDown and toggleUp functions , eg.  onmouseover(toggleDown([ID name], [direction], [startPos], [endPos])) , onmouseout(toggleDown([ID name], [direction], [startPos], [endPos])), &#8230; Here is [...]]]></description>
			<content:encoded><![CDATA[<p>This is the script based on Tween using for any HTML elements basic animation.  Following these steps :</p>
<p>- Insert this script file to your page : &#8220;moveTween.js&#8221;  <a href="http://developmentblog.vitahorizon.com/wp-content/uploads/2010/08/moveTween.js">moveTween</a></p>
<p>- Create the DOM event with toggleDown and toggleUp functions , eg. <span style="color: #ff0000;"> onmouseover(<em>toggleDown([<strong>ID name</strong>], [<strong>direction</strong>], [<strong>startPos</strong>], [<strong>endPos</strong>]</em>))</span> , <span style="color: #ff0000;">onmouseout(<em>toggleDown([<strong>ID name</strong>], [<strong>direction</strong>], [<strong>startPos</strong>], [<strong>endPos</strong>])</em>)</span>, &#8230;</p>
<p>Here is an example, when the &#8220;logo&#8221; is onmouseover, it will drop down from the top :</p>
<pre id="line34">&lt;div id="logo" onclick="location.href='http://www.vitacreations.com';"
style="position: absolute; top: 0; cursor:pointer;"
onmouseover="toggleDown('logo','top',0,20)";
onmouseout="toggleUp('logo','top',0,20);"&gt;
&lt;/div&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://developmentblog.vitahorizon.com/2010/08/15/javascript-moving-html-elements-using-tween/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento: Disappear Product Prices when customer does not log in</title>
		<link>http://developmentblog.vitahorizon.com/2010/07/21/magento-disappear-product-prices-when-customer-does-not-log-in/</link>
		<comments>http://developmentblog.vitahorizon.com/2010/07/21/magento-disappear-product-prices-when-customer-does-not-log-in/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 07:55:09 +0000</pubDate>
		<dc:creator>psn155</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://developmentblog.vitahorizon.com/?p=41</guid>
		<description><![CDATA[This post aims to make the Product Prices and the &#8220;Shop By&#8221; Box in the sidebar disappear in case of customers not loggin in: 1 &#8211; Disappear the Product Prices : Open [YOUR THEME]\template\catalog\product\list.phtml go to line 98 or find this code &#60;?php echo $this-&#62;getPriceHtml($_product, true) ?&#62; and replace it by : &#60;?php if (Mage::isInstalled() [...]]]></description>
			<content:encoded><![CDATA[<p>This post aims to make the Product Prices and the &#8220;Shop By&#8221; Box in the sidebar disappear in case of customers not loggin in:</p>
<p>1 &#8211; Disappear the Product Prices :</p>
<p>Open<strong> [YOUR THEME]\template\catalog\product\list.phtml</strong> go to line 98 or find this code <strong>&lt;?php echo $this-&gt;getPriceHtml($_product, true) ?&gt;</strong> and replace it by :</p>
<p>&lt;?php if (Mage::isInstalled() &amp;&amp; Mage::getSingleton(&#8216;customer/session&#8217;)-&gt;isLoggedIn()): ?&gt; &lt;?php /*check loggin in or not*/?&gt;<br />
&lt;?php echo $this-&gt;getPriceHtml($_product, true) ?&gt;<br />
&lt;?php endif;?&gt;</p>
<p>2 &#8211; Disappear the &#8220;Shop by&#8221; Box:</p>
<p>- Open<strong> [YOUR THEME]</strong><strong>\template\catalog\layer\view.phtm</strong> go to line 34 or find this code <strong>&lt;?php if($this-&gt;canShowBlock()): ?&gt;</strong> and replace it by:</p>
<p>&lt;?php if (Mage::isInstalled() &amp;&amp; Mage::getSingleton(&#8216;customer/session&#8217;)-&gt;isLoggedIn()): ?&gt;  &lt;?php /*check loggin in or not*/?&gt;<br />
&lt;?php if($this-&gt;canShowBlock()): ?&gt;</p>
<p>- Add this code to the end:</p>
<p>&lt;?php endif; ?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://developmentblog.vitahorizon.com/2010/07/21/magento-disappear-product-prices-when-customer-does-not-log-in/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento: Change page title</title>
		<link>http://developmentblog.vitahorizon.com/2010/07/20/magento-change-page-title/</link>
		<comments>http://developmentblog.vitahorizon.com/2010/07/20/magento-change-page-title/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 03:00:18 +0000</pubDate>
		<dc:creator>psn155</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://developmentblog.vitahorizon.com/?p=37</guid>
		<description><![CDATA[If you have a problem with a page title which currently shows the unexpected name (normally, these pages are the new created pages such as Contact Us, ect),  do this: 1 &#8211; Open the .xml file located in [Your Theme]/layout 2 &#8211; Add these codes to the &#60;default&#62; template &#60;reference name=&#8221;head&#8221;&#62; &#60;action method=&#8221;setTitle&#8221;&#62;&#60;title&#62;THIS IS YOUR [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a problem with a page title which currently shows the unexpected name (normally, these pages are the new created pages such as Contact Us, ect),  do this:</p>
<p>1 &#8211; Open the <strong>.xml </strong>file located in <strong>[Your Theme]/layout</strong></p>
<p>2 &#8211; Add these codes to the &lt;default&gt; template</p>
<p>&lt;reference name=&#8221;head&#8221;&gt;<br />
&lt;action method=&#8221;setTitle&#8221;&gt;&lt;title&gt;THIS IS YOUR TITLE&lt;/title&gt;&lt;/action&gt;<br />
&lt;/reference&gt;</p>
<p>Done. Enjoy !</p>
]]></content:encoded>
			<wfw:commentRss>http://developmentblog.vitahorizon.com/2010/07/20/magento-change-page-title/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add google map to your website</title>
		<link>http://developmentblog.vitahorizon.com/2010/07/20/add-google-map-to-your-website/</link>
		<comments>http://developmentblog.vitahorizon.com/2010/07/20/add-google-map-to-your-website/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 01:08:25 +0000</pubDate>
		<dc:creator>psn155</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://developmentblog.vitahorizon.com/?p=31</guid>
		<description><![CDATA[1 &#8211; Go to http://maps.google.com.au/ , search your exact address 2 &#8211; Click on the Link on the top right of the map , and then click  Customise and preview embedded map 3 &#8211; In the new window, we can adjust the map size or the view&#8230; 4 &#8211; Copy and paste the code that [...]]]></description>
			<content:encoded><![CDATA[<p>1 &#8211; Go to<a title="http://maps.google.com.au/" href="http://maps.google.com.au/" target="_blank"><em> http://maps.google.com.au/</em></a> , search your exact address</p>
<p>2 &#8211; Click on the <a id="link" rel="bookmark" href="http://maps.google.com.au/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=117+Nguyen+Cong+Tru,+S%C6%A1n+Tr%C3%A0,+Da+Nang,+Vietnam&amp;sll=15.896302,108.363251&amp;sspn=0.63661,2.113495&amp;ie=UTF8&amp;hq=&amp;hnear=Nguyen+Cong+Tru,+S%C6%A1n+Tr%C3%A0,+Da+Nang,+Vietnam&amp;ll=16.06631,108.236983&amp;spn=0.009939,0.033023&amp;z=16">Link</a> on the top right of the map , and then click  <a id="lelink" tabindex="402" href="javascript:void(0)">Customise and preview embedded map </a></p>
<p><a href="http://developmentblog.vitahorizon.com/wp-content/uploads/2010/07/map.gif"><img class="alignleft size-full wp-image-32" title="map" src="http://developmentblog.vitahorizon.com/wp-content/uploads/2010/07/map.gif" alt="" width="756" height="250" /></a></p>
<p>3 &#8211; In the new window, we can adjust the map size or the view&#8230;</p>
<p>4 &#8211; Copy and paste the code that Google gave you to embed in your website</p>
]]></content:encoded>
			<wfw:commentRss>http://developmentblog.vitahorizon.com/2010/07/20/add-google-map-to-your-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento: How to add or change breadcrumbs in pages</title>
		<link>http://developmentblog.vitahorizon.com/2010/07/20/magento-how-to-add-or-change-breadcrumbs-in-pages/</link>
		<comments>http://developmentblog.vitahorizon.com/2010/07/20/magento-how-to-add-or-change-breadcrumbs-in-pages/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 00:47:17 +0000</pubDate>
		<dc:creator>psn155</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://developmentblog.vitahorizon.com/?p=27</guid>
		<description><![CDATA[In an Magento category, you can easily see the breadcrumb right under the top main navigation menu. However, with other pages such as Home, About us, Contact us, etc, it completely disapears. This post aims to fix this, so that you can see the breadcrumb in all pages but Home. Here is the tips: 1 [...]]]></description>
			<content:encoded><![CDATA[<p>In an Magento category, you can easily see the breadcrumb right under the top main navigation menu. However, with other pages such as Home, About us, Contact us, etc, it completely disapears. This post aims to fix this, so that you can see the breadcrumb in all pages but Home. Here is the tips:</p>
<p>1 &#8211; Open this file <strong>[Your Themes]/template/page/html/breadcrumbs.phtml </strong>, if its not there, just copy the breadcrumbs.phtml in <strong>base</strong><strong><strong>/</strong>template/page/html/ </strong>to your theme in order to keep your default theme</p>
<p>2 &#8211; Delete the last line : &lt;?php endif; ?&gt;</p>
<p>3 &#8211; Add these codes to the end:</p>
<p>&lt;?php else: ?&gt;<br />
&lt;?php if(Mage::getSingleton(&#8216;cms/page&#8217;)-&gt;getIdentifier() != &#8216;home&#8217;): ?&gt;<br />
&lt;div&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;a href=&#8221;&lt;?php echo $this-&gt;getUrl(&#8221;) ?&gt;&#8221;&gt;Home&lt;/a&gt;&lt;span&gt;/ &lt;/span&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;strong&gt;&lt;?php echo $this-&gt;getLayout()-&gt;getBlock(&#8216;head&#8217;)-&gt;getTitle() ?&gt;&lt;/strong&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/div&gt;<br />
&lt;?php endif; endif;?&gt;</p>
<p>Done ! Enjoy !</p>
]]></content:encoded>
			<wfw:commentRss>http://developmentblog.vitahorizon.com/2010/07/20/magento-how-to-add-or-change-breadcrumbs-in-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento tip: Add category tree of current viewing in left navigation sidebar</title>
		<link>http://developmentblog.vitahorizon.com/2010/07/15/magento-tip-add-category-tree-of-current-viewing-in-left-navigation-sidebar/</link>
		<comments>http://developmentblog.vitahorizon.com/2010/07/15/magento-tip-add-category-tree-of-current-viewing-in-left-navigation-sidebar/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 00:54:55 +0000</pubDate>
		<dc:creator>psn155</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://developmentblog.vitahorizon.com/?p=13</guid>
		<description><![CDATA[Main aims: * Add the category tree of current viewing in left navigation sidebar instead of the &#8220;Browse by&#8221; box on top * Remove the popup menu There are 3 files that you need to change, including one hardcode file (navigation.php). Therefore, you better make sure that you already backup these files before changing them. [...]]]></description>
			<content:encoded><![CDATA[<p>Main aims:</p>
<p>* Add the category tree of current viewing in left navigation sidebar instead of the &#8220;Browse by&#8221; box on top</p>
<p>* Remove the popup menu</p>
<p>There are 3 files that you need to change, including one hardcode file (navigation.php). Therefore, you better make sure that you already backup these files before changing them. And also, keep changing the hardcode file that way whenever you update your Margento version because it may change this file automatically. (My current ver is 1.4.0.1)</p>
<p>Get into your current theme in your Magento folder, in this case, my theme is &#8220;TRANGUYEN&#8221; :</p>
<p><strong>1) </strong> <strong>app\design\frontend\default\TRANGUYEN\layout\catalog.xml</strong> : find and remove some codes in lines 82 to 84 like this</p>
<p>&lt;!&#8211;&lt;reference name=&#8221;left&#8221;&gt;<br />
&lt;block type=&#8221;catalog/navigation&#8221; name=&#8221;catalog.leftnav&#8221; after=&#8221;currency&#8221; template=&#8221;catalog/navigation/left.phtml&#8221;/&gt;<br />
&lt;/reference&gt;&#8211;&gt;</p>
<p><strong>2) </strong> <strong> skin\frontend\default\TRANGUYEN\css\styles.css</strong> : add these codes in line 1182 to 1188 like this, (max level = 5)</p>
<p>/*new code for leftnav*/<br />
#leftnav li.level1 { padding-left:10px; }<br />
#leftnav li.level2 { padding-left:20px; }<br />
#leftnav li.level3 { padding-left:30px; }<br />
#leftnav li.level4 { padding-left:40px; }<br />
#leftnav li.level5 { padding-left:50px; }<br />
/*end new code*/</p>
<p><strong>3) </strong> <strong>app\code\core\Mage\Catalog\Block\navigation.php</strong>: this is the core code file of Magento, you need to add some codes in lines 223 and 234 as below:</p>
<p><em>Copy code: </em></p>
<p>if ($this-&gt;isCategoryActive($category)) {     // new code for left navigation category tree<br />
if ($hasChildren){</p>
<p>$j = 0;<br />
$htmlChildren = &#8221;;<br />
foreach ($children as $child) {<br />
if ($child-&gt;getIsActive()) {<br />
$htmlChildren.= $this-&gt;drawItem($child, $level+1, ++$j &gt;= $cnt);<br />
}<br />
}</p>
<p>if (!empty($htmlChildren)) {<br />
/*$html.= &#8216;&lt;ul&gt;&#8217;.&#8221;\n&#8221;                  // new code for left navigation category tree<br />
.$htmlChildren                             //<br />
.&#8217;&lt;/ul&gt;&#8217;;*/                                       //<br />
$html .= $htmlChildren;         //<br />
}</p>
<p>}<br />
}</p>
<p>Done. Enjoy !</p>
]]></content:encoded>
			<wfw:commentRss>http://developmentblog.vitahorizon.com/2010/07/15/magento-tip-add-category-tree-of-current-viewing-in-left-navigation-sidebar/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

