<?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>MagJournal &#187; Tips</title>
	<atom:link href="http://www.magjournal.com/category/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.magjournal.com</link>
	<description>Magento Insider Journal</description>
	<lastBuildDate>Tue, 13 Jul 2010 11:59:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Increase product image quality</title>
		<link>http://www.magjournal.com/2010/07/increase-product-image-quality/</link>
		<comments>http://www.magjournal.com/2010/07/increase-product-image-quality/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 11:50:11 +0000</pubDate>
		<dc:creator>Mark Clark</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.magjournal.com/?p=249</guid>
		<description><![CDATA[Magento by default compress and reduce the quality of uploaded product images. This tips show you how to increase the product image quality. To adjust this setting open up app/code/core/Mage/Media/Model/File/Image.php and go to around line #168. There, modify the number 80 &#8230; <a href="http://www.magjournal.com/2010/07/increase-product-image-quality/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Magento by default compress and reduce the quality of uploaded product images. This tips show you how to increase the product image quality.</p>
<p><span id="more-249"></span>To adjust this setting open up app/code/core/Mage/Media/Model/File/Image.php and go to around line #168. There, modify the number 80 in line $result = imagejpeg($object-&gt;getTmpImage(), $object-&gt;getFilePath(true), 80); to a higher number. Note that this is a core hack and will most likely be overwritten during a full Magento upgrade.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.magjournal.com/2010/07/increase-product-image-quality/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ten great ecommerce tips for Magento</title>
		<link>http://www.magjournal.com/2009/07/ten-great-ecommerce-tips-for-magento/</link>
		<comments>http://www.magjournal.com/2009/07/ten-great-ecommerce-tips-for-magento/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 12:57:44 +0000</pubDate>
		<dc:creator>Mark Clark</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.magjournal.com/?p=124</guid>
		<description><![CDATA[Practical eCommerce &#8211; the leader in Ecommerce news &#8211; asks industry insiders each month to share a great, innovative idea that could help an ecommerce company succeed. Here’s what ten of them had to say for the July 2009 installment. &#8230; <a href="http://www.magjournal.com/2009/07/ten-great-ecommerce-tips-for-magento/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Practical eCommerce &#8211; the leader in Ecommerce news &#8211; </strong>asks industry insiders each month to share a great, innovative idea that could help an ecommerce company succeed. Here’s what ten of them had to say for the July 2009 installment.<span id="more-124"></span></p>
<h3 style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; font-weight: normal; font-style: inherit; font-size: 1.25em; font-family: inherit; vertical-align: baseline; color: #111111; line-height: 1; padding: 0px; border: 0px initial initial;"><span style="color: #000000; line-height: 19px; font-size: 13px;"><span style="color: #111111;">1. Focus on Upsell Products, <strong>Roy Andre Tollefsen, </strong>Lead Designer, <a style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit; vertical-align: baseline; color: #0a3270; text-decoration: none; padding: 0px; margin: 0px; border: 0px initial initial;" title="Magento themes and Magento Templates" href="http://www.silverthemes.com/">Silverthemes.com</a><br />
2. Automation is Not a Subsitute for Outstanding Support<br />
3. </span><span style="line-height: 16px; color: #111111;">Tap Location Online to Drive Offline Sales<br />
<span style="color: #000000; line-height: 19px;">4. <span style="line-height: 16px; color: #111111;">A/B Split Testing<br />
<span style="color: #000000; line-height: 19px;">5. <span style="line-height: 16px; color: #111111;">Find Related Forums and Blogs<br />
<span style="color: #000000; line-height: 19px;">6. <span style="line-height: 16px; color: #111111;">Don’t Be Afraid to Experiment<br />
<span style="color: #000000; line-height: 19px;">7. <span style="line-height: 16px; color: #111111;">Maximize Your Profit on Every Item Sold<br />
<span style="color: #000000; line-height: 19px;">8. <span style="line-height: 16px; color: #111111;">More Trust Equals More Revenue<br />
<span style="color: #000000; line-height: 19px;">9. <span style="line-height: 16px; color: #111111;">Add a Video Play Button<br />
<span style="color: #000000; line-height: 19px;">10. <span style="line-height: 16px; color: #111111;">See Things From a Customer&#8217;s Viewpoint</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></h3>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit; vertical-align: baseline; padding: 0px; border: 0px initial initial;">Read the whole article at Practical Ecommerce:<br />
<a href="http://www.practicalecommerce.com/articles/1171-Ten-Great-New-Ecommerce-Ideas-for-July-2009">http://www.practicalecommerce.com/articles/1171-Ten-Great-New-Ecommerce-Ideas-for-July-2009</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.magjournal.com/2009/07/ten-great-ecommerce-tips-for-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display best selling product in magento</title>
		<link>http://www.magjournal.com/2009/07/display-best-selling-product-in-magento/</link>
		<comments>http://www.magjournal.com/2009/07/display-best-selling-product-in-magento/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 11:46:49 +0000</pubDate>
		<dc:creator>sanjaypatil</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.magjournal.com/?p=100</guid>
		<description><![CDATA[Want to display the best selling products in your Magento store on the frontpage or anywhere else in your store? The best selling products means the products sold in highest quantity in Ascending order. This functionality is for some strange &#8230; <a href="http://www.magjournal.com/2009/07/display-best-selling-product-in-magento/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Want to display the best selling products in your Magento store on the frontpage or anywhere else in your store? The best selling products means the products sold in highest quantity in Ascending order. This functionality is for some strange reason not included in Magento by default so we&#8217;ll explain how you can set it up yourself.</p>
<p><span id="more-100"></span></p>
<p>Main logic for this is we have to get the product list in ascending order by [order_qty]. So to get this type of list we have to apply</p>
<pre class="brush: php;">

$visibility = array(
Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH,
Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG
);

$_productCollection = Mage::getResourceModel('reports/product_collection')
-&gt;addAttributeToSelect('*')
-&gt;addOrderedQty()
-&gt;addAttributeToFilter('visibility', $visibility)
-&gt;setOrder('ordered_qty', 'desc');
</pre>
<p>By this way you get the complete list of product order accoding to order quantity for particular product.</p>
<p>Now to display that list in well formated manner you have to loop over the array of product as</p>
<pre class="brush: php;">

&lt;?php foreach($_productCollection as $product): ?&gt;

&lt;?php
$categories = null;
foreach (explode(&quot;,&quot;, $product-&gt;category_ids) as $catId){

//Mage_Catalog_Model_Category
$cat = Mage::getModel('catalog/category')
-&gt;setStoreId(Mage::app()-&gt;getStore()-&gt;getId())
-&gt;load($catId);
$catName = $cat-&gt;getName();

$catLink = $cat-&gt;getUrlPath();
$categories .= '&lt;a href=&quot;'.$catLink.'&quot; title=&quot;'.$catName.'&quot;&gt;'.$catName.'&lt;/a&gt;&amp;nbsp;&amp;nbsp;';
}

?&gt;

&lt;?php if($counter &lt;= $totalPerPage): ?&gt;

&lt;?php $productUrl =  $product-&gt;getProductUrl() ?&gt;
&lt;div class=&quot;best-sellh&quot;&gt;
&lt;div class=&quot;wraptocenter&quot;&gt;
&lt;a href=&quot;&lt;?php echo $productUrl ?&gt;&quot; title=&quot;View &lt;?php echo $product-&gt;name ?&gt;&quot;&gt;
&lt;img src=&quot;&lt;?php echo $this-&gt;helper('catalog/image')-&gt;init($product, 'image')-&gt;resize(120); ?&gt;&quot; alt=&quot;Product image&quot;  class=&quot;shadow&quot; rel=&quot;black&quot; /&gt;
&lt;!--        &lt;img src=&quot;images/prodimg01.jpg&quot; alt=&quot;chrysler-building&quot; height=&quot;150&quot; width=&quot;100&quot; class=&quot;shadow&quot; rel=&quot;black&quot;/&gt;--&gt;
&lt;/a&gt;
&lt;/div&gt;

&lt;div class=&quot;img_txt&quot; &gt;
&lt;span class=&quot;yellow-bg-text&quot;&gt;&lt;?php echo $product-&gt;name ?&gt;&lt;/span&gt; &lt;?=$catName?&gt;&lt;br /&gt;
&lt;p class=&quot;price_txt&quot;&gt;starts from &lt;span class=&quot;price_hd&quot;&gt;&lt;?php echo Mage::helper('core')-&gt;currency($product-&gt;price) ?&gt; &lt;/span&gt; &lt;/p&gt;
&lt;/div&gt;

&lt;br class=&quot;spacer&quot; /&gt;&lt;/div&gt;
&lt;!--
&lt;h4&gt;&lt;?php echo $product-&gt;name ?&gt;&lt;/h4&gt;
&lt;/a&gt;
&lt;small&gt;&lt;?php echo $this-&gt;__('Total soled quantities') ?&gt;: &lt;?php echo (int)$product-&gt;ordered_qty ?&gt;&lt;/small&gt;&lt;br /&gt;

&lt;a href=&quot;&lt;?php echo $productUrl ?&gt;&quot; title=&quot;View &lt;?php echo $product-&gt;name ?&gt;&quot;&gt;
&lt;img src=&quot;&lt;?php echo $this-&gt;helper('catalog/image')-&gt;init($product, 'image')-&gt;resize(120); ?&gt;&quot; alt=&quot;Product image&quot;  /&gt;
&lt;/a&gt; &lt;br /&gt;

&lt;?php echo $this-&gt;__('Categories: ') ?&gt;&lt;?php echo $categories ?&gt;
&lt;p&gt;&lt;?php echo $product-&gt;short_description ?&gt;&lt;/p&gt;
--&gt;
&lt;?php endif; $counter++; ?&gt;
&lt;?php endforeach; ?&gt;
</pre>
<p>In this way you can get the list of best selling product.</p>
<p>How to use this code:</p>
<ul>
<li>Just create one phtml file as[highsold.phtml] in category/product directory</li>
<li>Paste this code in that file [highsold.phtml]</li>
<li>Now go to layout/cms.xml file and add following line of code</li>
</ul>
<pre class="brush: xml;">

&lt;cms_page&gt;

&lt;reference name=&quot;content&quot;&gt;

&lt;strong&gt; &lt;block type=&quot;catalog/product&quot; name=&quot;highsold&quot; as=&quot;highsold&quot; template=&quot;catalog/product/highsold.phtml&quot; /&gt;&lt;/strong&gt;
&lt;block type=&quot;cms/page&quot; name=&quot;cms_page&quot; /&gt;
&lt;/reference&gt;
&lt;/cms_page&gt;
</pre>
<p>By this way you are creating a block named as highsold</p>
<ul>
<li>Now if you want to display the product list on home page.Just go to home.phtml file and ad following lines as&lt;?php echo $this-&gt;getChildHtml(&#8216;highsold&#8217;) ?&gt;</li>
</ul>
<ul>
<li>next go to admin/cms/manage pages/ and select home pagel. In content text area add following lines as</li>
</ul>
<pre class="brush: xml;">

{{block type=&quot;core/template&quot; name=&quot;default_home_page&quot; template=&quot;cms/default/home.phtml&quot; }}
</pre>
<p>Now you should see the products perfectly displayed on home page!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.magjournal.com/2009/07/display-best-selling-product-in-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Static Block content in template</title>
		<link>http://www.magjournal.com/2009/06/add-static-block-content-in-template/</link>
		<comments>http://www.magjournal.com/2009/06/add-static-block-content-in-template/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 18:37:38 +0000</pubDate>
		<dc:creator>Mark Clark</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.magjournal.com/?p=95</guid>
		<description><![CDATA[Normally you would need to add some lines of code in the XML layout files to be able to include a static block from the CMS-system in the Magento Backend, but using this code in the template will automatically fetch &#8230; <a href="http://www.magjournal.com/2009/06/add-static-block-content-in-template/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Normally you would need to add some lines of code in the XML layout files to be able to include a static block from the CMS-system in the Magento Backend, but using this code in the template will automatically fetch the content from the static block:</p>
<pre class="brush: php;">

&lt;?php echo $this-&gt;getLayout()-&gt;createBlock('cms/block')-&gt;setBlockId('your_cms_block_identifier')-&gt;toHtml() ?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.magjournal.com/2009/06/add-static-block-content-in-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
