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

[solved] tier prices --> catalog view
 
jubatus
Jr. Member
 
Total Posts:  18
Joined:  2008-09-21
 

I would like so have tier prices shown in the catalog similar to the product info page.
I am using default template and tried to simply copy

<?php echo $this->getTierPriceHtml() ?>
from view.phtml to list.phtml, but got an error message:

Fatal error: Call to a member function getTypeId() on a non-object in /var/www/dieseitexde/app/code/core/Mage/Catalog/Block/Product/Abstract.php on line 211

Obviously I need to edit catolog.xml too or/and need to add someting else.
I tried so add

<action method="insert"><block>product.tierprices</block></action>
<
action method="setTierPriceTemplate"><template>catalog/product/view/tierprices.phtml</template></action>
to
<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
...
But the error still exists.

Can somebody help me out?

 
Magento Community Magento Community
Magento Community
Magento Community
 
jubatus
Jr. Member
 
Total Posts:  18
Joined:  2008-09-21
 

Solution:

<? $tierprices Mage::getModel('Bundle/Product_Price')->getTierPrice("",$_product)?>
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top