Sum TotalWeight at Checkout
I've implemented a way for my customer to choose different weights of roasted coffee (1lb, 2lb and 5lb bags) through a menu/list then select the quantity of each item. I've made the weight value unique in the eCart column but when I bind the TotalWeight value to the checkout page to show the total weight of all orders, the value that appears is from the first item in the cart. For example, If I have two 5lb bags of coffee A, one 2lb bag of Coffee A and three 5lb bags of Coffee B, the TotalWeight will only show the sum of the first item in the cart which is coffee A (10lbs). Is there a calculation that I can create to sum up all of the weight values? I'm using PHP.