Supporting functions in preparation of the cart page