AnsweredAssumed Answered

Copying custom fields from a Product Catalog Entry to a new Quote Line Item

Question asked by Russell Street on Jun 13, 2017
Latest reply on Jun 13, 2017 by Russell Street



In Sugar 7.9.x:


Does anyone know how we get new custom fields in the Product Catalog (Product Template) module automatically copied over as default values for the line items in the Quotes module?


Out of the box it does this for some fields (e.g., Description and Product Code) but not all of them and not new fields we add to the system.


In the core Sugar Products.php module (modules/Products/Product.php) there is the default field list in the $template_fields array.


Is there a good way to extend this list in an upgrade-safe and OnDemand acceptable way?