I'm trying to implement a new subtotal of cart, only on the cart GUI and not in the java code, for this i am using aggregates of thymeleaf like this, in cart.html:
Code: Select all
<tr th:each="item : ${cart.orderItems}" th:object="${item}" >
<td th:text="*{#aggregates.sum(![salePrice.doubleValue()])}">23.32</td>
</tr>
But this gives me the following error:
Code: Select all
Projection is not supported on the type 'org.broadleafcommerce.core.order.domain.DiscreteOrderItemImpl'
Can someone help?
Thanks in advance!
Regards,
Rajnish