Made cart items templatable. Closes #814