How to extend bean functions in 7.2?

I'm using SugarCRM 7.2. I have written some functions directly on modules/Products/Product.php. But this is not an upgrade safe manner. So can anyone please help me on how can I move those functions to custom folder? Previously I've done it through controller.php but I'm not very much confident in Sugar 7.2 can anyone help me out please
Parents
  • Hi eggsurplus,

    Thanks in advance for the help and sorry for late reply ... no I haven't had any luck till now. I have written some custom functions on ProductBundle module. Which are being called in Quotes detail view page. we are calling those functions from view.detail.php when we are fetching the relationship data. get_index(), get_bundle_product_indexes(), get_bundle_note_indexes(), from_product_categories_products(), get_product_bundle_line_items() these are the custom functions I have written in product bundle module in core file. we need to change it to make upgrade safe.
Reply
  • Hi eggsurplus,

    Thanks in advance for the help and sorry for late reply ... no I haven't had any luck till now. I have written some custom functions on ProductBundle module. Which are being called in Quotes detail view page. we are calling those functions from view.detail.php when we are fetching the relationship data. get_index(), get_bundle_product_indexes(), get_bundle_note_indexes(), from_product_categories_products(), get_product_bundle_line_items() these are the custom functions I have written in product bundle module in core file. we need to change it to make upgrade safe.
Children
No Data