If you want to add the more fields in the request quote form such as Fone number address etc. You’ll have to follow the below steps
Step 1: Add Fields in functions.php File
First, you need to add the new fields to the form. This involves updating the functions.php file of your child theme (or using a code snippet plugin if you prefer not to modify the theme files directly).
-
-
- Open
functions.phpof your child theme. - Add the following code snippet to include the phone number and address fields or as many fields as you want.
- Open
-
Step 2: Override the Template
Next, you need to update the email template to display these new fields in email. This involves overriding the default template in your child theme.
- Copy the
author-email-content.phpfile from the WooCommerce Price Quote Pro plugin to your child theme. The original template path in the plugin will bewp-content/plugins/woocommerce-price-quote-pro/templates/author-email-content.php. - Paste the copied template into your child theme at the following path:
wp-content/themes/my-child-theme/woocommerce-price-quote-pro/author-email-content.php.
wp-content/themes/my-child-theme/woocommerce-price-quote-pro/author-email-content.php
Step 3: Modify the Template
Edit the overridden template to include the new fields.
- Open
author-email-content.phpin your child theme. - Locate line 30 (or the appropriate place where you want the new fields to appear) and add the following lines:
<br>Phone Number: <?php echo $phone_number; ?>
<br>Address: <?php echo $address; ?>
For example, if you have added a phone number field and the field name is
number, you would add:<br>Phone Number: <?php echo $number; ?>

