Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Tweeted twitter.com/StackMagento/status/953029638426591232
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
6 deleted 89 characters in body
source | link
<sales_order_view>
        <reference name="order_items">
            <action method="addItemRender" ifconfig="mymodule/general/active"><type>default</type>
                <block>sales/order_item_renderer_default</block>
                <template>namespace/mymodule/sales/order/items/renderer/default.phtml</template>
            </action>
        </reference>
</sales_order_view>
<!--show points earned on each product-->
    <?php $finalPointsEarned = ($_item->getCustomerProductPoints() * $_item->getQtyOrdered()); ?>
    <div class="product-cart-sku">
        <span style="color: #d4af37; font-weight: bold;"><?php echo $this->__('Points Earned:'); ?>
            <?php echo $finalPointsEarned ?>
        </span>
    </div>
<!--show points earned on each product-->
<global>
        <blocks>
            <productpoint>
                <class>Namespace_Modulename_Block</class>
            </productpoint>
            <sales>
                <rewrite>
                    <order_item_renderer_default>Namespace_Modulename_Block_Sales_Order_Item_Renderer_Default</order_item_renderer_default>
                </rewrite>
            </sales>
        </blocks>
</global>
<?php

class Namespace_Modulename_Block_Sales_Order_Item_Renderer_Default extends Mage_Sales_Block_Order_Item_Renderer_Default
{


 
    public function getInvoiceProductPoints()
    {
        parent::getItem();
        $_item = $this->getItem();
        $finalPointsEarned = ($_item->getCustomerProductPoints() * $_item->getQty());
        return $finalPointsEarned;
    }
 
}
<?php $addInfoBlock = $this->getInvoiceProductPoints(); ?>
        <?php if ($addInfoBlock): ?>
            <?php echo $addInfoBlock ?>
<?php endif;?>
<sales_order_view>
        <reference name="order_items">
            <action method="addItemRender" ifconfig="mymodule/general/active"><type>default</type>
                <block>sales/order_item_renderer_default</block>
                <template>namespace/mymodule/sales/order/items/renderer/default.phtml</template>
            </action>
        </reference>
</sales_order_view>
<!--show points earned on each product-->
    <?php $finalPointsEarned = ($_item->getCustomerProductPoints() * $_item->getQtyOrdered()); ?>
    <div class="product-cart-sku">
        <span style="color: #d4af37; font-weight: bold;"><?php echo $this->__('Points Earned:'); ?>
            <?php echo $finalPointsEarned ?>
        </span>
    </div>
<!--show points earned on each product-->
<global>
        <blocks>
            <productpoint>
                <class>Namespace_Modulename_Block</class>
            </productpoint>
            <sales>
                <rewrite>
                    <order_item_renderer_default>Namespace_Modulename_Block_Sales_Order_Item_Renderer_Default</order_item_renderer_default>
                </rewrite>
            </sales>
        </blocks>
</global>
<?php

class Namespace_Modulename_Block_Sales_Order_Item_Renderer_Default extends Mage_Sales_Block_Order_Item_Renderer_Default
{


 
    public function getInvoiceProductPoints()
    {
        parent::getItem();
        $_item = $this->getItem();
        $finalPointsEarned = ($_item->getCustomerProductPoints() * $_item->getQty());
        return $finalPointsEarned;
    }
 
}
<?php $addInfoBlock = $this->getInvoiceProductPoints(); ?>
        <?php if ($addInfoBlock): ?>
            <?php echo $addInfoBlock ?>
<?php endif;?>
<sales_order_view>
    <reference name="order_items">
        <action method="addItemRender" ifconfig="mymodule/general/active"><type>default</type>
            <block>sales/order_item_renderer_default</block>
            <template>namespace/mymodule/sales/order/items/renderer/default.phtml</template>
        </action>
    </reference>
</sales_order_view>
<!--show points earned on each product-->
<?php $finalPointsEarned = ($_item->getCustomerProductPoints() * $_item->getQtyOrdered()); ?>
<div class="product-cart-sku">
    <span style="color: #d4af37; font-weight: bold;"><?php echo $this->__('Points Earned:'); ?>
        <?php echo $finalPointsEarned ?>
    </span>
</div>
<!--show points earned on each product-->
<global>
    <blocks>
        <productpoint>
            <class>Namespace_Modulename_Block</class>
        </productpoint>
        <sales>
            <rewrite>
                <order_item_renderer_default>Namespace_Modulename_Block_Sales_Order_Item_Renderer_Default</order_item_renderer_default>
            </rewrite>
        </sales>
    </blocks>
</global>
<?php

class Namespace_Modulename_Block_Sales_Order_Item_Renderer_Default extends Mage_Sales_Block_Order_Item_Renderer_Default
{
    public function getInvoiceProductPoints()
    {
        parent::getItem();
        $_item = $this->getItem();
        $finalPointsEarned = ($_item->getCustomerProductPoints() * $_item->getQty());
        return $finalPointsEarned;
    }
}
<?php $addInfoBlock = $this->getInvoiceProductPoints(); ?>
<?php if ($addInfoBlock): ?>
    <?php echo $addInfoBlock ?>
<?php endif;?>
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user