Displaying email and phone number
-
Hi guys, I am in serious need of some help.
On my website when you purchase something, I get sent an email with information of what has been purchased as well as your email adress.
Now,I have added a custom field where you type in your phone number. The field works just fine but in the email I receive, I do not get the number you typed it. The email just says: Phone:Again, the email adress gets shown correctly, but now the phone number. So, I hope we can figure out what I am missing or doing wrong. I have copied the code for the email (which works) and the code I have made for the phone number below.
In the email that gets sent, this is the PHP code:
echo __( 'Email:', 'ywraq' ); echo $raq_data['user_email'] . "\n"; echo __( 'Phone:', 'ywraq' ); echo $plain_text['user_phone'] . "\n";This is the PHP code for the email found in the form of the checkout:
<p class="form-row form-row-wide validate-required" id="rqa_email_row"> <label for="rqa-email" class=""><?php _e( 'Email', 'ywraq' ) ?> <abbr class="required" title="required">*</abbr></label> <input type="email" class="input-text " name="rqa_email" id="rqa-email" placeholder="" value="<?php echo $user_email ?>" required> </p>And finally, the one I added for the phone number:
<p class="form-row form-row-wide validate-required" id="rqa_phone_row"> <label for="rqa-phone" class=""><?php _e( 'Phone', 'ywraq' ) ?> <abbr class="required" title="required">*</abbr></label> <input type="text" class="input-text " phone="rqa_phone" id="rqa-phone" placeholder="" value="<?php echo $user_phone ?>" required> </p>Anyone with an idea of what I need to do in order to get the phone number shown in the email as well?
Hoping for some help, this has been killing me.Thanks in advance.
The topic ‘Displaying email and phone number’ is closed to new replies.