I'm using magento enterprise 1.13.0.1.
When I apply special price for a product, base and final price are visible in both product page and catalog products list.
But when I apply catalog promotion price rule, final and base price are visible in product page, but in catalog products list only base price is visible. how should I fix it?
Is this a bug?
-
I think this is something to do with your theme as I have tested this with a clean installation and the special price and regular price is shown on search, category and product list.– David MannersCommented May 22, 2014 at 19:48
Add a comment
|
2 Answers
Poonya,you can load the product by product id
$pro=Mage::getModel('catalog/product')->load($_product->getId());
$OrgPrice=$pro->getPrice();
$finalPrice=$pro->getFinalPrice();
Hope ,it will help you..
Or Goes to app/code/core/Mage/Catalog/Product/List.php
copy to app/code/local/Mage/Catalog/Product/List.php
then
find function
getLoadedProductCollection()
public function getLoadedProductCollection()
{
$Collection=$this->_getProductCollection();
$Collection->addMinimalPrice()
->addFinalPrice();
return $Collection;
}
same change need for Mage>CatalogSearch>Block>Result.php
under: list.phtml in foreach add
$_product->getFinalPrice();
-
Thank. But I want know why price block in catalog products list doesn't show final price that calculated by catalog rules. Commented Mar 8, 2014 at 10:01
-
-
9NEVER NEVER NEVER make a
load()
inside theforeach()
of the product list, it is a performance killer. Whatever the error is, fix the error, add missing attributes via observer orconfig.xml
to the collection but NEVERload()
... argh. sorry being mad about this. Commented Apr 7, 2014 at 18:53