img commit calc for shopping cart