Calculate cart columns automatically.