I need a detailed explanation of how the shopping cart moves through the attributes and individually associates them to each product.

I'm trying to associate a custom attribute to each product. Im able to get the custom attributes id into the customer_basket_attributes db, but the code to get the info for each id and place it individually with each product has eluded me.

The current code I have wants to pull only the first record in the db and then populate each product after with that same first result.

I apologize if this seems vague, its been a while for me to use php and I'm a bit rusty.

Thanks in advance!