Dave L Posted September 6, 2011 Share Posted September 6, 2011 Hi, Appreciate any help/advice. I'm not an expert by any means with coding although I am learning. I sometimes get messages from customers using the Contact Us form where they have made an error when entering their email address which results in a bounce back when I reply to it.. I would like for them to include their mobile phone number on the form so that if the email gets bounced back I can follow up with a phone call. In mytheme/contact-form.tpl I have added the following: <p class="text"> <label for="phone_mobile">{l s='Mobile Phone:'}</label> <input id="phone_mobile" class="text" type="text" value="" name="phone_mobile"> </p> and in mails/en/contact.html I have added: <td align="left"> E-mail address: <a href="mailto:{email}"><b>{email}</b></a> <br><br> Mobile Phone: {phone_mobile} <br><br> Message: {message} </td> When I test this the email I receive from the customer is missing the phone number like this: E-mail address: [email protected] Mobile Phone: {phone_mobile} Message: message from customer here. Where have I gone wrong please. Thanks. Link to comment Share on other sites More sharing options...
Kerm Posted September 6, 2011 Share Posted September 6, 2011 \modules\mailalerts\mailalerts.php After: '{delivery_phone}' => $delivery->phone, Add this code: '{delivery_phone_mobile}' => $delivery->phone_mobile, After: '{invoice_phone}' => $invoice->phone, Add this code: '{invoice_phone_mobile}' => $invoice->phone_mobile, In file: \modules\mailalerts\mails\ru\new_order.html Add where you need: {delivery_phone_mobile} и {invoice_phone_mobile} Link to comment Share on other sites More sharing options...
Kerm Posted September 6, 2011 Share Posted September 6, 2011 Oh..this code I post need for receive buyer mobile number when he buy product..sorry Link to comment Share on other sites More sharing options...
Dave L Posted September 7, 2011 Author Share Posted September 7, 2011 After reading some other threads I gather the contact-form.php file needs to be edited. Could anyone advise please. Link to comment Share on other sites More sharing options...
Dave L Posted September 26, 2011 Author Share Posted September 26, 2011 Appreciate any help on this one please. Also, is there a way for a 'validate' email address field to be included? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now