Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Category View Error in Modern Theme
 
Cube Websites
Jr. Member
 
Avatar
Total Posts:  20
Joined:  2008-09-30
 

Hi,

We’ve recently upgrade our bliss theme to be compatible with Magento 1.1.7 & 1.1.8 using the full patch of the Modern theme (on which Bliss is based)

One error that we spotted was the category view page edit states:

+<?php
+    $_helper    $this->helper('catalog/output');
+    
$_category  $this->getCurrentCategory();
+    
$_imgHtml   '';
+    if (
$_imageUrl $_category->getImageUrl()) {
+        $_imgHtml '<img src="'.$_imageUrl.'" alt="'.$this->htmlEscape($_category->getName()).'" class="category-image" />';
+        
$_imgHtml $_helper->categoryAttribute($_category$_imgHtml'image');
+    
}
+?>

and then further we add

+    <?php if($_imageUrl): ?>
+        <?php echo $_imageHtml ?>

This gives an error as $_imageHtml is not defined.
We’re assuming that:

+        $_imgHtml $_helper->categoryAttribute($_category$_imgHtml'image');
should actually be:
+        $_imageHtml $_helper->categoryAttribute($_category$_imgHtml'image');

We hope that this is correct and that the information is useful to someone.
Regards
Cube Websites

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top