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

show a block below the price in view of the product
 
karlec
Jr. Member
 
Avatar
Total Posts:  13
Joined:  2008-08-26
Argentina
 

Creating a new module, needs to show a block below the price in view of the product. I can not locate it either. I managed to display above or below with the product information. I want to configure it from the xml module. Suggestions?

<?xml version="1.0"?>
<layout version="0.1.0">
<default>
</default>
<catalog_product_view>
<reference name="content">
<block type="donations/donations" name="showdonation" as="showdonation" template="donations/donations.phtml" before="product.info"/>
</reference>
</catalog_product_view>

</layout>

 
Magento Community Magento Community
Magento Community
Magento Community
 
chapagain
Sr. Member
 
Avatar
Total Posts:  202
Joined:  2009-07-19
 

Open frontend layout of catalog.xml then search for the code below (might be at line 240):

<!--
Additional block dependant on product type
-->
    <
PRODUCT_TYPE_simple>
        <
reference name="product.info">
            <
block type="catalog/product_view_type_simple" name="product.info.simple" as="product_type_data" template="catalog/product/view/type/simple.phtml"/>
        </
reference>
    </
PRODUCT_TYPE_simple>
    <
PRODUCT_TYPE_configurable>
        <
reference name="product.info">
            <
block type="catalog/product_view_type_configurable" name="product.info.configurable" as="product_type_data" template="catalog/product/view/type/configurable.phtml"/>
        </
reference>
        <
reference name="product.info.options.wrapper">
            <
block type="catalog/product_view_type_configurable" name="product.info.options.configurable" as="options_configurable" before="-" template="catalog/product/view/type/options/configurable.phtml"/>
        </
reference>
    </
PRODUCT_TYPE_configurable>
    <
PRODUCT_TYPE_grouped>
        <
reference name="product.info">
            <
block type="catalog/product_view_type_grouped" name="product.info.grouped" as="product_type_data" template="catalog/product/view/type/grouped.phtml" />
        </
reference>
    </
PRODUCT_TYPE_grouped>
    <
PRODUCT_TYPE_virtual>
        <
reference name="product.info">
            <
block type="catalog/product_view_type_virtual" name="product.info.virtual" as="product_type_data" template="catalog/product/view/type/virtual.phtml"/>
        </
reference>
    </
PRODUCT_TYPE_virtual>

If your product is simple type then:

<PRODUCT_TYPE_simple>
        <
reference name="product.info">
            <
block type="catalog/product_view_type_simple" name="product.info.simple" as="product_type_data" template="catalog/product/view/type/simple.phtml"/>

         
// YOUR CUSTOM MODULE BLOCK SHOULD GO HERE

        
</reference>
    </
PRODUCT_TYPE_simple>

This may work. Good Luck.

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