Display Tier Price on Cart page in Magento -


how can display tier price on cart page in magento?

i understand method gettierpricehtml() works on list , detail page, cannot use on cart page.

i'm editing /template/checkout/cart/item/default.phtml

you want tier price in cart page also.i think useful functionality

you can directly use code in checkout/cart/item/default.phtml: after $_item = $this->getitem(); (in line 28)....

     **$tierprice = $this->getlayout()->createblock( 'catalog/product_view', 'product.tierprices', array(     'product_id' => $_item->getproductid() ) 

);**

**$tierprice->settemplate('catalog/product/view/tierprices.phtml');**   **echo $tierprice->gettierpricehtml();** 

you can create own style template file can use in place of catalog/product/view/tierprice.phml catalog/product/view/tierprice1.phml


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -