Hi,
I'm trying to update an email template that loops through the items in the cart and displays a transformation for each. I'd like to use CartItems instead of ContentTable because of the strong-typing. I've been trying something like this:
{% foreach (item in ShoppingCart.CartItems) { %} {% item.ProductOptions.Count %}<br /> {% } #%}
but obviously it's not working. Any ideas?
Are you sending this email after the order is complete? If so the shopping cart has already been emptied and put into the order prior to this email being sent out. You need to access the final order data to do this.
Hey Virgil,
This is actually before payment, so I believe the Shopping Cart items still exist. I got some direction from Kentico Support to use a custom macro to accomplish this. Thanks for the response!
Please, sign in to be able to submit a new answer.