Update product.php

Make product.php class extension friendly, especially for method addProduct