# Creating a new product drop down that has two prices

**URL:** <https://community.gravityforms.com/t/creating-a-new-product-drop-down-that-has-two-prices/18431>\
**Category:** Get Help\
**Tags:** custom, gf\_field\_event\_product\
**Created:** [November 4, 2024, 6:45pm UTC](https://community.gravityforms.com/t/creating-a-new-product-drop-down-that-has-two-prices/18431 "2024-11-04T18:45:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdot](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mdot](https://community.gravityforms.com/u/mdot)\
**Post date:** [November 4, 2024, 6:45pm UTC](https://community.gravityforms.com/t/creating-a-new-product-drop-down-that-has-two-prices/18431/1 "2024-11-04T18:45:47Z")

</div>

Im trying to make a new product type that we will call `Event`

**Idea:** make a product called `Event` (figure 1), this will will be a normal product that will default to type = `Drop Down`. Under the `edit choices` button we will have the normal columns `Label`, `Value` and `Price` we will add a new column called `Group Price` (figure 2). In the form the filed we will render a Drop Down where a user can select an event and under it we will render a quantity for the regular price and then the group price (figure 3).

 ![image](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/b/b69895f27c26995154e47c659d75d9f9c149e779.png)

here is what ive got so far in the code any help would be appreciated!

```php
<?php
class GF_Field_Event_Product extends GF_Field_Product{
  public $type = 'event_product';

  public function get_form_editor_field_title(){
    return esc_attr__('Event Product', 'gravityforms');
  }

  public function get_form_editor_button(){
    return array(
      'group' => 'custom_addon',
      'text' => $this->get_form_editor_field_title()
    );
  }

  public function get_form_editor_field_settings(){
    return array(
      'admin_label_setting',
      'css_class_setting',
      'default_value_setting',
      'description_setting',
      'label_setting',
      'prepopulate_field_setting',
      'product_field_type_setting'
    );
  }

  // Set default values
  public function get_field_input($form, $value = '', $entry = null){
    $this->label = __('Please choose an event', 'gravityforms');
    return parent::get_field_input($form, $value, $entry);
  }
}

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [December 4, 2024, 6:46pm UTC](https://community.gravityforms.com/t/creating-a-new-product-drop-down-that-has-two-prices/18431/2 "2024-12-04T18:46:36Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
