pass the product name to form field cf7 woocommerce

Solutions on MaxInterview for pass the product name to form field cf7 woocommerce by the best coders in the world

showing results for - "pass the product name to form field cf7 woocommerce"
Chahinez
14 Jul 2019
1<button type="submit" value="<?php echo esc_attr( $product->get_id() ); ?>"
2        class="single_add_to_cart_button button alt"><?php echo _e( 'Request', 'framework' ); ?></button>
3<input type="hidden" name="product-id" value="<?php echo absint( $product->get_id() ); ?>" />
4<input type="hidden" name="contact-subject" value="<?php echo esc_html( $product->get_title() ) ?>" />
5