If you want to create Request a Quote on Product Page WooCommerce, just follow these steps
1. Create “Request a Quote” Form
Follow this post to create a Form. We need to create the following fields
- Your Name – Single Line Text Field
- Your Email – Email Field
- Product Title – Single Line Text Field with Default: {embed_post:post_title}
- Quantity – Number Field
- Your Message – Text Area Field
- Send – Button Field
Next, you need to get Form Shortcode. Follow Step 5 in this guide to know how to find shortcode.
2. Install Code Snippets
3. Add New Snippet
Name your snippet, paste snippet and check on Only run on site front-end.
Remember to replace the shortcode in the image with your shortcode
4. Save Changes and Activate