What Function Sends Data To The Cart Content Block And The Products In Cart Block?

In the same way that the Featured Items, New Items, Items on Sale, etc. blocks (and even the product pages, and micro stores) use the function fn_get_products() in fn.catalog.php is there a function in fn.cart.php that sends data to the Cart Content and Products in Cart blocks?

I want to insert a key and value into the $cart_products array that I'll use whenever the products are shown in these blocks. I thought the function would be fn_get_cart_products() but when I did some tests, I don't think they use that function. Could it be fn_calculate_cart_content()?

Editing fn_gather_additional_products_data in fn.catalog.php seems to have an effect but only in the dispatch checkout.cart, I'm not sure if it affects any of the blocks I actually need it in.

Any ideas?

Thanks.

If you mean mini cart block. the data is taken from session

Yup, that was what I was looking for, thanks!

Quick follow up question, what's the function that actually adds a product into your cart and session when you press the 'Add to Caart' button then?

Yup, that was what I was looking for, thanks!

Quick follow up question, what's the function that actually adds a product into your cart and session when you press the 'Add to Caart' button then?

Check fn_add_product_to_cart (app/functions/fn.cart.php)

That was it, thanks a bunch!

You are welcome!