I am creating a cart on my website, everything is stored in session as serialized array.
I want to have helping functions like 'getPrize', 'getCart' and so on. Where should i store these functions?
example : 'getPrize' function will get the serialized array from session, foreach products and return final prize.