I'm trying to set a custom information for the product on the Catalog (product detail page) and retrieve this information at the checkout. Note: I need to associate with the specific product so I can get the information for every product at the cart.
At the product page I'm using this logic:
$_product = Mage::Registry('current_product');
$customInfo = "teste 123";
$_product -> setData('seller', $customInfo );
And to retrieve the information at the cart page, I'm using this logic:
$cart = Mage::getModel('checkout/cart')->getQuote();
foreach ($cart->getAllItems() as $item) {
$customInfo = $item->getProduct()->getData('seller');
}
The logic is not working.
What is the best way to associate specific values for specific products during the user session and retrieve this information?
Thx