<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2" -->
<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/"
	>

<channel>
	<title>Ina Code Blog</title>
	<link>http://www.inacode.com</link>
	<description>bunch of code in one place</description>
	<pubDate>Thu, 17 Dec 2009 12:38:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2</generator>
	<language>sl</language>
			<item>
		<title>Magento: add to cart button is not working</title>
		<link>http://www.inacode.com/magento/magento-add-to-cart-button-is-not-working/langswitch_lang/sl</link>
		<comments>http://www.inacode.com/magento/magento-add-to-cart-button-is-not-working/langswitch_lang/sl#comments</comments>
		<pubDate>Thu, 17 Dec 2009 12:38:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://www.inacode.com/magento/magento-add-to-cart-button-is-not-working/langswitch_lang/sl</guid>
		<description><![CDATA[In my custom theme there was this code for Add to cart button:
&#60;button type=&#8221;button&#8221; class=&#8221;button-form&#8221; onclick=&#8221;productAddToCartForm.submit()&#8221;&#62;&#60;span&#62;&#60;?php echo $this-&#62;__(&#8217;Add to Cart&#8217;) ?&#62;&#60;/span&#62;&#60;/button&#62;
The problem was that nothing happened when you clicked it. Just remove type="button" so it looks like this:
&#60;button class=&#8221;button-form&#8221; onclick=&#8221;productAddToCartForm.submit()&#8221;&#62;&#60;span&#62;&#60;?php echo $this-&#62;__(&#8217;Add to Cart&#8217;) ?&#62;&#60;/span&#62;&#60;/button&#62;
It worked for me&#8230;










]]></description>
			<content:encoded><![CDATA[<p>In my custom theme there was this code for Add to cart button:</p>
<blockquote><p>&lt;button type=&#8221;button&#8221; class=&#8221;button-form&#8221; onclick=&#8221;productAddToCartForm.submit()&#8221;&gt;&lt;span&gt;&lt;?php echo $this-&gt;__(&#8217;Add to Cart&#8217;) ?&gt;&lt;/span&gt;&lt;/button&gt;</p></blockquote>
<p>The problem was that nothing happened when you clicked it. Just remove <code>type="button"</code> so it looks like this:</p>
<blockquote><p>&lt;button class=&#8221;button-form&#8221; onclick=&#8221;productAddToCartForm.submit()&#8221;&gt;&lt;span&gt;&lt;?php echo $this-&gt;__(&#8217;Add to Cart&#8217;) ?&gt;&lt;/span&gt;&lt;/button&gt;</p></blockquote>
<p>It worked for me&#8230;</p>

<div class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-add-to-cart-button-is-not-working%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+add+to+cart+button+is+not+working" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-add-to-cart-button-is-not-working%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+add+to+cart+button+is+not+working" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-add-to-cart-button-is-not-working%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+add+to+cart+button+is+not+working" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-add-to-cart-button-is-not-working%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+add+to+cart+button+is+not+working" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-add-to-cart-button-is-not-working%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+add+to+cart+button+is+not+working', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-add-to-cart-button-is-not-working%2Flangswitch_lang%2Fsl" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-add-to-cart-button-is-not-working%2Flangswitch_lang%2Fsl" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-add-to-cart-button-is-not-working%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+add+to+cart+button+is+not+working" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-add-to-cart-button-is-not-working%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+add+to+cart+button+is+not+working" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.inacode.com/magento/magento-add-to-cart-button-is-not-working/feed/langswitch_lang/sl</wfw:commentRss>
		</item>
		<item>
		<title>Magento: error when opening product view page</title>
		<link>http://www.inacode.com/magento/magento-error-when-opening-product-view-page/langswitch_lang/sl</link>
		<comments>http://www.inacode.com/magento/magento-error-when-opening-product-view-page/langswitch_lang/sl#comments</comments>
		<pubDate>Mon, 14 Dec 2009 09:19:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://www.inacode.com/magento/magento-error-when-opening-product-view-page/langswitch_lang/sl</guid>
		<description><![CDATA[When I try to open product view page I get this error:
Warning: include(/&#8230;../&#8230;../public_html/magento/app/design/frontend/mytheme/default/template/page/2columns-left) [function.include]: failed to open stream: No such file or directory  in /&#8230;../&#8230;../public_html/magento/app/code/core/Mage/Core/Block/Template.php on line 144
The problem occured because I made a mistake in /app/design/frontend/mytheme/mytheme/layout/catalog.xml. In &#60;catalog_product_view&#62; tags I have set:
&#60;action method=&#8221;setTemplate&#8221;&#62;&#60;template&#62;page/2columns-left&#60;/template&#62;&#60;/action&#62;
where it must be:
 &#60;action method=&#8221;setTemplate&#8221;&#62;&#60;template&#62;page/2columns-left.phtml&#60;/template&#62;&#60;/action&#62;
!!!










]]></description>
			<content:encoded><![CDATA[<p>When I try to open product view page I get this error:</p>
<blockquote><p>Warning: include(/&#8230;../&#8230;../public_html/magento/app/design/frontend/mytheme/default/template/page/2columns-left) [<a href="http://www.koptex.com/trgovina/report/function.include">function.include</a>]: failed to open stream: No such file or directory  in /&#8230;../&#8230;../public_html/magento/app/code/core/Mage/Core/Block/Template.php on line 144</p></blockquote>
<p>The problem occured because I made a mistake in <code>/app/design/frontend/mytheme/mytheme/layout/catalog.xml</code>. In <code>&lt;catalog_product_view&gt;</code> tags I have set:</p>
<blockquote><p>&lt;action method=&#8221;setTemplate&#8221;&gt;&lt;template&gt;page/2columns-left&lt;/template&gt;&lt;/action&gt;</p></blockquote>
<p>where it must be:</p>
<blockquote><p> &lt;action method=&#8221;setTemplate&#8221;&gt;&lt;template&gt;page/<strong>2columns-left.phtml</strong>&lt;/template&gt;&lt;/action&gt;</p></blockquote>
<p>!!!</p>

<div class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-error-when-opening-product-view-page%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+error+when+opening+product+view+page" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-error-when-opening-product-view-page%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+error+when+opening+product+view+page" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-error-when-opening-product-view-page%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+error+when+opening+product+view+page" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-error-when-opening-product-view-page%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+error+when+opening+product+view+page" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-error-when-opening-product-view-page%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+error+when+opening+product+view+page', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-error-when-opening-product-view-page%2Flangswitch_lang%2Fsl" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-error-when-opening-product-view-page%2Flangswitch_lang%2Fsl" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-error-when-opening-product-view-page%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+error+when+opening+product+view+page" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-error-when-opening-product-view-page%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+error+when+opening+product+view+page" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.inacode.com/magento/magento-error-when-opening-product-view-page/feed/langswitch_lang/sl</wfw:commentRss>
		</item>
		<item>
		<title>Magento: how to set number of columns in product list</title>
		<link>http://www.inacode.com/magento/magento-how-to-set-number-of-columns-in-product-list/langswitch_lang/sl</link>
		<comments>http://www.inacode.com/magento/magento-how-to-set-number-of-columns-in-product-list/langswitch_lang/sl#comments</comments>
		<pubDate>Thu, 10 Dec 2009 11:30:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://www.inacode.com/magento/magento-how-to-set-number-of-columns-in-product-list/langswitch_lang/sl</guid>
		<description><![CDATA[Open /app/design/frontend/your_theme/your_theme/template/catalog/product/list.phtml and find line:

&#60;?php $_columnCount = $this-&#62;getColumnCount(); ?&#62;
and replace it with:

&#60;?php $_columnCount = 4; ?&#62;
Set the number of columns as you need.










]]></description>
			<content:encoded><![CDATA[<p>Open <code>/app/design/frontend/your_theme/your_theme/template/catalog/product/list.phtml</code> and find line:</p>
<blockquote><p>
&lt;?php $_columnCount = $this-&gt;getColumnCount(); ?&gt;</p></blockquote>
<p>and replace it with:</p>
<blockquote><p>
&lt;?php $_columnCount = 4; ?&gt;</p></blockquote>
<p>Set the number of columns as you need.</p>

<div class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-set-number-of-columns-in-product-list%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+how+to+set+number+of+columns+in+product+list" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-set-number-of-columns-in-product-list%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+how+to+set+number+of+columns+in+product+list" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-set-number-of-columns-in-product-list%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+how+to+set+number+of+columns+in+product+list" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-set-number-of-columns-in-product-list%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+how+to+set+number+of+columns+in+product+list" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-set-number-of-columns-in-product-list%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+how+to+set+number+of+columns+in+product+list', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-set-number-of-columns-in-product-list%2Flangswitch_lang%2Fsl" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-set-number-of-columns-in-product-list%2Flangswitch_lang%2Fsl" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-set-number-of-columns-in-product-list%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+how+to+set+number+of+columns+in+product+list" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-set-number-of-columns-in-product-list%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+how+to+set+number+of+columns+in+product+list" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.inacode.com/magento/magento-how-to-set-number-of-columns-in-product-list/feed/langswitch_lang/sl</wfw:commentRss>
		</item>
		<item>
		<title>Make changes on your website witch only you can see</title>
		<link>http://www.inacode.com/css/make-changes-on-your-website-witch-only-you-can-see/langswitch_lang/sl</link>
		<comments>http://www.inacode.com/css/make-changes-on-your-website-witch-only-you-can-see/langswitch_lang/sl#comments</comments>
		<pubDate>Fri, 04 Dec 2009 15:00:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[html / css]]></category>

		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.inacode.com/css/make-changes-on-your-website-witch-only-you-can-see/langswitch_lang/sl</guid>
		<description><![CDATA[Go to this website to get your IP: http://whatismyipaddress.com/
and replace the &#8216;111.11.11.11&#8242; whit it in the code below.
&#60;?php if($_SERVER[&#8217;REMOTE_ADDR&#8217;] == &#8216;111.11.11.11&#8242;) { ?&#62;
&#60;!&#8211; insert your html or php or whatever code here&#8230;.. &#8211;&#62;
&#60;?php } ?&#62;
The code between { } will be seen only through you IP address. Enjoy.










]]></description>
			<content:encoded><![CDATA[<p>Go to this website to get your IP: <a href="http://whatismyipaddress.com/ " target="_blank">http://whatismyipaddress.com/</a></p>
<p>and replace the &#8216;111.11.11.11&#8242; whit it in the code below.</p>
<blockquote><p>&lt;?php if($_SERVER[&#8217;REMOTE_ADDR&#8217;] == &#8216;111.11.11.11&#8242;) { ?&gt;<br />
&lt;!&#8211; insert your html or php or whatever code here&#8230;.. &#8211;&gt;<br />
&lt;?php } ?&gt;</p></blockquote>
<p>The code between { } will be seen only through you IP address. Enjoy.</p>

<div class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.inacode.com%2Fcss%2Fmake-changes-on-your-website-witch-only-you-can-see%2Flangswitch_lang%2Fsl&amp;title=Make+changes+on+your+website+witch+only+you+can+see" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.inacode.com%2Fcss%2Fmake-changes-on-your-website-witch-only-you-can-see%2Flangswitch_lang%2Fsl&amp;title=Make+changes+on+your+website+witch+only+you+can+see" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.inacode.com%2Fcss%2Fmake-changes-on-your-website-witch-only-you-can-see%2Flangswitch_lang%2Fsl&amp;title=Make+changes+on+your+website+witch+only+you+can+see" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.inacode.com%2Fcss%2Fmake-changes-on-your-website-witch-only-you-can-see%2Flangswitch_lang%2Fsl&amp;title=Make+changes+on+your+website+witch+only+you+can+see" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.inacode.com%2Fcss%2Fmake-changes-on-your-website-witch-only-you-can-see%2Flangswitch_lang%2Fsl&amp;title=Make+changes+on+your+website+witch+only+you+can+see', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.inacode.com%2Fcss%2Fmake-changes-on-your-website-witch-only-you-can-see%2Flangswitch_lang%2Fsl" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.inacode.com%2Fcss%2Fmake-changes-on-your-website-witch-only-you-can-see%2Flangswitch_lang%2Fsl" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.inacode.com%2Fcss%2Fmake-changes-on-your-website-witch-only-you-can-see%2Flangswitch_lang%2Fsl&amp;title=Make+changes+on+your+website+witch+only+you+can+see" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.inacode.com%2Fcss%2Fmake-changes-on-your-website-witch-only-you-can-see%2Flangswitch_lang%2Fsl&amp;title=Make+changes+on+your+website+witch+only+you+can+see" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.inacode.com/css/make-changes-on-your-website-witch-only-you-can-see/feed/langswitch_lang/sl</wfw:commentRss>
		</item>
		<item>
		<title>Magento: set number of products in new products module</title>
		<link>http://www.inacode.com/magento/magento-set-number-of-products-in-new-products-module/langswitch_lang/sl</link>
		<comments>http://www.inacode.com/magento/magento-set-number-of-products-in-new-products-module/langswitch_lang/sl#comments</comments>
		<pubDate>Fri, 04 Dec 2009 14:45:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://www.inacode.com/magento/magento-set-number-of-products-in-new-products-module/langswitch_lang/sl</guid>
		<description><![CDATA[You can set number of products to be displayed in new product module in your new.phtml file. Find:
&#60;?php $i=0; foreach ($_products-&#62;getItems() as $_product): ?&#62;
and add above, so the code looks like this:
&#60;?$_products-&#62;setOrder(&#8217;news_from_date&#8217;)-&#62;setPageSize(6)-&#62;setCurPage(1);?&#62;
&#60;?php $i=0; foreach ($_products-&#62;getItems() as $_product): ?&#62;
Set the number (6) as you like.
On the other hand you can set this number in administration on [...]]]></description>
			<content:encoded><![CDATA[<p>You can set number of products to be displayed in new product module in your new.phtml file. Find:</p>
<blockquote><p>&lt;?php $i=0; foreach ($_products-&gt;getItems() as $_product): ?&gt;</p></blockquote>
<p>and add above, so the code looks like this:</p>
<blockquote><p>&lt;?$_products-&gt;setOrder(&#8217;news_from_date&#8217;)-&gt;setPageSize(6)-&gt;setCurPage(1);?&gt;<br />
&lt;?php $i=0; foreach ($_products-&gt;getItems() as $_product): ?&gt;</p></blockquote>
<p>Set the number (6) as you like.</p>
<p>On the other hand you can set this number in administration on home cms page. Under Custom desing set the code for new products to look like this:</p>
<blockquote><p>&lt;reference name=&#8221;content&#8221;&gt;<br />
&lt;block type=&#8221;catalog/product_new&#8221; name=&#8221;home.new&#8221; alias=&#8221;product_new&#8221; template=&#8221;catalog/product/new.phtml&#8221;&gt;<br />
&lt;action method=&#8221;setProductsCount&#8221;&gt;&lt;count&gt;8&lt;/count&gt;&lt;/action&gt;<br />
&lt;action method=&#8221;addPriceBlockType&#8221;&gt;<br />
&lt;type&gt;bundle&lt;/type&gt;<br />
&lt;block&gt;bundle/catalog_product_price&lt;/block&gt;<br />
&lt;template&gt;bundle/catalog/product/price.phtml&lt;/template&gt;<br />
&lt;/action&gt;<br />
&lt;/block&gt;<br />
&lt;/reference&gt;</p></blockquote>
<p>Just set the number in <code><count></code> tags.</p>

<div class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-set-number-of-products-in-new-products-module%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+set+number+of+products+in+new+products+module" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-set-number-of-products-in-new-products-module%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+set+number+of+products+in+new+products+module" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-set-number-of-products-in-new-products-module%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+set+number+of+products+in+new+products+module" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-set-number-of-products-in-new-products-module%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+set+number+of+products+in+new+products+module" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-set-number-of-products-in-new-products-module%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+set+number+of+products+in+new+products+module', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-set-number-of-products-in-new-products-module%2Flangswitch_lang%2Fsl" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-set-number-of-products-in-new-products-module%2Flangswitch_lang%2Fsl" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-set-number-of-products-in-new-products-module%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+set+number+of+products+in+new+products+module" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-set-number-of-products-in-new-products-module%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+set+number+of+products+in+new+products+module" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.inacode.com/magento/magento-set-number-of-products-in-new-products-module/feed/langswitch_lang/sl</wfw:commentRss>
		</item>
		<item>
		<title>Shop for Infinity sport</title>
		<link>http://www.inacode.com/myportfolio/shop-for-infinity-sport/langswitch_lang/sl</link>
		<comments>http://www.inacode.com/myportfolio/shop-for-infinity-sport/langswitch_lang/sl#comments</comments>
		<pubDate>Thu, 02 Jul 2009 13:47:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[myPortfolio]]></category>

		<guid isPermaLink="false">http://www.inacode.com/myportfolio/shop-for-infinity-sport</guid>
		<description><![CDATA[Client: Infinity sport
Production: Carpediem d.o.o.
url: www.infinitysport.net
made with: Magento, HTML, CSS, PHP, jQuery










]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.inacode.com/wp-content/uploads/2009/07/infinity.jpg" rel="lightbox[pics-1246542384]" title="Infinity sport"><img src="http://www.inacode.com/wp-content/uploads/2009/07/infinity.thumbnail.jpg" title="Infinity sport" alt="Infinity sport" class="imageframe imgalignleft" width="250" align="right" height="237" /></a>Client: Infinity sport<br />
Production: Carpediem d.o.o.</p>
<p>url: <a href="http://www.infinitysport.net/" target="_blank">www.infinitysport.net</a></p>
<p>made with: Magento, HTML, CSS, PHP, jQuery</p>

<div class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.inacode.com%2Fmyportfolio%2Fshop-for-infinity-sport%2Flangswitch_lang%2Fsl&amp;title=Shop+for+Infinity+sport" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.inacode.com%2Fmyportfolio%2Fshop-for-infinity-sport%2Flangswitch_lang%2Fsl&amp;title=Shop+for+Infinity+sport" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.inacode.com%2Fmyportfolio%2Fshop-for-infinity-sport%2Flangswitch_lang%2Fsl&amp;title=Shop+for+Infinity+sport" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.inacode.com%2Fmyportfolio%2Fshop-for-infinity-sport%2Flangswitch_lang%2Fsl&amp;title=Shop+for+Infinity+sport" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.inacode.com%2Fmyportfolio%2Fshop-for-infinity-sport%2Flangswitch_lang%2Fsl&amp;title=Shop+for+Infinity+sport', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.inacode.com%2Fmyportfolio%2Fshop-for-infinity-sport%2Flangswitch_lang%2Fsl" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.inacode.com%2Fmyportfolio%2Fshop-for-infinity-sport%2Flangswitch_lang%2Fsl" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.inacode.com%2Fmyportfolio%2Fshop-for-infinity-sport%2Flangswitch_lang%2Fsl&amp;title=Shop+for+Infinity+sport" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.inacode.com%2Fmyportfolio%2Fshop-for-infinity-sport%2Flangswitch_lang%2Fsl&amp;title=Shop+for+Infinity+sport" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.inacode.com/myportfolio/shop-for-infinity-sport/feed/langswitch_lang/sl</wfw:commentRss>
		</item>
		<item>
		<title>Website for Hotel Tartini Piran</title>
		<link>http://www.inacode.com/myportfolio/website-for-hotel-tartini-piran/langswitch_lang/sl</link>
		<comments>http://www.inacode.com/myportfolio/website-for-hotel-tartini-piran/langswitch_lang/sl#comments</comments>
		<pubDate>Thu, 02 Jul 2009 13:37:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[myPortfolio]]></category>

		<guid isPermaLink="false">http://www.inacode.com/myportfolio/75</guid>
		<description><![CDATA[Client: Hetel Tartini Piran
Production: Carpediem d.o.o.
url: www.hotel-tartini-piran.com
made with: Drupal, HTML, CSS, PHP










]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.inacode.com/wp-content/uploads/2009/07/hotel_tartini.jpg" rel="lightbox[pics-1246541759]" title="Hotel Tartini Piran"><img src="http://www.inacode.com/wp-content/uploads/2009/07/hotel_tartini.thumbnail.jpg" title="Hotel Tartini Piran" alt="Hotel Tartini Piran" class="imageframe imgalignleft" width="250" align="right" height="207" /></a>Client: Hetel Tartini Piran<br />
Production: Carpediem d.o.o.</p>
<p>url: <a href="http://www.hotel-tartini-piran.com/" target="_blank">www.hotel-tartini-piran.com</a></p>
<p>made with: Drupal, HTML, CSS, PHP</p>

<div class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.inacode.com%2Fmyportfolio%2Fwebsite-for-hotel-tartini-piran%2Flangswitch_lang%2Fsl&amp;title=Website+for+Hotel+Tartini+Piran" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.inacode.com%2Fmyportfolio%2Fwebsite-for-hotel-tartini-piran%2Flangswitch_lang%2Fsl&amp;title=Website+for+Hotel+Tartini+Piran" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.inacode.com%2Fmyportfolio%2Fwebsite-for-hotel-tartini-piran%2Flangswitch_lang%2Fsl&amp;title=Website+for+Hotel+Tartini+Piran" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.inacode.com%2Fmyportfolio%2Fwebsite-for-hotel-tartini-piran%2Flangswitch_lang%2Fsl&amp;title=Website+for+Hotel+Tartini+Piran" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.inacode.com%2Fmyportfolio%2Fwebsite-for-hotel-tartini-piran%2Flangswitch_lang%2Fsl&amp;title=Website+for+Hotel+Tartini+Piran', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.inacode.com%2Fmyportfolio%2Fwebsite-for-hotel-tartini-piran%2Flangswitch_lang%2Fsl" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.inacode.com%2Fmyportfolio%2Fwebsite-for-hotel-tartini-piran%2Flangswitch_lang%2Fsl" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.inacode.com%2Fmyportfolio%2Fwebsite-for-hotel-tartini-piran%2Flangswitch_lang%2Fsl&amp;title=Website+for+Hotel+Tartini+Piran" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.inacode.com%2Fmyportfolio%2Fwebsite-for-hotel-tartini-piran%2Flangswitch_lang%2Fsl&amp;title=Website+for+Hotel+Tartini+Piran" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.inacode.com/myportfolio/website-for-hotel-tartini-piran/feed/langswitch_lang/sl</wfw:commentRss>
		</item>
		<item>
		<title>Magento: How to move cart block from sidebar to header?</title>
		<link>http://www.inacode.com/magento/magento-how-to-move-cart-block-from-sidebar-to-header/langswitch_lang/sl</link>
		<comments>http://www.inacode.com/magento/magento-how-to-move-cart-block-from-sidebar-to-header/langswitch_lang/sl#comments</comments>
		<pubDate>Wed, 10 Jun 2009 08:08:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://www.inacode.com/magento/magento-how-to-move-cart-block-from-sidebar-to-header/langswitch_lang/sl</guid>
		<description><![CDATA[Open file: /app/design/frontend/your_theme/your_theme/template/page/html/header.phtml and add this line where you want the cart block to be displayed:
&#60;?php echo $this-&#62;getChildHtml(&#8217;cart_sidebar_head&#8217;) ?&#62;
Open file: /app/design/frontend/your_theme/your_theme/layout/page.xml and insert this in block type page/html_header:
&#60;block type=&#8221;checkout/cart_sidebar&#8221; name=&#8221;cart_sidebar_head&#8221; template=&#8221;checkout/cart/sidebar.phtml&#8221; /&#62;
You probably don&#8217;t need cart block in you sidebar anymore so open file: /app/design/frontend/your_theme/your_theme/layout/checkout.xml and remove or comment these lines:
&#60;block type=&#8221;checkout/cart_sidebar&#8221; name=&#8221;cart_sidebar&#8221; template=&#8221;checkout/cart/sidebar.phtml&#8221; before=&#8221;-&#8221;&#62;
&#60;action [...]]]></description>
			<content:encoded><![CDATA[<p>Open file: <code>/app/design/frontend/your_theme/your_theme/template/page/html/header.phtml</code> and add this line where you want the cart block to be displayed:</p>
<blockquote><p>&lt;?php echo $this-&gt;getChildHtml(&#8217;cart_sidebar_head&#8217;) ?&gt;</p></blockquote>
<p>Open file: <code>/app/design/frontend/your_theme/your_theme/layout/page.xml</code> and insert this in block type <code>page/html_header</code>:</p>
<blockquote><p>&lt;block type=&#8221;checkout/cart_sidebar&#8221; name=&#8221;cart_sidebar_head&#8221; template=&#8221;checkout/cart/sidebar.phtml&#8221; /&gt;</p></blockquote>
<p>You probably don&#8217;t need cart block in you sidebar anymore so open file: <code>/app/design/frontend/your_theme/your_theme/layout/checkout.xml</code> and remove or comment these lines:</p>
<blockquote><p>&lt;block type=&#8221;checkout/cart_sidebar&#8221; name=&#8221;cart_sidebar&#8221; template=&#8221;checkout/cart/sidebar.phtml&#8221; before=&#8221;-&#8221;&gt;<br />
&lt;action method=&#8221;addItemRender&#8221;&gt;&lt;type&gt;simple&lt;/type&gt;&lt;block&gt;checkout/cart_item_renderer&lt;/block&gt;&lt;template&gt;checkout/cart/sidebar/default.phtml&lt;/template&gt;&lt;/action&gt;<br />
&lt;action method=&#8221;addItemRender&#8221;&gt;&lt;type&gt;grouped&lt;/type&gt;&lt;block&gt;checkout/cart_item_renderer_grouped&lt;/block&gt;&lt;template&gt;checkout/cart/sidebar/default.phtml&lt;/template&gt;&lt;/action&gt;<br />
&lt;action method=&#8221;addItemRender&#8221;&gt;&lt;type&gt;configurable&lt;/type&gt;&lt;block&gt;checkout/cart_item_renderer_configurable&lt;/block&gt;&lt;template&gt;checkout/cart/sidebar/default.phtml&lt;/template&gt;&lt;/action&gt;<br />
&lt;/block&gt;</p></blockquote>

<div class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-move-cart-block-from-sidebar-to-header%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+How+to+move+cart+block+from+sidebar+to+header%3F" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-move-cart-block-from-sidebar-to-header%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+How+to+move+cart+block+from+sidebar+to+header%3F" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-move-cart-block-from-sidebar-to-header%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+How+to+move+cart+block+from+sidebar+to+header%3F" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-move-cart-block-from-sidebar-to-header%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+How+to+move+cart+block+from+sidebar+to+header%3F" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-move-cart-block-from-sidebar-to-header%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+How+to+move+cart+block+from+sidebar+to+header%3F', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-move-cart-block-from-sidebar-to-header%2Flangswitch_lang%2Fsl" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-move-cart-block-from-sidebar-to-header%2Flangswitch_lang%2Fsl" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-move-cart-block-from-sidebar-to-header%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+How+to+move+cart+block+from+sidebar+to+header%3F" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-move-cart-block-from-sidebar-to-header%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+How+to+move+cart+block+from+sidebar+to+header%3F" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.inacode.com/magento/magento-how-to-move-cart-block-from-sidebar-to-header/feed/langswitch_lang/sl</wfw:commentRss>
		</item>
		<item>
		<title>Magento: how to display a certain attribute?</title>
		<link>http://www.inacode.com/magento/magento-how-to-display-a-certain-attribute/langswitch_lang/sl</link>
		<comments>http://www.inacode.com/magento/magento-how-to-display-a-certain-attribute/langswitch_lang/sl#comments</comments>
		<pubDate>Wed, 03 Jun 2009 12:17:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://www.inacode.com/magento/magento-how-to-display-a-certain-attribute/langswitch_lang/sl</guid>
		<description><![CDATA[Here is how you can display certain attribute on product page. In my case I needed to display cost price:
 &#60;?php echo $_helper-&#62;productAttribute($_product, $this-&#62;htmlEscape($_product-&#62;getCost()), &#8216;cost&#8217;) ?&#62;
Or use this for your custom attributes:
&#60;?php echo $_helper-&#62;productAttribute($_product, $this-&#62;htmlEscape($_product-&#62;getCustom()), &#8216;Custom&#8217;) ?&#62;










]]></description>
			<content:encoded><![CDATA[<p>Here is how you can display certain attribute on product page. In my case I needed to display cost price:</p>
<blockquote><p> &lt;?php echo $_helper-&gt;productAttribute($_product, $this-&gt;htmlEscape($_product-&gt;getCost()), &#8216;cost&#8217;) ?&gt;</p></blockquote>
<p>Or use this for your custom attributes:</p>
<blockquote><p>&lt;?php echo $_helper-&gt;productAttribute($_product, $this-&gt;htmlEscape($_product-&gt;getCustom()), &#8216;Custom&#8217;) ?&gt;</p></blockquote>

<div class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-display-a-certain-attribute%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+how+to+display+a+certain+attribute%3F" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-display-a-certain-attribute%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+how+to+display+a+certain+attribute%3F" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-display-a-certain-attribute%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+how+to+display+a+certain+attribute%3F" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-display-a-certain-attribute%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+how+to+display+a+certain+attribute%3F" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-display-a-certain-attribute%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+how+to+display+a+certain+attribute%3F', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-display-a-certain-attribute%2Flangswitch_lang%2Fsl" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-display-a-certain-attribute%2Flangswitch_lang%2Fsl" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-display-a-certain-attribute%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+how+to+display+a+certain+attribute%3F" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-how-to-display-a-certain-attribute%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+how+to+display+a+certain+attribute%3F" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.inacode.com/magento/magento-how-to-display-a-certain-attribute/feed/langswitch_lang/sl</wfw:commentRss>
		</item>
		<item>
		<title>Magento: remove break (br) tag from textarea</title>
		<link>http://www.inacode.com/magento/magento-remove-br-tag-from-textarea/langswitch_lang/sl</link>
		<comments>http://www.inacode.com/magento/magento-remove-br-tag-from-textarea/langswitch_lang/sl#comments</comments>
		<pubDate>Mon, 20 Apr 2009 14:03:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://www.inacode.com/magento/magento-remove-tag-from-textarea/langswitch_lang/sl</guid>
		<description><![CDATA[After installing WYSIWYG editor to my magento site the &#60;br /&#62; tags were still added after each row in textareas. My main problem was the product description so I opened file /app/design/frontend/my_theme/my_theme/template/catalog/product/view/description.phtml and found line:
&#60;?php echo $this-&#62;helper(&#8217;catalog/output&#8217;)-&#62;productAttribute($this-&#62;getProduct(), nl2br($this-&#62;getProduct()-&#62;getDescription()), &#8216;description&#8217;) ?&#62;
and replaced it with:
&#60;?php echo $this-&#62;helper(&#8217;catalog/output&#8217;)-&#62;productAttribute($this-&#62;getProduct(), $this-&#62;getProduct()-&#62;getDescription(), &#8216;description&#8217;) ?&#62;
Basically I removed the nl2br() function which inserts [...]]]></description>
			<content:encoded><![CDATA[<p>After installing WYSIWYG editor to my magento site the <code>&lt;br /&gt;</code> tags were still added after each row in textareas. My main problem was the product description so I opened file <code>/app/design/frontend/my_theme/my_theme/template/catalog/product/view/description.phtml</code> and found line:</p>
<blockquote><p>&lt;?php echo $this-&gt;helper(&#8217;catalog/output&#8217;)-&gt;productAttribute($this-&gt;getProduct(), nl2br($this-&gt;getProduct()-&gt;getDescription()), &#8216;description&#8217;) ?&gt;</p></blockquote>
<p>and replaced it with:</p>
<blockquote><p>&lt;?php echo $this-&gt;helper(&#8217;catalog/output&#8217;)-&gt;productAttribute($this-&gt;getProduct(), $this-&gt;getProduct()-&gt;getDescription(), &#8216;description&#8217;) ?&gt;</p></blockquote>
<p>Basically I removed the <code>nl2br()</code> function which inserts the <code>&lt;br /&gt;</code> tags to the description text. You can do the same where ever the breaks are messing up your design view&#8230;</p>

<div class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-remove-br-tag-from-textarea%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+remove+break+%28br%29+tag+from+textarea" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-remove-br-tag-from-textarea%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+remove+break+%28br%29+tag+from+textarea" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-remove-br-tag-from-textarea%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+remove+break+%28br%29+tag+from+textarea" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-remove-br-tag-from-textarea%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+remove+break+%28br%29+tag+from+textarea" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-remove-br-tag-from-textarea%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+remove+break+%28br%29+tag+from+textarea', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-remove-br-tag-from-textarea%2Flangswitch_lang%2Fsl" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-remove-br-tag-from-textarea%2Flangswitch_lang%2Fsl" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-remove-br-tag-from-textarea%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+remove+break+%28br%29+tag+from+textarea" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.inacode.com%2Fmagento%2Fmagento-remove-br-tag-from-textarea%2Flangswitch_lang%2Fsl&amp;title=Magento%3A+remove+break+%28br%29+tag+from+textarea" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.inacode.com/magento/magento-remove-br-tag-from-textarea/feed/langswitch_lang/sl</wfw:commentRss>
		</item>
	</channel>
</rss>
