Update DataManager.php

added to the add products function and added some helper functions for it