<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to override a Magento core block class</title>
	<atom:link href="http://www.exploremagento.com/magento/override-a-magento-core-block-class.php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.exploremagento.com/magento/override-a-magento-core-block-class.php</link>
	<description>Magento Design and Development Information</description>
	<lastBuildDate>Wed, 30 Jun 2010 05:20:10 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: anciwasim</title>
		<link>http://www.exploremagento.com/magento/override-a-magento-core-block-class.php/comment-page-1#comment-984</link>
		<dc:creator>anciwasim</dc:creator>
		<pubDate>Wed, 23 Jun 2010 12:34:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.getfido.net/blog/?p=106#comment-984</guid>
		<description>Hello, 
    
 If i wanted to override method of continue shopping button, how can i do that.
Location :  /app/core/Mage/Checkout/Block/Cart.php
  public function getContinueShoppingUrl()
    {
        $url = $this-&gt;getData(&#039;continue_shopping_url&#039;);
        if (is_null($url)) {
            $url = Mage::getSingleton(&#039;checkout/session&#039;)-&gt;getContinueShoppingUrl(true);
            if (!$url) {
                $url = Mage::getUrl();
            }
            $this-&gt;setData(&#039;continue_shopping_url&#039;, $url);
        }
        return $url;
    }</description>
		<content:encoded><![CDATA[<p>Hello, </p>
<p> If i wanted to override method of continue shopping button, how can i do that.<br />
Location :  /app/core/Mage/Checkout/Block/Cart.php<br />
  public function getContinueShoppingUrl()<br />
    {<br />
        $url = $this-&gt;getData(&#8217;continue_shopping_url&#8217;);<br />
        if (is_null($url)) {<br />
            $url = Mage::getSingleton(&#8217;checkout/session&#8217;)-&gt;getContinueShoppingUrl(true);<br />
            if (!$url) {<br />
                $url = Mage::getUrl();<br />
            }<br />
            $this-&gt;setData(&#8217;continue_shopping_url&#8217;, $url);<br />
        }<br />
        return $url;<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stef</title>
		<link>http://www.exploremagento.com/magento/override-a-magento-core-block-class.php/comment-page-1#comment-979</link>
		<dc:creator>stef</dc:creator>
		<pubDate>Mon, 14 Jun 2010 21:21:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.getfido.net/blog/?p=106#comment-979</guid>
		<description>great tutorial but if you use Firebug, won&#039;t all make it easier?</description>
		<content:encoded><![CDATA[<p>great tutorial but if you use Firebug, won&#8217;t all make it easier?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vitaly</title>
		<link>http://www.exploremagento.com/magento/override-a-magento-core-block-class.php/comment-page-1#comment-969</link>
		<dc:creator>Vitaly</dc:creator>
		<pubDate>Thu, 27 May 2010 10:35:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.getfido.net/blog/?p=106#comment-969</guid>
		<description>It works (!) with Magento 1.4.0.1.

But when I go to &quot;Configuration-&gt;Advanced&quot; and set &quot;Disabled&quot; for Fido_Catalog original Breadcrumbs does not appear.
So I can&#039;t swith off this module. Why?..</description>
		<content:encoded><![CDATA[<p>It works (!) with Magento 1.4.0.1.</p>
<p>But when I go to &#8220;Configuration-&gt;Advanced&#8221; and set &#8220;Disabled&#8221; for Fido_Catalog original Breadcrumbs does not appear.<br />
So I can&#8217;t swith off this module. Why?..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikola</title>
		<link>http://www.exploremagento.com/magento/override-a-magento-core-block-class.php/comment-page-1#comment-967</link>
		<dc:creator>Nikola</dc:creator>
		<pubDate>Fri, 21 May 2010 22:01:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.getfido.net/blog/?p=106#comment-967</guid>
		<description>It does not work in 1.4.1. I guess you can&#039;t overwrite (untested) a block class that is created like this.
$this-&gt;getLayout()-&gt;createBlock(&#039;catalog/breadcrumbs&#039;);
Mage/Catalog/Block/Category/View.php
Mage/Catalog/Block/Product/View.php</description>
		<content:encoded><![CDATA[<p>It does not work in 1.4.1. I guess you can&#8217;t overwrite (untested) a block class that is created like this.<br />
$this-&gt;getLayout()-&gt;createBlock(&#8217;catalog/breadcrumbs&#8217;);<br />
Mage/Catalog/Block/Category/View.php<br />
Mage/Catalog/Block/Product/View.php</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jp</title>
		<link>http://www.exploremagento.com/magento/override-a-magento-core-block-class.php/comment-page-1#comment-966</link>
		<dc:creator>jp</dc:creator>
		<pubDate>Thu, 20 May 2010 17:49:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.getfido.net/blog/?p=106#comment-966</guid>
		<description>How do I change the color of the breadcrumbs?</description>
		<content:encoded><![CDATA[<p>How do I change the color of the breadcrumbs?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Name Paolo</title>
		<link>http://www.exploremagento.com/magento/override-a-magento-core-block-class.php/comment-page-1#comment-939</link>
		<dc:creator>Name Paolo</dc:creator>
		<pubDate>Tue, 20 Apr 2010 11:36:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.getfido.net/blog/?p=106#comment-939</guid>
		<description>it&#039;s impossible to override Mage_Core_Block_Template
this seems to be a special class
any ideas?
tell me if anyone can, pls...</description>
		<content:encoded><![CDATA[<p>it&#8217;s impossible to override Mage_Core_Block_Template<br />
this seems to be a special class<br />
any ideas?<br />
tell me if anyone can, pls&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.exploremagento.com/magento/override-a-magento-core-block-class.php/comment-page-1#comment-913</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Tue, 30 Mar 2010 09:33:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.getfido.net/blog/?p=106#comment-913</guid>
		<description>Nice tutorial. How would you go about overriding Adminhtml/Block/Page.php, but not for all modules, just for one custom module?</description>
		<content:encoded><![CDATA[<p>Nice tutorial. How would you go about overriding Adminhtml/Block/Page.php, but not for all modules, just for one custom module?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: justinjohnson.org</title>
		<link>http://www.exploremagento.com/magento/override-a-magento-core-block-class.php/comment-page-1#comment-874</link>
		<dc:creator>justinjohnson.org</dc:creator>
		<pubDate>Tue, 09 Mar 2010 06:12:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.getfido.net/blog/?p=106#comment-874</guid>
		<description>Thank you so damn much.  This worked perfectly for me when overwriting Mage_Catalog_Block_Navigation.

One thing that still alludes me is the meaning in the structure in the etc/config.xml file.  Namely, how would I set it up to overwrite Mage_Core_Model_Email_Template?  I assume its something like this

    
    	
    		
    			
    				My_Core_Model_Email_Template
    			
    		
    	
    

but where do I put the file?  Can it go in the same file that you described in step 2?</description>
		<content:encoded><![CDATA[<p>Thank you so damn much.  This worked perfectly for me when overwriting Mage_Catalog_Block_Navigation.</p>
<p>One thing that still alludes me is the meaning in the structure in the etc/config.xml file.  Namely, how would I set it up to overwrite Mage_Core_Model_Email_Template?  I assume its something like this</p>
<p>    				My_Core_Model_Email_Template</p>
<p>but where do I put the file?  Can it go in the same file that you described in step 2?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DarkGhostHunter</title>
		<link>http://www.exploremagento.com/magento/override-a-magento-core-block-class.php/comment-page-1#comment-866</link>
		<dc:creator>DarkGhostHunter</dc:creator>
		<pubDate>Thu, 18 Feb 2010 23:54:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.getfido.net/blog/?p=106#comment-866</guid>
		<description>Note: I&#039;t doesn&#039;t work anymore with Magento 1.4.0</description>
		<content:encoded><![CDATA[<p>Note: I&#8217;t doesn&#8217;t work anymore with Magento 1.4.0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zoran</title>
		<link>http://www.exploremagento.com/magento/override-a-magento-core-block-class.php/comment-page-1#comment-855</link>
		<dc:creator>Zoran</dc:creator>
		<pubDate>Fri, 29 Jan 2010 01:28:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.getfido.net/blog/?p=106#comment-855</guid>
		<description>Thanks for the nice explanation. 
What is the downside of overriding too many core files, is there an acceptable limit of working modullary by extending the core? Is using events observers methods easier and more flexible way of extending?</description>
		<content:encoded><![CDATA[<p>Thanks for the nice explanation.<br />
What is the downside of overriding too many core files, is there an acceptable limit of working modullary by extending the core? Is using events observers methods easier and more flexible way of extending?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
