added file with functions from products.php