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

Tier Price error!!! Magento ver. 1.3.2
 
WEBPAL
Jr. Member
 
Total Posts:  18
Joined:  2009-05-28
Arad
 

Hello there i have a problem i have installed Magento ver. 1.3.2 and i wanted to make a Tier Price to a product to a category of costumers.
I save it in the admin.
and when i want to test it :
here is the error:
There has been an error processing your request.

NoticeUndefined index:  website_price  in /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Catalog/Model/Product/Type/Price.php on line 216
Trace
:
#0 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Catalog/Model/Product/Type/Price.php(216): mageCoreErrorHandler(8, 'Undefined index...', '/chroot/home/be...', 216, Array)
#1 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Catalog/Model/Product.php(582): Mage_Catalog_Model_Product_Type_Price->getFormatedTierPrice(NULL, Object(Mage_Catalog_Model_Product))
#2 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Catalog/Block/Product/Abstract.php(235): Mage_Catalog_Model_Product->getFormatedTierPrice()
#3 /chroot/home/bestauto/bestautovest.ro/html/work/app/design/frontend/default/hellopress/template/catalog/product/view/tierprices.phtml(33): Mage_Catalog_Block_Product_Abstract->getTierPrices()
#4 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Core/Block/Template.php(144): include('/chroot/home/be...')
#5 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#6 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template->renderView()
#7 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template->_toHtml()
#8 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Core/Block/Abstract.php(503): Mage_Core_Block_Abstract->toHtml()
#9 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Core/Block/Abstract.php(454): Mage_Core_Block_Abstract->_getChildHtml('tierprices', true)
#10 /chroot/home/bestauto/bestautovest.ro/html/work/app/design/frontend/default/hellopress/template/catalog/product/view.phtml(63): Mage_Core_Block_Abstract->getChildHtml('tierprices')
#11 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Core/Block/Template.php(144): include('/chroot/home/be...')
#12 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#13 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template->renderView()
#14 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template->_toHtml()
#15 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#16 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Text_List->_toHtml()
#17 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Core/Block/Abstract.php(503): Mage_Core_Block_Abstract->toHtml()
#18 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Core/Block/Abstract.php(454): Mage_Core_Block_Abstract->_getChildHtml('content', true)
#19 /chroot/home/bestauto/bestautovest.ro/html/work/app/design/frontend/default/hellopress/template/page/2columns-left.phtml(63): Mage_Core_Block_Abstract->getChildHtml('content')
#20 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Core/Block/Template.php(144): include('/chroot/home/be...')
#21 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#22 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template->renderView()
#23 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template->_toHtml()
#24 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Core/Model/Layout.php(526): Mage_Core_Block_Abstract->toHtml()
#25 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Core/Controller/Varien/Action.php(347): Mage_Core_Model_Layout->getOutput()
#26 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Catalog/controllers/ProductController.php(153): Mage_Core_Controller_Varien_Action->renderLayout()
#27 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Core/Controller/Varien/Action.php(376): Mage_Catalog_ProductController->viewAction()
#28 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(248): Mage_Core_Controller_Varien_Action->dispatch('view')
#29 /chroot/home/bestauto/bestautovest.ro/html/work/app/code/core/Mage/Core/Controller/Varien/Front.php(158): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#30 /chroot/home/bestauto/bestautovest.ro/html/work/app/Mage.php(459): Mage_Core_Controller_Varien_Front->dispatch()
#31 /chroot/home/bestauto/bestautovest.ro/html/work/index.php(65): Mage::run()
#32 {main}
Hope you can give me some advice.
 
Magento Community Magento Community
Magento Community
Magento Community
 
N Lopez
Sr. Member
 
Total Posts:  94
Joined:  2008-06-16
 

I have the same problem. Please help!!!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
N Lopez
Sr. Member
 
Total Posts:  94
Joined:  2008-06-16
 

This is the code arround line 216

public function getFormatedTierPrice($qty=null$product)
    
{
        $price 
$product->getTierPrice($qty);
        if (
is_array($price)) {
            
foreach ($price as $index => $value{
                $price[$index][
'formated_price'Mage::app()->getStore()->convertPrice($price[$index]['website_price']true);
            
}
        }
        
else {
            $price 
Mage::app()->getStore()->formatPrice($price);
        
}

        
return $price;
    
}
 
Magento Community Magento Community
Magento Community
Magento Community
 
N Lopez
Sr. Member
 
Total Posts:  94
Joined:  2008-06-16
 

Is somebody else having the same problem?

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