Recently I did an upgrade of Magento 1.0.19870.1 to Magento 1.1.2 version. Most of the things went pretty smooth, without any errors. However, if you’re using custom theme instead of the built in you’re probably run into some errors. One of those errors will most probably be broken page.
Among few other problems, I had a broken popup page on Compare Products. If you login to backend interface and turn on show hint’s for template, you can easily see from where each part of the page is pooled from. Compare Products is pooled from “app/design/frontend/default/default/template/catalog/product/compare/”. There you can see two files: “sidebar.phtml” and “list.phtml”. The other one is the one that is actually popup. Since my popup error was specific: it opened, but showed none of the compare info, it was logical to have a look inside “list.phtml” file.
What I don’t get it, is why do Magento boys and girls did not use the same helper functions they used in Magento version 1.0.19870.1. My Compare Products popup page get broken because it was calling non existent function. Check the following code.
From version 1.0.19870.1
<?php echo $this->helper('review/product')->getSummaryHtml($_item, 'short') ?> <?php echo $this->helper('catalog/product')->getPriceHtml($_item) ?>
From version 1.1.2
<?php echo $this->getReviewsSummaryHtml($_item, 'short') ?> <?php echo $this->getPriceHtml($_item, true) ?>
It’s obvious the function names have change, therefore it’s obvious why template page broke. When dealing with these kind of problems, my approach is to first enable template hints in admin backend, then open the template file where page brakes. If you’re using custom made template, problems will probably be template related.

Recent Comments