I am trying to show Magento product stock information and Magento product price information in the tab Description
.
I have copied the following code from:
app/design/frontend/default/theme/template/catalog/product/view.phtml
<?php echo $this->getChildHtml('product_type_data') ?>
into:
app/design/frontend/default/theme/template/catalog/product/view/description.phtml
This displays the stock and price information on view.phtml, but nothing is shown in description.phtml
.
Any suggestion?
The problem is that
product_type_data
block is a child ofproduct.info
(from where you actually copied it) and notdescription
block.So what do you have to do is to add the following code to
local.xml
file of your theme: