Inside our template/catalog/product/list.php file I want to load ChildHtml.
Inside list.php I got this line:
<ul class="productbox-beknoptespecs">
<?php echo $this->getChildHtml('beknopte_specificaties_new'); ?>
</ul>
What do I need to place inside our local.xml file?
External .php file:
<?php
$_helper = $this->helper('catalog/output');
$_product = $this->getProduct();
$theme = $this->helper('ultimo');
?>
<!-- LAPTOPS -->
<?php $yourCatIds = array(27,233,234,235);
$productCats = $_product->getAvailableInCategories();
if (count(array_intersect($yourCatIds,$productCats))) {
if($_product->getData('i_display_diagonal_944_1')) :
echo '<li class="short-specifications"><span class="attributename">' . $_product->getResource()->getAttribute('i_display_diagonal_944_1')->getFrontendLabel() . '</span>';
echo '<span class="attributetext">' . $_product->getAttributeText('i_display_diagonal_944_1') . '</span></li>';
endif;
}
?>
I tried this but that does not work:
<catalog_category_layered>
<reference name="product_list">
<block type="catalog/product_view" name="beknopte_specificaties_new" as="beknopte_specificaties_new" template="catalog/product/view/beknoptespecs.phtml"/>
</reference>
</catalog_category_layered>
<?php echo $this->getBlockHtml('beknopte_specificaties_new'); ?>