Add product short-description on product review page in magento -
i using
$_helper->productattribute($_product, nl2br($_product->getshortdescription()), 'short_description');
in catalog/product/view.phtml show product short description.
it showing in single product page not in product review page though enabling template path hints shows both come view.phtml
any suggestions?
there logical implementation avalibale
on magento.
i have seen in class mage_review_block_product_view
short description
set null . have comment code .now working
so re-create app/code/core/mage/review/block/product/view.php
app/code/local/mage/review/block/product/view.php
, edit
protected function _tohtml() { $this->getproduct()->setshortdescription(null); homecoming parent::_tohtml(); }
to
protected function _tohtml() { //$this->getproduct()->setshortdescription(null); homecoming parent::_tohtml(); }
or enable short_description used in product list admin>catalog>manage attribute
magento magento-1.8
No comments:
Post a Comment