I'm trying to extend Mage_Review_Block_Product_View but my new class is not called... I think it could be a typo, but I can't find it.
It is not a issue related to the code inside my class, but to the calling of class rewrite. If I make an override placing the modified class in app/code/local/Mage/Review/Block/Product/View.php it does it job.
If I try to integrate the rewrite in a module it is not called. Here me code:
module config.xml:
[...]
<global>
<blocks>
[...]
<review>
<rewrite>
<form>Bbox_ExtendReview_Block_Review_Form</form>
<product_view>Bbox_ExtendReview_Block_Review_Product_View</product_view>
</rewrite>
</review>
[...]
</blocks>
[...]
</global>
Than in app/code/local/Bbox/ExtendReview/Block/Review I have:
- Form.php that is correctly called
- Product/View.php that is not called
The View.php contain the class extension:
<?php
class Bbox_ExtendReview_Block_Review_Product_View extends Mage_Review_Block_Product_View
{
public function getReviewsCollection()
{
//some code...
}
Everything looks fine to me.. and the rewrite in Form.php is correctly working, so I don't understand way the Product/View.php is not...
I'll really appreciate any advice.