How to Create a Custom Product Field Type for Pricing


I want to create a custom field type in Gravity Forms that will act as a custom product.

For clarity, let’s assume I have a simple input number field that extends G_Field:

class Custom_Product extends G_Field {
// Custom code here

I need this custom field to be added to the Pricing category and be included in the total calculation.

Could anyone guide me on the methods, filters, or JavaScript functions required to override or define to achieve this?

Thank you!