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

display product attribute in cart
 
Nicolas
Jr. Member
 
Total Posts:  14
Joined:  2007-08-31
 

Hello,

I would like display a product attribute in cart.
In admin, I set a product stock message for each Product. I would like to display this message in cart for each product.

In checkout/cart/item/default.phtml, I have put :

<?php echo $this->getProductMessageStock() ?>

In checkout/cart/block/item/renderer.php, I have a new function :

public function getProductMessageStock()
    
{
        
return $this->getProduct()->getMessageStock();
    
}

I don’t know why I can not display the attribute. In have no problem in product page to display the message.

Thanks
Nicolas

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