Added a hook method to product model