We want to make a menu in the sidebar, based on our attributes inside one magento web shop.
The example would be "Shop by" on this link: http://demo.magentocommerce.com/catalog/category/view/s/shirts/id/4/
We have created new attributes-sidebar.phtml and added following code inside local.xml
<catalog_product_view>
<reference name="left">
<block type="core/template" name="attributes.sidebar" template="callouts/attributes- sidebar.phtml"/>
</reference>
</catalog_product_view>
We are now trying inside that sidebar-attributes.phtml show the attributes with following code:
<?php
echo "blablablablabla";
$_helper = Mage::helper('catalog/category');
$_product = Mage::registry('current_product');
?>
<?php if($_product->getPrice()): ?>
<p>Attribute: <?php echo $_helper->productAttribute($_product, $_product->getPrice(), 'price') ?></p>
<?php else: ?>
<p>No Attribute text here!</p>
<?php endif; ?>
And we are getting nothing.. No errors, nor anything displayed.
Local xml is under:/app/design/frontend/default/our_theme/layout/
And attributes-sidebar.phtml is under: /app/design/frontend/default/our_theme/template/callouts/