<?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>Mon, 10 Jan 2011 07:35:46 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: magento tutorial</title>
		<link>http://www.exploremagento.com/magento/override-a-magento-core-block-class.php/comment-page-1#comment-1120</link>
		<dc:creator>magento tutorial</dc:creator>
		<pubDate>Sat, 01 Jan 2011 03:51:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.getfido.net/blog/?p=106#comment-1120</guid>
		<description>i love you site,it include so many useful sutff.i hope you will keep go on do this</description>
		<content:encoded><![CDATA[<p>i love you site,it include so many useful sutff.i hope you will keep go on do this</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Name</title>
		<link>http://www.exploremagento.com/magento/override-a-magento-core-block-class.php/comment-page-1#comment-1044</link>
		<dc:creator>Name</dc:creator>
		<pubDate>Fri, 01 Oct 2010 05:22:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.getfido.net/blog/?p=106#comment-1044</guid>
		<description>the crowd was very big</description>
		<content:encoded><![CDATA[<p>the crowd was very big</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manuel</title>
		<link>http://www.exploremagento.com/magento/override-a-magento-core-block-class.php/comment-page-1#comment-1038</link>
		<dc:creator>Manuel</dc:creator>
		<pubDate>Sun, 26 Sep 2010 00:10:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.getfido.net/blog/?p=106#comment-1038</guid>
		<description>Hi, I&#039;m a java developer and i&#039;m studying a Magento framework, it seams that the team did a great work, so I&#039;m trying to understand some meaning and i&#039;ve got some conceptual doubt, for example in Step 2, what is the difference in that code, is instead  i&#039;ve got  , i mean my block call different shoud it work? 
i mean i would like to understand the concept involve in both codes,
thank you for any tips.
Regards.</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m a java developer and i&#8217;m studying a Magento framework, it seams that the team did a great work, so I&#8217;m trying to understand some meaning and i&#8217;ve got some conceptual doubt, for example in Step 2, what is the difference in that code, is instead  i&#8217;ve got  , i mean my block call different shoud it work?<br />
i mean i would like to understand the concept involve in both codes,<br />
thank you for any tips.<br />
Regards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sandeep Kumar</title>
		<link>http://www.exploremagento.com/magento/override-a-magento-core-block-class.php/comment-page-1#comment-1021</link>
		<dc:creator>Sandeep Kumar</dc:creator>
		<pubDate>Wed, 18 Aug 2010 00:02:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.getfido.net/blog/?p=106#comment-1021</guid>
		<description>Great tutorial on breadcrumbs.I was looking for many days.
Thanks FIDO</description>
		<content:encoded><![CDATA[<p>Great tutorial on breadcrumbs.I was looking for many days.<br />
Thanks FIDO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wookie</title>
		<link>http://www.exploremagento.com/magento/override-a-magento-core-block-class.php/comment-page-1#comment-1014</link>
		<dc:creator>wookie</dc:creator>
		<pubDate>Tue, 10 Aug 2010 11:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.getfido.net/blog/?p=106#comment-1014</guid>
		<description>I also had the problem (Magento 1.4.1.1) with the &quot;return parent::_prepareLayout();&quot; creating a &quot;Home&quot; link at the end of the breadcrumb path.

To fix I just extended Mage_Core_Block_Template class instead of Mage_Catalog_Block_Breadcrumbs. Then I added the public function &quot;getTitleSeparator($store = null)&quot; to my new class to keep it working. That way you are using a completely different method instead of inheriting the Mage_Catalog_Block_Breadcrumbs as parent, which adds a &quot;home&quot; link by default.

 It is a shame that the [Breadcrumbs-A] script does not support a deleteCrumb method, or for that matter an entire CRUD methdology for manipulating crumbs. ie. Create, Read, Update, Delete. It could be an idea for a module override, but personally I would like to see that type of functionality implemented in the core.

As a side note I note the addCrumb method has a boolean parameter to insert a crumb &quot;$after&quot;, however it is just a parameter in the function and has no influence as it is not actually implemented.</description>
		<content:encoded><![CDATA[<p>I also had the problem (Magento 1.4.1.1) with the &#8220;return parent::_prepareLayout();&#8221; creating a &#8220;Home&#8221; link at the end of the breadcrumb path.</p>
<p>To fix I just extended Mage_Core_Block_Template class instead of Mage_Catalog_Block_Breadcrumbs. Then I added the public function &#8220;getTitleSeparator($store = null)&#8221; to my new class to keep it working. That way you are using a completely different method instead of inheriting the Mage_Catalog_Block_Breadcrumbs as parent, which adds a &#8220;home&#8221; link by default.</p>
<p> It is a shame that the [Breadcrumbs-A] script does not support a deleteCrumb method, or for that matter an entire CRUD methdology for manipulating crumbs. ie. Create, Read, Update, Delete. It could be an idea for a module override, but personally I would like to see that type of functionality implemented in the core.</p>
<p>As a side note I note the addCrumb method has a boolean parameter to insert a crumb &#8220;$after&#8221;, however it is just a parameter in the function and has no influence as it is not actually implemented.</p>
]]></content:encoded>
	</item>
	<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>
</channel>
</rss>

