<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Web Development</title>
	<atom:link href="http://ajmaltash.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ajmaltash.wordpress.com</link>
	<description>Welcome to the world of ajmaltash</description>
	<lastBuildDate>Sat, 28 Jan 2012 13:56:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ajmaltash.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Web Development</title>
		<link>http://ajmaltash.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ajmaltash.wordpress.com/osd.xml" title="Web Development" />
	<atom:link rel='hub' href='http://ajmaltash.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Hooks in Drupal 7</title>
		<link>http://ajmaltash.wordpress.com/2012/01/28/hooks-in-drupal-7/</link>
		<comments>http://ajmaltash.wordpress.com/2012/01/28/hooks-in-drupal-7/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 13:56:13 +0000</pubDate>
		<dc:creator>ajmaltash</dc:creator>
				<category><![CDATA[Drupal 7]]></category>

		<guid isPermaLink="false">http://ajmaltash.wordpress.com/?p=76</guid>
		<description><![CDATA[Filed under: Drupal 7<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajmaltash.wordpress.com&amp;blog=8962011&amp;post=76&amp;subd=ajmaltash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://ajmaltash.files.wordpress.com/2012/01/hooks.png"><img class="alignnone size-full wp-image-77" title="hooks" src="http://ajmaltash.files.wordpress.com/2012/01/hooks.png?w=640" alt=""   /></a></p>
<br />Filed under: <a href='http://ajmaltash.wordpress.com/category/drupal-7/'>Drupal 7</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajmaltash.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajmaltash.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajmaltash.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajmaltash.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajmaltash.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajmaltash.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajmaltash.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajmaltash.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajmaltash.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajmaltash.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajmaltash.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajmaltash.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajmaltash.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajmaltash.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajmaltash.wordpress.com&amp;blog=8962011&amp;post=76&amp;subd=ajmaltash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajmaltash.wordpress.com/2012/01/28/hooks-in-drupal-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/24c5e81e03b683e274e5ce6e21392b0d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ajmaltash</media:title>
		</media:content>

		<media:content url="http://ajmaltash.files.wordpress.com/2012/01/hooks.png" medium="image">
			<media:title type="html">hooks</media:title>
		</media:content>
	</item>
		<item>
		<title>2010 in review</title>
		<link>http://ajmaltash.wordpress.com/2011/01/03/2010-in-review/</link>
		<comments>http://ajmaltash.wordpress.com/2011/01/03/2010-in-review/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 08:47:41 +0000</pubDate>
		<dc:creator>ajmaltash</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ajmaltash.wordpress.com/?p=59</guid>
		<description><![CDATA[The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here&#8217;s a high level summary of its overall blog health: The Blog-Health-o-Meter&#8482; reads Fresher than ever. Crunchy numbers A helper monkey made this abstract painting, &#8230; <a href="http://ajmaltash.wordpress.com/2011/01/03/2010-in-review/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajmaltash.wordpress.com&amp;blog=8962011&amp;post=59&amp;subd=ajmaltash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[
<p>The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here&#8217;s a high level summary of its overall blog health:</p>
<p align="center"><img style="border:1px solid #ddd;background:#f5f5f5;padding:20px;" src="http://s0.wp.com/i/annual-recap/meter-healthy3.gif" width="250" height="183" alt="Healthy blog!"></p>
<p align="center">The <em>Blog-Health-o-Meter&trade;</em> reads Fresher than ever.</p>
<h2>Crunchy numbers</h2>
<div style="width:288px;float:right;border:1px solid #ddd;background:#fff;margin:0 0 1em 1em;padding:6px;">
<p>				<img src="http://s0.wp.com/i/annual-recap/abstract-stats-3.png" alt="Featured image" /><br />
				<br /><em>A helper monkey made this abstract painting, inspired by your stats.</em></p></div>
<p>A Boeing 747-400 passenger jet can hold 416 passengers.  This blog was viewed about <strong>7,900</strong> times in 2010.  That&#8217;s about 19 full 747s.</p>
<p>
<p>In 2010, there were <strong>8</strong> new posts, growing the total archive of this blog to 13 posts.</p>
<p>The busiest day of the year was December 7th with <strong>74</strong> views. The most popular post that day was <a style="color:#08c;" href="http://ajmaltash.wordpress.com/2010/04/08/there-has-been-an-error-processing-your-request-magento-1-4-0-1-installation/">There has been an error processing your request: magento 1.4.0.1 installation</a>.</p>
<p></p>
<h2>Where did they come from?</h2>
<p>The top referring sites in 2010 were <strong>magentocommerce.com</strong>, <strong>google.co.in</strong>, <strong>ifreestores.com</strong>, <strong>google.com</strong>, and <strong>ucanhireme.wordpress.com</strong>.</p>
<p>Some visitors came searching, mostly for <strong>magento there has been an error processing your request</strong>, <strong>there has been an error processing your request</strong>, <strong>there has been an error processing your request magento</strong>, and <strong>magento get parent category</strong>.</p>
<div style="clear:both;"></div>
<h2>Attractions in 2010</h2>
<p>These are the posts and pages that got the most views in 2010.</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">1</div>
<p>					<a style="margin-right:10px;" href="http://ajmaltash.wordpress.com/2010/04/08/there-has-been-an-error-processing-your-request-magento-1-4-0-1-installation/">There has been an error processing your request: magento 1.4.0.1 installation</a> <span style="color:#999;font-size:8pt;">April 2010</span><br />5 comments											</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">2</div>
<p>					<a style="margin-right:10px;" href="http://ajmaltash.wordpress.com/2010/05/23/print-link-on-product-detail-page-magento-1-4-0-1/">Print link on product detail page: Magento 1.4.0.1</a> <span style="color:#999;font-size:8pt;">May 2010</span><br />9 comments											</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">3</div>
<p>					<a style="margin-right:10px;" href="http://ajmaltash.wordpress.com/2010/01/10/how-to-get-parent-category-of-sub-category-in-magento/">How to get parent category of sub category in magento?</a> <span style="color:#999;font-size:8pt;">January 2010</span><br />1 comment											</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">4</div>
<p>					<a style="margin-right:10px;" href="http://ajmaltash.wordpress.com/2010/01/10/if-a-category-do-not-have-sub-categories-and-you-want-to-display-list-of-subcategories-of-parent-category-in-left-menu-for-magento/">If a category do not have sub categories and you want to display list of subcategories of parent category in left menu for magento</a> <span style="color:#999;font-size:8pt;">January 2010</span><br />2 comments											</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">5</div>
<p>					<a style="margin-right:10px;" href="http://ajmaltash.wordpress.com/2010/01/10/how-to-create-a-custom-attribute-for-category-in-magento/">How to create a custom attribute for category in Magento</a> <span style="color:#999;font-size:8pt;">January 2010</span><br />2 comments											</p>
<br />Filed under: <a href='http://ajmaltash.wordpress.com/category/uncategorized/'>Uncategorized</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajmaltash.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajmaltash.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajmaltash.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajmaltash.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajmaltash.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajmaltash.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajmaltash.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajmaltash.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajmaltash.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajmaltash.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajmaltash.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajmaltash.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajmaltash.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajmaltash.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajmaltash.wordpress.com&amp;blog=8962011&amp;post=59&amp;subd=ajmaltash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajmaltash.wordpress.com/2011/01/03/2010-in-review/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/24c5e81e03b683e274e5ce6e21392b0d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ajmaltash</media:title>
		</media:content>

		<media:content url="http://s0.wp.com/i/annual-recap/meter-healthy3.gif" medium="image">
			<media:title type="html">Healthy blog!</media:title>
		</media:content>

		<media:content url="http://s0.wp.com/i/annual-recap/abstract-stats-3.png" medium="image">
			<media:title type="html">Featured image</media:title>
		</media:content>
	</item>
		<item>
		<title>Print link on product detail page: Magento 1.4.0.1</title>
		<link>http://ajmaltash.wordpress.com/2010/05/23/print-link-on-product-detail-page-magento-1-4-0-1/</link>
		<comments>http://ajmaltash.wordpress.com/2010/05/23/print-link-on-product-detail-page-magento-1-4-0-1/#comments</comments>
		<pubDate>Sun, 23 May 2010 15:48:04 +0000</pubDate>
		<dc:creator>ajmaltash</dc:creator>
				<category><![CDATA[Magento Commerce]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Print on product view]]></category>

		<guid isPermaLink="false">http://ajmaltash.wordpress.com/?p=46</guid>
		<description><![CDATA[Coming soon <a href="http://ajmaltash.wordpress.com/2010/05/23/print-link-on-product-detail-page-magento-1-4-0-1/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajmaltash.wordpress.com&amp;blog=8962011&amp;post=46&amp;subd=ajmaltash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello guys,</p>
<p>This is a great requirement to have a print link on the product detail( product view) page in magento commerce. I am writing this content for version 1.4.0.1.</p>
<p>The content is not short or easy, I am only writing the steps to accomplish this task and hope the viewers of this site could get a solution.</p>
<p>The content has been divided into four steps and is explained step by step.</p>
<p><strong>Step1. How to start?</strong></p>
<p>The print is a command much like viewing a product detail and each command is controlled through &#8220;controllers&#8221; which is available into &#8220;module/&#8230;/action&#8221;.</p>
<p>Here for product view,</p>
<p>module = catalog</p>
<p>&#8230; = product</p>
<p>action = viewAction</p>
<p>So in case of Print command these should be</p>
<p>module = catalog</p>
<p>&#8230; = product</p>
<p>and action = print</p>
<p>In &#8220;/app/code/core/Mage/Catalog/controllers/ProductController.php&#8221; create a new funtion &#8220;printAction()&#8221;. To create this function simply copy the function &#8220;viewAction()&#8221; and rename it and modify the line</p>
<p>&#8220;Mage:dispatchEvent(&#8216;catalog_controller_product_view&#8217;,&#8230;)&#8221; to &#8220;Mage:dispatchEvent(&#8216;catalog_controller_product_print&#8217;,&#8230;)&#8221;</p>
<blockquote><p>/**</p>
<p>* Print product action function</p>
<p>in &#8220;app\code\core\Mage\Catalog\controllers\ProductController.php<br />
*/<br />
public function printAction()<br />
{<br />
if ($product = $this-&gt;_initProduct()) {<br />
Mage::dispatchEvent(&#8216;catalog_controller_product_print&#8217;, array(&#8216;product&#8217;=&gt;$product));</p>
<p>if ($this-&gt;getRequest()-&gt;getParam(&#8216;options&#8217;)) {<br />
$notice = $product-&gt;getTypeInstance(true)-&gt;getSpecifyOptionMessage();<br />
Mage::getSingleton(&#8216;catalog/session&#8217;)-&gt;addNotice($notice);<br />
}</p>
<p>Mage::getSingleton(&#8216;catalog/session&#8217;)-&gt;setLastViewedProductId($product-&gt;getId());<br />
Mage::getModel(&#8216;catalog/design&#8217;)-&gt;applyDesign($product, Mage_Catalog_Model_Design::APPLY_FOR_PRODUCT);<br />
$this-&gt;_initProductLayout($product);<br />
$this-&gt;_initLayoutMessages(&#8216;catalog/session&#8217;);<br />
$this-&gt;_initLayoutMessages(&#8216;tag/session&#8217;);<br />
$this-&gt;_initLayoutMessages(&#8216;checkout/session&#8217;);<br />
$this-&gt;renderLayout();<br />
}<br />
else {<br />
if (isset($_GET['store']) &amp;&amp; !$this-&gt;getResponse()-&gt;isRedirect()) {<br />
$this-&gt;_redirect(&#8221;);<br />
} elseif (!$this-&gt;getResponse()-&gt;isRedirect()) {<br />
$this-&gt;_forward(&#8216;noRoute&#8217;);<br />
}<br />
}<br />
}</p></blockquote>
<p><strong>Step2. Creating link for print</strong></p>
<p>Actually the real link (URL) for product view page is &#8220;/index.php/catalog/product/view/id/$id/category/$category&#8221;.</p>
<p>And the content on print page of product is much like the content on product view page and we can get easily these contents from allready available for product view page so we will keep the print link as &#8220;/index.php/catalog/product/print/id/$id&#8221;.</p>
<p>No need to add category and its id.</p>
<p>Put this code anywhere you want better in product view template file which is &#8220;/view.phtml&#8221;.</p>
<blockquote><p>&lt;a href=&#8221;&lt;?php echo $this-&gt;getBaseurl();?&gt;catalog/product/print/id/&lt;?php echo $this-&gt;getProduct()-&gt;getId();?&gt; target=&#8221;_blank&#8221;&gt;Print Product Detail&lt;/a&gt;</p></blockquote>
<p><strong>Step3. Create a block file for print</strong></p>
<p>Create a block file(.php) file. Copy View.php and rename it to Print.php and change the class name to &#8220;Mage_catalog_Block_Product_Print&#8221; and do nothing.</p>
<blockquote><p>/**<br />
* Product Print block<br />
*<br />
* @category Mage<br />
* @package Mage_Catalog<br />
* @module Catalog<br />
*/<br />
class Mage_Catalog_Block_Product_Print extends Mage_Catalog_Block_Product_Abstract<br />
{<br />
/**<br />
* Add meta information from product to head block<br />
*<br />
* @return Mage_Catalog_Block_Product_Print<br />
*/<br />
protected function _prepareLayout()<br />
{<br />
$this-&gt;getLayout()-&gt;createBlock(&#8216;catalog/breadcrumbs&#8217;);<br />
$headBlock = $this-&gt;getLayout()-&gt;getBlock(&#8216;head&#8217;);<br />
if ($headBlock) {<br />
$product = $this-&gt;getProduct();<br />
$title = $product-&gt;getMetaTitle();<br />
if ($title) {<br />
$headBlock-&gt;setTitle($title);<br />
}<br />
$keyword = $product-&gt;getMetaKeyword();<br />
$currentCategory = Mage::registry(&#8216;current_category&#8217;);<br />
if ($keyword) {<br />
$headBlock-&gt;setKeywords($keyword);<br />
} elseif($currentCategory) {<br />
$headBlock-&gt;setKeywords($product-&gt;getName());<br />
}<br />
$description = $product-&gt;getMetaDescription();<br />
if ($description) {<br />
$headBlock-&gt;setDescription( ($description) );<br />
} else {<br />
$headBlock-&gt;setDescription($product-&gt;getDescription());<br />
}<br />
if ($this-&gt;helper(&#8216;catalog/product&#8217;)-&gt;canUseCanonicalTag()) {<br />
$params = array(&#8216;_ignore_category&#8217;=&gt;true);<br />
$headBlock-&gt;addLinkRel(&#8216;canonical&#8217;, $product-&gt;getUrlModel()-&gt;getUrl($product, $params));<br />
}<br />
}</p>
<p>return parent::_prepareLayout();<br />
}</p>
<p>/**<br />
* Retrieve current product model<br />
*<br />
* @return Mage_Catalog_Model_Product<br />
*/<br />
public function getProduct()<br />
{<br />
if (!Mage::registry(&#8216;product&#8217;) &amp;&amp; $this-&gt;getProductId()) {<br />
$product = Mage::getModel(&#8216;catalog/product&#8217;)-&gt;load($this-&gt;getProductId());<br />
Mage::register(&#8216;product&#8217;, $product);<br />
}<br />
return Mage::registry(&#8216;product&#8217;);<br />
}</p>
<p>/**<br />
* Check if product can be emailed to friend<br />
*<br />
* @return bool<br />
*/<br />
public function canEmailToFriend()<br />
{<br />
$sendToFriendModel = Mage::registry(&#8216;send_to_friend_model&#8217;);<br />
return $sendToFriendModel &amp;&amp; $sendToFriendModel-&gt;canEmailToFriend();<br />
}</p>
<p>/**</p>
<p>in &#8220;app\code\core\Mage\Catalog\Block\Product\Print.php&#8221;<br />
* Retrieve url for direct adding product to cart<br />
*<br />
* @param Mage_Catalog_Model_Product $product<br />
* @param array $additional<br />
* @return string<br />
*/<br />
public function getAddToCartUrl($product, $additional = array())<br />
{<br />
if ($this-&gt;getRequest()-&gt;getParam(&#8216;wishlist_next&#8217;)){<br />
$additional['wishlist_next'] = 1;<br />
}</p>
<p>return $this-&gt;helper(&#8216;checkout/cart&#8217;)-&gt;getAddUrl($product, $additional);<br />
}</p>
<p>/**<br />
* Get JSON encripted configuration array which can be used for JS dynamic<br />
* price calculation depending on product options<br />
*<br />
* @return string<br />
*/<br />
public function getJsonConfig()<br />
{<br />
$config = array();<br />
if (!$this-&gt;hasOptions()) {<br />
return Mage::helper(&#8216;core&#8217;)-&gt;jsonEncode($config);<br />
}</p>
<p>$_request = Mage::getSingleton(&#8216;tax/calculation&#8217;)-&gt;getRateRequest(false, false, false);<br />
$_request-&gt;setProductClassId($this-&gt;getProduct()-&gt;getTaxClassId());<br />
$defaultTax = Mage::getSingleton(&#8216;tax/calculation&#8217;)-&gt;getRate($_request);</p>
<p>$_request = Mage::getSingleton(&#8216;tax/calculation&#8217;)-&gt;getRateRequest();<br />
$_request-&gt;setProductClassId($this-&gt;getProduct()-&gt;getTaxClassId());<br />
$currentTax = Mage::getSingleton(&#8216;tax/calculation&#8217;)-&gt;getRate($_request);</p>
<p>$_regularPrice = $this-&gt;getProduct()-&gt;getPrice();<br />
$_finalPrice = $this-&gt;getProduct()-&gt;getFinalPrice();<br />
$_priceInclTax = Mage::helper(&#8216;tax&#8217;)-&gt;getPrice($this-&gt;getProduct(), $_finalPrice, true);<br />
$_priceExclTax = Mage::helper(&#8216;tax&#8217;)-&gt;getPrice($this-&gt;getProduct(), $_finalPrice);</p>
<p>$config = array(<br />
&#8216;productId&#8217; =&gt; $this-&gt;getProduct()-&gt;getId(),<br />
&#8216;priceFormat&#8217; =&gt; Mage::app()-&gt;getLocale()-&gt;getJsPriceFormat(),<br />
&#8216;includeTax&#8217; =&gt; Mage::helper(&#8216;tax&#8217;)-&gt;priceIncludesTax() ? &#8216;true&#8217; : &#8216;false&#8217;,<br />
&#8216;showIncludeTax&#8217; =&gt; Mage::helper(&#8216;tax&#8217;)-&gt;displayPriceIncludingTax(),<br />
&#8216;showBothPrices&#8217; =&gt; Mage::helper(&#8216;tax&#8217;)-&gt;displayBothPrices(),<br />
&#8216;productPrice&#8217; =&gt; Mage::helper(&#8216;core&#8217;)-&gt;currency($_finalPrice, false, false),<br />
&#8216;productOldPrice&#8217; =&gt; Mage::helper(&#8216;core&#8217;)-&gt;currency($_regularPrice, false, false),<br />
&#8216;skipCalculate&#8217; =&gt; ($_priceExclTax != $_priceInclTax ? 0 : 1),<br />
&#8216;defaultTax&#8217; =&gt; $defaultTax,<br />
&#8216;currentTax&#8217; =&gt; $currentTax,<br />
&#8216;idSuffix&#8217; =&gt; &#8216;_clone&#8217;,<br />
&#8216;oldPlusDisposition&#8217; =&gt; 0,<br />
&#8216;plusDisposition&#8217; =&gt; 0,<br />
&#8216;oldMinusDisposition&#8217; =&gt; 0,<br />
&#8216;minusDisposition&#8217; =&gt; 0,<br />
);</p>
<p>$responseObject = new Varien_Object();<br />
Mage::dispatchEvent(&#8216;catalog_product_view_config&#8217;, array(&#8216;response_object&#8217;=&gt;$responseObject));<br />
if (is_array($responseObject-&gt;getAdditionalOptions())) {<br />
foreach ($responseObject-&gt;getAdditionalOptions() as $option=&gt;$value) {<br />
$config[$option] = $value;<br />
}<br />
}</p>
<p>return Mage::helper(&#8216;core&#8217;)-&gt;jsonEncode($config);<br />
}</p>
<p>/**<br />
* Return true if product has options<br />
*<br />
* @return bool<br />
*/<br />
public function hasOptions()<br />
{<br />
if ($this-&gt;getProduct()-&gt;getTypeInstance(true)-&gt;hasOptions($this-&gt;getProduct())) {<br />
return true;<br />
}<br />
return false;<br />
}</p>
<p>/**<br />
* Check if product has required options<br />
*<br />
* @return bool<br />
*/<br />
public function hasRequiredOptions()<br />
{<br />
return $this-&gt;getProduct()-&gt;getTypeInstance(true)-&gt;hasRequiredOptions($this-&gt;getProduct());<br />
}</p>
<p>}</p></blockquote>
<p><strong>Step4. Front Design</strong></p>
<p><strong>a) Layout (layout/catalog.xml)</strong></p>
<p>Copy the layout of product view and paste it under and then change the head tag &#8220;catalog_product_view&#8221; to &#8220;catalog_product_print&#8221;. Set template to &#8220;page/print_product.phtml&#8221;. And in reference, where &#8216;name=&#8221;content&#8221;&#8216; set block type to &#8220;catalog/product_print&#8221; and set template to &#8220;catalog/product/print.phtml&#8221;</p>
<p>To create print_product.phtml copy print.phtml from review block and paste it into &#8220;template/page/&#8221; folder.</p>
<blockquote><p>&lt;!&#8211;<br />
Product Print in catalog.xml<br />
&#8211;&gt;</p>
<p>&lt;catalog_product_print translate=&#8221;label&#8221;&gt;<br />
&lt;label&gt;Catalog Product View (Any)&lt;/label&gt;<br />
&lt;!&#8211; Mage_Catalog &#8211;&gt;<br />
&lt;reference name=&#8221;root&#8221;&gt;<br />
&lt;action method=&#8221;setTemplate&#8221;&gt;&lt;template&gt;page/print.phtml&lt;/template&gt;&lt;/action&gt;<br />
&lt;/reference&gt;<br />
&lt;reference name=&#8221;head&#8221;&gt;<br />
&lt;action method=&#8221;addJs&#8221;&gt;&lt;script&gt;varien/product.js&lt;/script&gt;&lt;/action&gt;</p>
<p>&lt;action method=&#8221;addItem&#8221;&gt;&lt;type&gt;js_css&lt;/type&gt;&lt;name&gt;calendar/calendar-win2k-1.css&lt;/name&gt;&lt;params/&gt;&lt;!&#8211;&lt;if/&gt;&lt;condition&gt;can_load_calendar_js&lt;/condition&gt;&#8211;&gt;&lt;/action&gt;<br />
&lt;action method=&#8221;addItem&#8221;&gt;&lt;type&gt;js&lt;/type&gt;&lt;name&gt;calendar/calendar.js&lt;/name&gt;&lt;!&#8211;&lt;params/&gt;&lt;if/&gt;&lt;condition&gt;can_load_calendar_js&lt;/condition&gt;&#8211;&gt;&lt;/action&gt;<br />
&lt;action method=&#8221;addItem&#8221;&gt;&lt;type&gt;js&lt;/type&gt;&lt;name&gt;calendar/calendar-setup.js&lt;/name&gt;&lt;!&#8211;&lt;params/&gt;&lt;if/&gt;&lt;condition&gt;can_load_calendar_js&lt;/condition&gt;&#8211;&gt;&lt;/action&gt;<br />
&lt;/reference&gt;<br />
&lt;reference name=&#8221;content&#8221;&gt;<br />
&lt;block type=&#8221;catalog/product_print&#8221; name=&#8221;product.info&#8221; template=&#8221;catalog/product/print.phtml&#8221;&gt;<br />
&lt;!&#8211;<br />
&lt;action method=&#8221;addReviewSummaryTemplate&#8221;&gt;&lt;type&gt;default&lt;/type&gt;&lt;template&gt;review/helper/summary.phtml&lt;/template&gt;&lt;/action&gt;<br />
&lt;action method=&#8221;addReviewSummaryTemplate&#8221;&gt;&lt;type&gt;short&lt;/type&gt;&lt;template&gt;review/helper/summary_short.phtml&lt;/template&gt;&lt;/action&gt;<br />
&lt;action method=&#8221;addReviewSummaryTemplate&#8221;&gt;&lt;type&gt;&#8230;&lt;/type&gt;&lt;template&gt;&#8230;&lt;/template&gt;&lt;/action&gt;<br />
&#8211;&gt;<br />
&lt;block type=&#8221;catalog/product_view_media&#8221; name=&#8221;product.info.media&#8221; as=&#8221;media&#8221; template=&#8221;catalog/product/view/media.phtml&#8221;/&gt;<br />
&lt;block type=&#8221;core/text_list&#8221; name=&#8221;alert.urls&#8221; as=&#8221;alert_urls&#8221; translate=&#8221;label&#8221;&gt;<br />
&lt;label&gt;Alert Urls&lt;/label&gt;<br />
&lt;/block&gt;</p>
<p>&lt;action method=&#8221;setTierPriceTemplate&#8221;&gt;&lt;template&gt;catalog/product/view/tierprices.phtml&lt;/template&gt;&lt;/action&gt;</p>
<p>&lt;block type=&#8221;catalog/product_list_upsell&#8221; name=&#8221;product.info.upsell&#8221; as=&#8221;upsell_products&#8221; template=&#8221;catalog/product/list/upsell.phtml&#8221;&gt;<br />
&lt;action method=&#8221;setColumnCount&#8221;&gt;&lt;columns&gt;4&lt;/columns&gt;&lt;/action&gt;<br />
&lt;action method=&#8221;setItemLimit&#8221;&gt;&lt;type&gt;upsell&lt;/type&gt;&lt;limit&gt;4&lt;/limit&gt;&lt;/action&gt;<br />
&lt;/block&gt;</p>
<p>&lt;block type=&#8221;catalog/product_view_additional&#8221; name=&#8221;product.info.additional&#8221; as=&#8221;product_additional_data&#8221; /&gt;<br />
&lt;block type=&#8221;catalog/product_view_description&#8221; name=&#8221;product.description&#8221; as=&#8221;description&#8221; template=&#8221;catalog/product/view/description.phtml&#8221;/&gt;<br />
&lt;block type=&#8221;catalog/product_view_attributes&#8221; name=&#8221;product.attributes&#8221; as=&#8221;additional&#8221; template=&#8221;catalog/product/view/attributes.phtml&#8221;/&gt;<br />
&lt;block type=&#8221;catalog/product_view&#8221; name=&#8221;product.info.addto&#8221; as=&#8221;addto&#8221; template=&#8221;catalog/product/view/addto.phtml&#8221;/&gt;<br />
&lt;block type=&#8221;catalog/product_view&#8221; name=&#8221;product.info.addtocart&#8221; as=&#8221;addtocart&#8221; template=&#8221;catalog/product/view/addtocart.phtml&#8221;/&gt;</p>
<p>&lt;block type=&#8221;catalog/product_view&#8221; name=&#8221;product.info.options.wrapper&#8221; as=&#8221;product_options_wrapper&#8221; template=&#8221;catalog/product/view/options/wrapper.phtml&#8221; translate=&#8221;label&#8221;&gt;<br />
&lt;label&gt;Info Column Options Wrapper&lt;/label&gt;<br />
&lt;block type=&#8221;core/template&#8221; name=&#8221;options_js&#8221; template=&#8221;catalog/product/view/options/js.phtml&#8221;/&gt;<br />
&lt;block type=&#8221;catalog/product_view_options&#8221; name=&#8221;product.info.options&#8221; as=&#8221;product_options&#8221; template=&#8221;catalog/product/view/options.phtml&#8221;&gt;<br />
&lt;action method=&#8221;addOptionRenderer&#8221;&gt;&lt;type&gt;text&lt;/type&gt;&lt;block&gt;catalog/product_view_options_type_text&lt;/block&gt;&lt;template&gt;catalog/product/view/options/type/text.phtml&lt;/template&gt;&lt;/action&gt;<br />
&lt;action method=&#8221;addOptionRenderer&#8221;&gt;&lt;type&gt;file&lt;/type&gt;&lt;block&gt;catalog/product_view_options_type_file&lt;/block&gt;&lt;template&gt;catalog/product/view/options/type/file.phtml&lt;/template&gt;&lt;/action&gt;<br />
&lt;action method=&#8221;addOptionRenderer&#8221;&gt;&lt;type&gt;select&lt;/type&gt;&lt;block&gt;catalog/product_view_options_type_select&lt;/block&gt;&lt;template&gt;catalog/product/view/options/type/select.phtml&lt;/template&gt;&lt;/action&gt;<br />
&lt;action method=&#8221;addOptionRenderer&#8221;&gt;&lt;type&gt;date&lt;/type&gt;&lt;block&gt;catalog/product_view_options_type_date&lt;/block&gt;&lt;template&gt;catalog/product/view/options/type/date.phtml&lt;/template&gt;&lt;/action&gt;<br />
&lt;/block&gt;<br />
&lt;block type=&#8221;core/html_calendar&#8221; name=&#8221;html_calendar&#8221; as=&#8221;html_calendar&#8221; template=&#8221;page/js/calendar.phtml&#8221;/&gt;<br />
&lt;/block&gt;<br />
&lt;block type=&#8221;catalog/product_view&#8221; name=&#8221;product.info.options.wrapper.bottom&#8221; as=&#8221;product_options_wrapper_bottom&#8221; template=&#8221;catalog/product/view/options/wrapper/bottom.phtml&#8221; translate=&#8221;label&#8221;&gt;<br />
&lt;label&gt;Bottom Block Options Wrapper&lt;/label&gt;<br />
&lt;action method=&#8221;insert&#8221;&gt;&lt;block&gt;product.tierprices&lt;/block&gt;&lt;/action&gt;<br />
&lt;block type=&#8221;catalog/product_view&#8221; name=&#8221;product.clone_prices&#8221; as=&#8221;prices&#8221; template=&#8221;catalog/product/view/price_clone.phtml&#8221;/&gt;<br />
&lt;action method=&#8221;append&#8221;&gt;&lt;block&gt;product.info.addtocart&lt;/block&gt;&lt;/action&gt;<br />
&lt;/block&gt;</p>
<p>&lt;block type=&#8221;core/template_facade&#8221; name=&#8221;product.info.container1&#8243; as=&#8221;container1&#8243;&gt;<br />
&lt;action method=&#8221;setDataByKey&#8221;&gt;&lt;key&gt;alias_in_layout&lt;/key&gt;&lt;value&gt;container1&lt;/value&gt;&lt;/action&gt;<br />
&lt;action method=&#8221;setDataByKeyFromRegistry&#8221;&gt;&lt;key&gt;options_container&lt;/key&gt;&lt;key_in_registry&gt;product&lt;/key_in_registry&gt;&lt;/action&gt;<br />
&lt;action method=&#8221;append&#8221;&gt;&lt;block&gt;product.info.options.wrapper&lt;/block&gt;&lt;/action&gt;<br />
&lt;action method=&#8221;append&#8221;&gt;&lt;block&gt;product.info.options.wrapper.bottom&lt;/block&gt;&lt;/action&gt;<br />
&lt;/block&gt;<br />
&lt;block type=&#8221;core/template_facade&#8221; name=&#8221;product.info.container2&#8243; as=&#8221;container2&#8243;&gt;<br />
&lt;action method=&#8221;setDataByKey&#8221;&gt;&lt;key&gt;alias_in_layout&lt;/key&gt;&lt;value&gt;container2&lt;/value&gt;&lt;/action&gt;<br />
&lt;action method=&#8221;setDataByKeyFromRegistry&#8221;&gt;&lt;key&gt;options_container&lt;/key&gt;&lt;key_in_registry&gt;product&lt;/key_in_registry&gt;&lt;/action&gt;<br />
&lt;action method=&#8221;append&#8221;&gt;&lt;block&gt;product.info.options.wrapper&lt;/block&gt;&lt;/action&gt;<br />
&lt;action method=&#8221;append&#8221;&gt;&lt;block&gt;product.info.options.wrapper.bottom&lt;/block&gt;&lt;/action&gt;<br />
&lt;/block&gt;<br />
&lt;action method=&#8221;unsetCallChild&#8221;&gt;&lt;child&gt;container1&lt;/child&gt;&lt;call&gt;ifEquals&lt;/call&gt;&lt;if&gt;0&lt;/if&gt;&lt;key&gt;alias_in_layout&lt;/key&gt;&lt;key&gt;options_container&lt;/key&gt;&lt;/action&gt;<br />
&lt;action method=&#8221;unsetCallChild&#8221;&gt;&lt;child&gt;container2&lt;/child&gt;&lt;call&gt;ifEquals&lt;/call&gt;&lt;if&gt;0&lt;/if&gt;&lt;key&gt;alias_in_layout&lt;/key&gt;&lt;key&gt;options_container&lt;/key&gt;&lt;/action&gt;<br />
&lt;/block&gt;<br />
&lt;/reference&gt;<br />
&lt;reference name=&#8221;right&#8221;&gt;<br />
&lt;block type=&#8221;catalog/product_list_related&#8221; name=&#8221;catalog.product.related&#8221; before=&#8221;-&#8221; template=&#8221;catalog/product/list/related.phtml&#8221;/&gt;<br />
&lt;/reference&gt;<br />
&lt;/catalog_product_print&gt;</p>
<p>/* product_print.phtml*/</p>
<p>&lt;?php<br />
/**<br />
* Template for Mage_Page_Block_Html<br />
*/<br />
?&gt;<br />
&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Strict//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#8221;&gt;<br />
&lt;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221; xml:lang=&#8221;&lt;?php echo $this-&gt;getLang() ?&gt;&#8221; lang=&#8221;&lt;?php echo $this-&gt;getLang() ?&gt;&#8221;&gt;<br />
&lt;head&gt;<br />
&lt;?php echo $this-&gt;getChildHtml(&#8216;head&#8217;) ?&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;div&gt;<br />
&lt;div&gt;<br />
&lt;img src=&#8221;&lt;?php echo $this-&gt;getPrintLogoUrl() ? $this-&gt;getPrintLogoUrl() : $this-&gt;getSkinUrl(&#8216;images/logo_print.gif&#8217;) ?&gt;&#8221; alt=&#8221;" /&gt;<br />
&lt;?php if ($this-&gt;getPrintLogoText()):?&gt;<br />
&lt;address&gt;&lt;?php echo nl2br($this-&gt;htmlEscape($this-&gt;getPrintLogoText())) ?&gt;&lt;/address&gt;<br />
&lt;?php endif;?&gt;<br />
&lt;/div&gt;<br />
&lt;?php echo $this-&gt;getChildHtml(&#8216;content&#8217;) ?&gt;<br />
&lt;div&gt;<br />
&lt;button type=&#8221;button&#8221; title=&#8221;&lt;?php echo $this-&gt;__(&#8216;Close Window&#8217;) ?&gt;&#8221; onclick=&#8221;window.close();&#8221;&gt;&lt;span&gt;&lt;span&gt;&lt;?php echo $this-&gt;__(&#8216;Close Window&#8217;) ?&gt;&lt;/span&gt;&lt;/span&gt;&lt;/button&gt;<br />
&lt;/div&gt;<br />
&lt;?php echo $this-&gt;getAbsoluteFooter() ?&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></blockquote>
<p><strong>b) Desing</strong></p>
<p>Copy &#8220;view.phtml&#8221; from &#8220;/app/desing/frontend/base/default/template/catalog/product/&#8221; and paste into the same folder and rename it &#8220;print.phtml&#8221;.</p>
<blockquote><p>/**<br />
* Product print template<br />
*<br />
* @see Mage_Catalog_Block_Product_Print<br />
* @see Mage_Review_Block_Product_Print<br />
*/<br />
?&gt;<br />
&lt;?php<br />
$_helper = $this-&gt;helper(&#8216;catalog/output&#8217;);<br />
$_product = $this-&gt;getProduct();<br />
?&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
var optionsPrice = new Product.OptionsPrice(&lt;?php echo $this-&gt;getJsonConfig() ?&gt;);<br />
&lt;/script&gt;<br />
&lt;div id=&#8221;messages_product_view&#8221;&gt;&lt;?php echo $this-&gt;getMessagesBlock()-&gt;getGroupedHtml() ?&gt;&lt;/div&gt;<br />
&lt;div&gt;<br />
&lt;div&gt;<br />
&lt;form action=&#8221;&lt;?php echo $this-&gt;getAddToCartUrl($_product) ?&gt;&#8221; method=&#8221;post&#8221; id=&#8221;product_addtocart_form&#8221;&lt;?php if($_product-&gt;getOptions()): ?&gt; enctype=&#8221;multipart/form-data&#8221;&lt;?php endif; ?&gt;&gt;<br />
&lt;div&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;product&#8221; value=&#8221;&lt;?php echo $_product-&gt;getId() ?&gt;&#8221; /&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;related_product&#8221; id=&#8221;related-products-field&#8221; value=&#8221;" /&gt;<br />
&lt;/div&gt;</p>
<p>&lt;div&gt;<br />
&lt;div&gt;<br />
&lt;h1&gt;&lt;?php echo $_helper-&gt;productAttribute($_product, $_product-&gt;getName(), &#8216;name&#8217;) ?&gt;&lt;/h1&gt;<br />
&lt;/div&gt;</p>
<p>&lt;?php if ($this-&gt;canEmailToFriend()): ?&gt;<br />
&lt;p&gt;&lt;a href=&#8221;&lt;?php echo $this-&gt;helper(&#8216;catalog/product&#8217;)-&gt;getEmailToFriendUrl($_product) ?&gt;&#8221;&gt;&lt;?php echo $this-&gt;__(&#8216;Email to a Friend&#8217;) ?&gt;&lt;/a&gt;&lt;/p&gt;<br />
&lt;?php endif; ?&gt;</p>
<p>&lt;?php echo $this-&gt;getReviewsSummaryHtml($_product, false, true)?&gt;<br />
&lt;?php echo $this-&gt;getChildHtml(&#8216;alert_urls&#8217;) ?&gt;<br />
&lt;?php echo $this-&gt;getChildHtml(&#8216;product_type_data&#8217;) ?&gt;<br />
&lt;?php echo $this-&gt;getTierPriceHtml() ?&gt;</p>
<p>&lt;?php if (!$this-&gt;hasOptions()):?&gt;<br />
&lt;div&gt;<br />
&lt;?php if($_product-&gt;isSaleable()): ?&gt;<br />
&lt;?php echo $this-&gt;getChildHtml(&#8216;addtocart&#8217;) ?&gt;<br />
&lt;?php if( $this-&gt;helper(&#8216;wishlist&#8217;)-&gt;isAllow() || $_compareUrl=$this-&gt;helper(&#8216;catalog/product_compare&#8217;)-&gt;getAddUrl($_product)): ?&gt;<br />
&lt;span&gt;&lt;?php echo $this-&gt;__(&#8216;OR&#8217;) ?&gt;&lt;/span&gt;<br />
&lt;?php endif; ?&gt;<br />
&lt;?php endif; ?&gt;<br />
&lt;?php echo $this-&gt;getChildHtml(&#8216;addto&#8217;) ?&gt;<br />
&lt;/div&gt;<br />
&lt;?php else:?&gt;<br />
&lt;?php echo $this-&gt;getChildHtml(&#8216;addto&#8217;) ?&gt;<br />
&lt;?php endif; ?&gt;</p>
<p>&lt;?php if ($_product-&gt;getShortDescription()):?&gt;<br />
&lt;div&gt;<br />
&lt;h2&gt;&lt;?php echo $this-&gt;__(&#8216;Quick Overview&#8217;) ?&gt;&lt;/h2&gt;<br />
&lt;div&gt;&lt;?php echo $_helper-&gt;productAttribute($_product, nl2br($_product-&gt;getShortDescription()), &#8216;short_description&#8217;) ?&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php endif;?&gt;</p>
<p>&lt;?php echo $this-&gt;getChildHtml(&#8216;other&#8217;);?&gt;</p>
<p>&lt;?php if ($_product-&gt;isSaleable() &amp;&amp; $this-&gt;hasOptions()):?&gt;<br />
&lt;?php echo $this-&gt;getChildChildHtml(&#8216;container1&#8242;, &#8221;, true, true) ?&gt;<br />
&lt;?php endif;?&gt;</p>
<p>&lt;/div&gt;</p>
<p>&lt;div&gt;<br />
&lt;?php echo $this-&gt;getChildHtml(&#8216;media&#8217;) ?&gt;<br />
&lt;/div&gt;</p>
<p>&lt;div&gt;&lt;/div&gt;<br />
&lt;?php if ($_product-&gt;isSaleable() &amp;&amp; $this-&gt;hasOptions()):?&gt;<br />
&lt;?php echo $this-&gt;getChildChildHtml(&#8216;container2&#8242;, &#8221;, true, true) ?&gt;<br />
&lt;?php endif;?&gt;<br />
&lt;/form&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
//&lt;![CDATA[<br />
var productAddToCartForm = new VarienForm('product_addtocart_form');<br />
productAddToCartForm.submit = function(){<br />
if (this.validator.validate()) {<br />
this.form.submit();<br />
}<br />
}.bind(productAddToCartForm);<br />
//]]&gt;<br />
&lt;/script&gt;<br />
&lt;/div&gt;</p>
<p>&lt;div&gt;<br />
&lt;?php echo $this-&gt;getChildHtml(&#8216;description&#8217;) ?&gt;<br />
&lt;?php echo $this-&gt;getChildHtml(&#8216;additional&#8217;) ?&gt;<br />
&lt;?php echo $this-&gt;getChildHtml(&#8216;upsell_products&#8217;) ?&gt;<br />
&lt;?php echo $this-&gt;getChildHtml(&#8216;product_additional_data&#8217;) ?&gt;<br />
&lt;?php echo $this-&gt;getProductId();?&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;</p></blockquote>
<p>Make sure you have made backup of your magento project.</p>
<br />Filed under: <a href='http://ajmaltash.wordpress.com/category/uncategorized/magento-commerce/'>Magento Commerce</a>, <a href='http://ajmaltash.wordpress.com/category/web-development/'>Web Development</a> Tagged: <a href='http://ajmaltash.wordpress.com/tag/print-on-product-view/'>Print on product view</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajmaltash.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajmaltash.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajmaltash.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajmaltash.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajmaltash.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajmaltash.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajmaltash.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajmaltash.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajmaltash.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajmaltash.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajmaltash.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajmaltash.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajmaltash.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajmaltash.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajmaltash.wordpress.com&amp;blog=8962011&amp;post=46&amp;subd=ajmaltash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajmaltash.wordpress.com/2010/05/23/print-link-on-product-detail-page-magento-1-4-0-1/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/24c5e81e03b683e274e5ce6e21392b0d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ajmaltash</media:title>
		</media:content>
	</item>
		<item>
		<title>There has been an error processing your request: magento 1.4.0.1 installation</title>
		<link>http://ajmaltash.wordpress.com/2010/04/08/there-has-been-an-error-processing-your-request-magento-1-4-0-1-installation/</link>
		<comments>http://ajmaltash.wordpress.com/2010/04/08/there-has-been-an-error-processing-your-request-magento-1-4-0-1-installation/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 11:48:54 +0000</pubDate>
		<dc:creator>ajmaltash</dc:creator>
				<category><![CDATA[Magento Commerce]]></category>
		<category><![CDATA[Magento 1.4 installation]]></category>
		<category><![CDATA[Request error magento]]></category>

		<guid isPermaLink="false">http://ajmaltash.wordpress.com/?p=41</guid>
		<description><![CDATA[After  installing  Magento 1.4.0.1,  installation fails. There is error commenting There has been an error processing your request Exception printing is disabled by default for security reasons. Error log record number: 281887837 This issue specially comes on localhost. Please forgive &#8230; <a href="http://ajmaltash.wordpress.com/2010/04/08/there-has-been-an-error-processing-your-request-magento-1-4-0-1-installation/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajmaltash.wordpress.com&amp;blog=8962011&amp;post=41&amp;subd=ajmaltash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After  installing  Magento 1.4.0.1,  installation fails. There is error commenting</p>
<p>There has been an error processing your request</p>
<p>Exception printing is disabled by default for security reasons.</p>
<p>Error log record number: 281887837</p>
<p>This issue specially comes on localhost. Please forgive me if I left anything out.</p>
<p>You have not do much more for this problem.</p>
<p>Open this file ‘app\code\core\Mage\Core\Model\Session\Abstract\varien.php’ and comment these lines, from line no. 77 to 98</p>
<p>$this-&gt;getCookie()-&gt;getDomain(),<br />
$this-&gt;getCookie()-&gt;isSecure(),<br />
$this-&gt;getCookie()-&gt;getHttponly()</p>
<p>and</p>
<p>if (!$cookieParams['httponly']) {<br />
unset($cookieParams['httponly']);<br />
if (!$cookieParams['secure']) {<br />
unset($cookieParams['secure']);<br />
if (!$cookieParams['domain']) {<br />
unset($cookieParams['domain']);<br />
}<br />
}<br />
}</p>
<p>if (isset($cookieParams['domain'])) {<br />
$cookieParams['domain'] = $cookie-&gt;getDomain();<br />
}</p>
<p>I hope this will help you.</p>
<p><!--Session data--></p>
<br />Filed under: <a href='http://ajmaltash.wordpress.com/category/uncategorized/magento-commerce/'>Magento Commerce</a> Tagged: <a href='http://ajmaltash.wordpress.com/tag/magento-1-4-installation/'>Magento 1.4 installation</a>, <a href='http://ajmaltash.wordpress.com/tag/request-error-magento/'>Request error magento</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajmaltash.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajmaltash.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajmaltash.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajmaltash.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajmaltash.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajmaltash.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajmaltash.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajmaltash.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajmaltash.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajmaltash.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajmaltash.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajmaltash.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajmaltash.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajmaltash.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajmaltash.wordpress.com&amp;blog=8962011&amp;post=41&amp;subd=ajmaltash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajmaltash.wordpress.com/2010/04/08/there-has-been-an-error-processing-your-request-magento-1-4-0-1-installation/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/24c5e81e03b683e274e5ce6e21392b0d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ajmaltash</media:title>
		</media:content>
	</item>
		<item>
		<title>If a category do not have sub categories and you want to display list of subcategories of parent category in left menu for magento</title>
		<link>http://ajmaltash.wordpress.com/2010/01/10/if-a-category-do-not-have-sub-categories-and-you-want-to-display-list-of-subcategories-of-parent-category-in-left-menu-for-magento/</link>
		<comments>http://ajmaltash.wordpress.com/2010/01/10/if-a-category-do-not-have-sub-categories-and-you-want-to-display-list-of-subcategories-of-parent-category-in-left-menu-for-magento/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 13:18:07 +0000</pubDate>
		<dc:creator>ajmaltash</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Left navigation]]></category>
		<category><![CDATA[Magento Commerce]]></category>
		<category><![CDATA[Sub categories]]></category>

		<guid isPermaLink="false">http://ajmaltash.wordpress.com/?p=37</guid>
		<description><![CDATA[You want to show list of sub categories of category in left menu. If a category do not have sub categories then in this case you want to display the subcategories of parent category, then do not worry. Here is &#8230; <a href="http://ajmaltash.wordpress.com/2010/01/10/if-a-category-do-not-have-sub-categories-and-you-want-to-display-list-of-subcategories-of-parent-category-in-left-menu-for-magento/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajmaltash.wordpress.com&amp;blog=8962011&amp;post=37&amp;subd=ajmaltash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You want to show list of sub categories of category in left menu.</p>
<p>If a category do not have sub categories then in this case you want to display the subcategories of parent category, then do not worry.</p>
<p>Here is the code you may get happy.</p>
<p>Make a copy of your  template/catalog/navigation/left.phtm. Now</p>
<p>Overwrite template/catalog/navigation/left.phtml with this code</p>
<blockquote><div class="block block-layered-nav">
<div class="block-content">
<p>	    getStoreCategories() as $_category ) {<br />
		    if ( $this-&gt;isCategoryActive( $_category ) ) {</p>
<p>	    ?&gt;</p>
<p class="block-subtitle">getName() ?&gt;</p>
<ul class="redballLeft">
		getChildren();<br />
                $hasChildren = $children &amp;&amp; $children-&gt;count();<br />
                if ( $hasChildren ) {<br />
                    $this_id = $_category-&gt;getId();<br />
                    foreach ( $children as $child ) {<br />
                        if ( $child-&gt;getIsActive() ) {<br />
    ?&gt;</p>
<p>    &lt;liisCategoryActive( $child ) ) ? &#8221; class=&#8217;current&#8217;&#8221; : &#8220;&#8221; ?&gt;&gt;&lt;a href=&quot;getCategoryUrl( $child ); ?&gt;&#8221;&gt;getName(); ?&gt;</a></li>
</ul>
<p>		 decorateDataList(&#8216;narrow-by-list2&#8242;)</p></div>
</div>
</blockquote>
<p>I hope it will be hillarious.</p>
<p>﻿</p>
<br />Posted in Web Development Tagged: Left navigation, Magento Commerce, Sub categories <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajmaltash.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajmaltash.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajmaltash.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajmaltash.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajmaltash.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajmaltash.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajmaltash.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajmaltash.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajmaltash.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajmaltash.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajmaltash.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajmaltash.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajmaltash.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajmaltash.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajmaltash.wordpress.com&amp;blog=8962011&amp;post=37&amp;subd=ajmaltash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajmaltash.wordpress.com/2010/01/10/if-a-category-do-not-have-sub-categories-and-you-want-to-display-list-of-subcategories-of-parent-category-in-left-menu-for-magento/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/24c5e81e03b683e274e5ce6e21392b0d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ajmaltash</media:title>
		</media:content>
	</item>
		<item>
		<title>Cookies and admin login problem after installtion of magento</title>
		<link>http://ajmaltash.wordpress.com/2010/01/10/cookies-and-admin-login-problem-after-installtion-of-magento/</link>
		<comments>http://ajmaltash.wordpress.com/2010/01/10/cookies-and-admin-login-problem-after-installtion-of-magento/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 13:02:45 +0000</pubDate>
		<dc:creator>ajmaltash</dc:creator>
				<category><![CDATA[Magento Commerce]]></category>
		<category><![CDATA[Admin problem]]></category>
		<category><![CDATA[Cookies problem]]></category>

		<guid isPermaLink="false">http://ajmaltash.wordpress.com/?p=35</guid>
		<description><![CDATA[This issue specially comes on localhost. Please forgive me if I left anything out. You have not do much more for this problem. Open this file &#8216;app\code\core\Mage\Core\Model\Session\Abstract\varien.php&#8217; and comment these lines, $this-&#62;getCookie()-&#62;getDomain(), $this-&#62;getCookie()-&#62;isSecure(), $this-&#62;getCookie()-&#62;getHttponly() Posted in Magento Commerce Tagged: Admin &#8230; <a href="http://ajmaltash.wordpress.com/2010/01/10/cookies-and-admin-login-problem-after-installtion-of-magento/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajmaltash.wordpress.com&amp;blog=8962011&amp;post=35&amp;subd=ajmaltash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This issue specially comes on localhost. Please forgive me if I left anything out.</p>
<p>You have not do much more for this problem.</p>
<p>Open this file &#8216;app\code\core\Mage\Core\Model\Session\Abstract\varien.php&#8217; and comment these lines,</p>
<p>$this-&gt;getCookie()-&gt;getDomain(),<br />
$this-&gt;getCookie()-&gt;isSecure(),<br />
$this-&gt;getCookie()-&gt;getHttponly()</p>
<br />Posted in Magento Commerce Tagged: Admin problem, Cookies problem, Magento Commerce <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajmaltash.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajmaltash.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajmaltash.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajmaltash.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajmaltash.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajmaltash.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajmaltash.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajmaltash.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajmaltash.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajmaltash.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajmaltash.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajmaltash.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajmaltash.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajmaltash.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajmaltash.wordpress.com&amp;blog=8962011&amp;post=35&amp;subd=ajmaltash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajmaltash.wordpress.com/2010/01/10/cookies-and-admin-login-problem-after-installtion-of-magento/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/24c5e81e03b683e274e5ce6e21392b0d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ajmaltash</media:title>
		</media:content>
	</item>
		<item>
		<title>How to edit footer block of Admin part in magento</title>
		<link>http://ajmaltash.wordpress.com/2010/01/10/how-to-edit-footer-block-of-admin-part-in-magento/</link>
		<comments>http://ajmaltash.wordpress.com/2010/01/10/how-to-edit-footer-block-of-admin-part-in-magento/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 12:28:58 +0000</pubDate>
		<dc:creator>ajmaltash</dc:creator>
				<category><![CDATA[Magento Commerce]]></category>

		<guid isPermaLink="false">http://ajmaltash.wordpress.com/2010/01/10/how-to-edit-footer-block-of-admin-part-in-magento/</guid>
		<description><![CDATA[This is very simple, you have to go to this file&#8230;. &#8220;app/design/adminhtml/default/default/tempate/footer.phtml&#8221; and modify it as per your need. Posted in Magento Commerce<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajmaltash.wordpress.com&amp;blog=8962011&amp;post=34&amp;subd=ajmaltash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is very simple, you have to go to this file&#8230;.</p>
<p>&#8220;app/design/adminhtml/default/default/tempate/footer.phtml&#8221; and modify it as per your need.</p>
<br />Posted in Magento Commerce  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajmaltash.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajmaltash.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajmaltash.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajmaltash.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajmaltash.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajmaltash.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajmaltash.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajmaltash.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajmaltash.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajmaltash.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajmaltash.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajmaltash.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajmaltash.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajmaltash.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajmaltash.wordpress.com&amp;blog=8962011&amp;post=34&amp;subd=ajmaltash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajmaltash.wordpress.com/2010/01/10/how-to-edit-footer-block-of-admin-part-in-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/24c5e81e03b683e274e5ce6e21392b0d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ajmaltash</media:title>
		</media:content>
	</item>
		<item>
		<title>How to change the logo in admin part of magento</title>
		<link>http://ajmaltash.wordpress.com/2010/01/10/how-to-change-the-logo-in-admin-part-of-magento/</link>
		<comments>http://ajmaltash.wordpress.com/2010/01/10/how-to-change-the-logo-in-admin-part-of-magento/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 12:20:10 +0000</pubDate>
		<dc:creator>ajmaltash</dc:creator>
				<category><![CDATA[Magento Commerce]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Admin Logo]]></category>

		<guid isPermaLink="false">http://ajmaltash.wordpress.com/2010/01/10/how-to-change-the-logo-in-admin-part-of-magento/</guid>
		<description><![CDATA[Go to this file app/design/adminhtml/default/default/tempate/page.phtml and change the code of second line. You can replace with image or html text, both will work. Posted in Magento Commerce, Web Development Tagged: Admin Logo, Magento Commerce<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajmaltash.wordpress.com&amp;blog=8962011&amp;post=32&amp;subd=ajmaltash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Go to this file  app/design/adminhtml/default/default/tempate/page.phtml and change the code of second line. You can replace with image or html text, both will work. </p>
<div id="refHTML"></div>
<br />Posted in Magento Commerce, Web Development Tagged: Admin Logo, Magento Commerce <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajmaltash.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajmaltash.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajmaltash.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajmaltash.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajmaltash.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajmaltash.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajmaltash.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajmaltash.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajmaltash.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajmaltash.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajmaltash.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajmaltash.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajmaltash.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajmaltash.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajmaltash.wordpress.com&amp;blog=8962011&amp;post=32&amp;subd=ajmaltash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajmaltash.wordpress.com/2010/01/10/how-to-change-the-logo-in-admin-part-of-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/24c5e81e03b683e274e5ce6e21392b0d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ajmaltash</media:title>
		</media:content>
	</item>
		<item>
		<title>How to get parent category of sub category in magento?</title>
		<link>http://ajmaltash.wordpress.com/2010/01/10/how-to-get-parent-category-of-sub-category-in-magento/</link>
		<comments>http://ajmaltash.wordpress.com/2010/01/10/how-to-get-parent-category-of-sub-category-in-magento/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 08:35:42 +0000</pubDate>
		<dc:creator>ajmaltash</dc:creator>
				<category><![CDATA[Magento Commerce]]></category>
		<category><![CDATA[Parent Category]]></category>

		<guid isPermaLink="false">http://ajmaltash.wordpress.com/2010/01/10/how-to-get-parent-category-of-sub-category-in-magento/</guid>
		<description><![CDATA[In template/catalog/navigation/left.phtm file you can use this very short code to get id of parent category of a sub category. Use this: $this_current_category = Mage::registry(&#8216;current_category&#8217;); $this_parent_id = $this_current_category-&#62;parent_id; Posted in Magento Commerce Tagged: Magento Commerce, Parent Category<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajmaltash.wordpress.com&amp;blog=8962011&amp;post=31&amp;subd=ajmaltash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In template/catalog/navigation/left.phtm file you can use this very short code to get id of parent category of a sub category.  Use this: $this_current_category = Mage::registry(&#8216;current_category&#8217;); $this_parent_id = $this_current_category-&gt;parent_id; </p>
<div id="refHTML"></div>
<br />Posted in Magento Commerce Tagged: Magento Commerce, Parent Category <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajmaltash.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajmaltash.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajmaltash.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajmaltash.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajmaltash.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajmaltash.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajmaltash.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajmaltash.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajmaltash.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajmaltash.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajmaltash.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajmaltash.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajmaltash.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajmaltash.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajmaltash.wordpress.com&amp;blog=8962011&amp;post=31&amp;subd=ajmaltash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajmaltash.wordpress.com/2010/01/10/how-to-get-parent-category-of-sub-category-in-magento/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/24c5e81e03b683e274e5ce6e21392b0d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ajmaltash</media:title>
		</media:content>
	</item>
		<item>
		<title>How to create a custom attribute for category in Magento</title>
		<link>http://ajmaltash.wordpress.com/2010/01/10/how-to-create-a-custom-attribute-for-category-in-magento/</link>
		<comments>http://ajmaltash.wordpress.com/2010/01/10/how-to-create-a-custom-attribute-for-category-in-magento/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 08:27:35 +0000</pubDate>
		<dc:creator>ajmaltash</dc:creator>
				<category><![CDATA[Magento Commerce]]></category>

		<guid isPermaLink="false">http://ajmaltash.wordpress.com/?p=28</guid>
		<description><![CDATA[Magento Commerce application does not support to create a custom attribute for category through administration section, it only support for products. Then how can someone create a custom attribute for category. Don’t worry, it is easy. For this you have &#8230; <a href="http://ajmaltash.wordpress.com/2010/01/10/how-to-create-a-custom-attribute-for-category-in-magento/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajmaltash.wordpress.com&amp;blog=8962011&amp;post=28&amp;subd=ajmaltash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Magento Commerce application does not support to create a custom attribute for category through administration section, it only support for products.</p>
<p>Then how can someone create a custom attribute for category. Don’t worry, it is easy.</p>
<p>For this you have to understand two basic database tables for attribute.</p>
<p>These are ‘eav_attribute’ and ‘eav_entity_attribute’. So you have to insert two related records. One in first table and other in second table. You must have knowledge about fields for these tables. Explaining some of these.</p>
<p><strong>For eav_attribute</strong></p>
<p>* attribute_id: auto incremented id of attribute, you have not to insert value for this field.<br />
* entity_type_id: for category it is 3<br />
* attribute_code: the field you want to add, for example ‘category_sort_order’<br />
* backend_type: data type of field<br />
* front_end_input: HTML controller<br />
* front_end_label: for example ‘Category sort order’</p>
<p>Now sql query for eav_attribute table<br />
<strong>INSERT INTO eav_attribute<br />
(entity_type_id, attribute_code, backend_type, frontend_input, frontend_label, default_value, apply_to, position )<br />
VALUES<br />
(3, &#8216;category_featured&#8217;, &#8216;int&#8217;, &#8216;text&#8217;, &#8216;Featured Category&#8217;, &#8221;, &#8217;1&#8242;,1);</strong><br />
Now note the newly created attribute id say it 425.<br />
Also find out the maximum sort order from eav_entity_attribute say 58.<br />
Now sql query for second table<br />
<strong>insert into eav_entity_attribute(entity_attribute_id, entity_type_id, attribute_set_id, attribute_group_id, attribute_id, sort_orer ) values(425,3,3,3,425,58)</strong><br />
Now in admin section open category page there you will see Featured Category.</p>
<br />Posted in Magento Commerce  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajmaltash.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajmaltash.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajmaltash.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajmaltash.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajmaltash.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajmaltash.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajmaltash.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajmaltash.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajmaltash.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajmaltash.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajmaltash.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajmaltash.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajmaltash.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajmaltash.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajmaltash.wordpress.com&amp;blog=8962011&amp;post=28&amp;subd=ajmaltash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajmaltash.wordpress.com/2010/01/10/how-to-create-a-custom-attribute-for-category-in-magento/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/24c5e81e03b683e274e5ce6e21392b0d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ajmaltash</media:title>
		</media:content>
	</item>
	</channel>
</rss>
