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

Products no longer showing on brand pages
 
jeffb29
Jr. Member
 
Total Posts:  2
Joined:  2010-07-23
 

I am in the process of migrating from version 1.3.2.4 to 1.7.0.2 and have most of the issues worked out, however the products are no longer showing up on my brand pages. Granted this is an extension, but I don\’t understand why it is no longer working. The following code is from my manufacturer.phtml and aitmanufacturers.xml files, and it is all working correctly up until the last line which is \"getChildHtml(\’product_list\’)\". I\’m not sure if the \’$this\’ variable isn\’t getting passed or there is a problem with the xml, but I\’ve tried nearly everything with no luck. I know it is not the list.phtml file because products are still showing on the category pages. This is the exact setup I had on 1.3.2.4 and it worked without any problems. Any help would be appreciated.

manufacturer.phtml

<?php $manufacturer = $this->getManufacturer() ?>

<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>

<?php if ($image = $manufacturer->getImage()): ?>
<img src=\"<?php echo Mage::helper(\'aitmanufacturers/image\')->getUrl($image) ?>\” alt=\"<?php echo $this->htmlEscape($manufacturer->getTitle()) ?>\” title=\"<?php echo $this->htmlEscape($manufacturer->getTitle()) ?>\” style=\"float: left; padding: 0 10px 10px 0\” />
<?php endif ?>

<?php if ($content = $manufacturer->getContent()): ?>
<?php echo $content ?>
<?php echo $this->getChildHtml(\'manufacturer_categories_in_content\');?>
<br /><br />
<?php endif ?>

<?php //get view-all
$viewall2 = Mage::app()->getRequest()->getParam(\'all-products\');

echo $this->getChildHtml(\'product_list\');

?>

aitmanufacturers.xml

<?xml version=\"1.0\"?>
<layout version=\"0.1.0\">
<default>
<reference name=\"footer_links\">
<action method=\"addLink\" translate=\"label title\” module=\"aitmanufacturers\"><label>Brands</label><url helper=\"aitmanufacturers/data/getManufacturersUrl\" /><title>Brands</title><prepare></prepare><urlparams></urlparams><position>10</position></action>
</reference>
<reference name=\"left\">
<block type=\"aitmanufacturers/manufacturers_brief\" name=\"manufacturers.brief\" before=\"catalog.leftnav\" template=\"aitmanufacturers/manufacturers_brief.phtml\"/>
</reference>
</default>
<aitmanufacturers_index_list>
<reference name=\"root\">
<action method=\"setTemplate\"><template>page/2columns-left.phtml</template></action>
</reference>
<reference name=\"content\">
<block type=\"aitmanufacturers/manufacturers_featured\" name=\"manufacturers_featured\" template=\"aitmanufacturers/manufacturers_featured.phtml\"/>
<block type=\"aitmanufacturers/manufacturers\" name=\"manufacturers\" template=\"aitmanufacturers/manufacturers.phtml\"/>
</reference>
<reference name=\"left\">

</reference>
</aitmanufacturers_index_list>

<aitmanufacturers_index_view>
<reference name=\"root\">
<action method=\"setTemplate\"><template>page/2columns-left.phtml</template></action>
</reference>
<reference name=\"left\">
<!--<block type=\"aitmanufacturers/manufacturer_categories\" name=\"manufacturer_categories\" before=\"-\" template=\"aitmanufacturers/manufacturer_categories.phtml\"/>-->
</reference>
<reference name=\"content\">
<block type=\"aitmanufacturers/manufacturer\" name=\"manufacturer\" template=\"aitmanufacturers/manufacturer.phtml\">
<block type=\"aitmanufacturers/manufacturer_categories\" name=\"manufacturer_categories_in_content\" template=\"aitmanufacturers/manufacturer_categories_in_content.phtml\"/>
<block type=\"aitmanufacturers/product_list\" name=\"product_list\" as=\"product_list\" template=\"catalog/product/list.phtml\">
<action method=\"setColumnCount\"><columns>4</columns></action>
<block type=\"aitmanufacturers/product_toolbar\" name=\"product_list_toolbar\" as=\"product_list_toolbar\" template=\"catalog/product/list/toolbar.phtml\"/>
<action method=\"setToolbarBlockName\"><name>product_list_toolbar</name></action>
</block>
</block>
</reference>
</aitmanufacturers_index_view>

<!--<catalog_category_default>
<reference name=\"right\">
<block type=\"aitmanufacturers/manufacturers_brief\" name=\"manufacturers.brief\" template=\"aitmanufacturers/manufacturers_brief.phtml\"/>
</reference>
</catalog_category_default>
<catalog_category_layered>
<reference name=\"right\">
<block type=\"aitmanufacturers/manufacturers_brief\" name=\"manufacturers.brief\" template=\"aitmanufacturers/manufacturers_brief.phtml\"/>
</reference>
</catalog_category_layered>
-->

<catalog_product_view>
<reference name=\"product.info\">
<action method=\"setTemplate\"><template>aitcommonfiles/design--frontend--default--default--template--catalog--product--view.phtml</template></action>
</reference>
</catalog_product_view>
</layout>

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