Reducer function that catches actions and changes/overwrites product entities state.
@param state current State of the redux store @param action CartItemGrid, BestSellers, or CartItem actions @returns CartItem entities state