Resolve promise issue with the item count and total price.