Title: Adding Gravity Forms Product Addon globally
Last modified: February 28, 2018

---

# Adding Gravity Forms Product Addon globally

 *  Resolved [bstone81](https://wordpress.org/support/users/bstone81/)
 * (@bstone81)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/adding-gravity-forms-product-addon-globally/)
 * I have over a thousand products, and I am hoping that I can globally add a Gravity
   Forms Product Addon form to all my products without having to go into each product
   and add it. Is there some code for doing this?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadding-gravity-forms-product-addon-globally%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [bstone81](https://wordpress.org/support/users/bstone81/)
 * (@bstone81)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/adding-gravity-forms-product-addon-globally/#post-10026122)
 * I was just wondering if there is a a PHP file that can be edited to make the 
   selection global for the same form on all my products.
 * I was looking in the gravityforms-product-addons-admin.php file at this code,
   and wondering is this is the place to have the PHP use the same form:
 *  <div class=”options_group”>
    <p class=”form-field”> <label for=”gravityform-
   id”><?php _e( ‘Choose Form’, ‘wc_gf_addons’ ); ?></label> <?php echo ‘<select
   id=”gravityform-id” name=”gravityform-id”><option value=””>’ . __( ‘None’, ‘wc_gf_addons’).‘
   </option>’; foreach ( RGFormsModel::get_forms() as $form ) { echo ‘<option ‘ .
   selected( $form->id, ( isset( $gravity_form_data[‘id’] ) ? $gravity_form_data[‘
   id’] : 0 ) ) . ‘ value=”‘ . esc_attr( $form->id ) . ‘”>’ . wptexturize( $form-
   >title ) . ‘</option>’; } echo ‘</select>’; ?> </p>
 *  [Luminus Alabi](https://wordpress.org/support/users/luminus/)
 * (@luminus)
 * Automattic Happiness Engineer
 * [8 years, 3 months ago](https://wordpress.org/support/topic/adding-gravity-forms-product-addon-globally/#post-10026889)
 * [@bstone81](https://wordpress.org/support/users/bstone81/),
 * The Gravity Forms Add-Ons extension is a premium product. If you have a valid
   subscription for it, please open a support ticket by going here – [https://woocommerce.com/my-account/tickets/](https://woocommerce.com/my-account/tickets/)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adding Gravity Forms Product Addon globally’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Luminus Alabi](https://wordpress.org/support/users/luminus/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/adding-gravity-forms-product-addon-globally/#post-10026889)
 * Status: resolved