Magento – Pass custom attribute from product listing to cart page

addtocartcustom-attributes

I need to get a custom attribute from the product list page to the cart page.

I need to know how to send the attribute from the product page and then how to get that attribute for that product on the cart page.

Any help would be great.

Thanks
S

Best Answer

If you want to pass an attribute to the cart you need to transfer the attribute from the product entity to the quote_item how explained in this post

product attribute to quote item and order item

This because the magento cart items is a collection of quote_item objects

regards Giuseppe