• Resolved bstone81

    (@bstone81)


    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 to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bstone81

    (@bstone81)

    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

    (@luminus)

    Automattic Happiness Engineer

    @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/

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

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