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()
I don’t know why I can not display the attribute. In have no problem in product page to display the message.