Magento – Accessing Custom Product Attributes in the Cart/Checkout Area

Home / Blog / Magento / Magento – Accessing Custom Product Attributes in the Cart/Checkout Area

For some reason, I always tend to run into this problem and I forgot the solution I previously implemented. Sometimes, you Magento site will have custom product attributes that you’d like to be viewable from the cart/checkout areas. For performance reasons, the product available to the order/quote doesn’t contain all of the attributes.

Instead of querying the product new to retrieve the attributes, you can instead define what attributes you’d like to be loaded during the cart/checkout process within the a config.xml file. The structure will be as follows:

<sales>
<quote>
<item>
<product_attributes>

<your_attribute_1/>
<your_attribute_2/>

</product_attributes>
</item>
<quote>
<sales>

Maybe this will save some others time as well…

Leave a Comment