I'd like to have mandatory telephone field in contact form, so customers who'd like to contact me would also have to insert their telephone number.
Would that be hard to implement?
Would that be hard to implement?
Last edited by krneki on Tue Jan 14, 2014 10:24 pm, edited 1 time in total.
I couldn't find an extension that does this, however you could do this:
http://forum.opencart.com/viewtopic.php?f=29&t=2648
All the best,
Peter
http://forum.opencart.com/viewtopic.php?f=29&t=2648
All the best,
Peter
For OpenCart & PHP/MySQL support feel free to PM me
Click here for my extentions
Did I help you? Donate here to show support
Sorry that link won't actually do it I misread. I will work on an extension like this starting tomorrow
Peter
Peter
For OpenCart & PHP/MySQL support feel free to PM me
Click here for my extentions
Did I help you? Donate here to show support
Hardest thing is validating phone number.krneki wrote:I'd like to have mandatory telephone field in contact form, so customers who'd like to contact me would also have to insert their telephone number.
Would that be hard to implement?
Try attached vQmod, it:
- add input field to form
- checks input, allowed: digits, countrycode with () or + and digits seperated by -
- adds phonenumber to mail->text
- tested on 1.5.3.1 and 1.5.6.1
Thanks a lot for this extension! I actually wouldn't even need phone number validation, but if it's there, let it be. I would just need to allow one more sign: /
So how should I edit this line?
Are spaces between numbers allowed?
So how should I edit this line?
Code: Select all
if (!preg_match('/^[\d|\+|\(]+[\)|\d|\s|-]*[\d]$/', $this->request->post['phonenumber'])) {
Change into:
Added \W - Any non-word character
Code: Select all
if (!preg_match('/^[\d|\+|\(]+[\)|\d|\s|\W|-]*[\d]$/', $this->request->post['phonenumber'])) {
I'm about to start an extension where you can add contact fields
For OpenCart & PHP/MySQL support feel free to PM me
Click here for my extentions
Did I help you? Donate here to show support
This one will add the phone number, but what people really need on the contact form is their Order Number.
http://forum.opencart.com/viewtopic.php?f=131&t=35286
IT would be nice if they started typing their name and then it would fill it out for them and let them pick an order number! Like it does in the Admin when you look for a Customer.
http://forum.opencart.com/viewtopic.php?f=131&t=35286
IT would be nice if they started typing their name and then it would fill it out for them and let them pick an order number! Like it does in the Admin when you look for a Customer.
Thanks!
Gilmore
Great extension but it does not work for me...
Hope that someone can help.
I get the error: SEARCH NOT FOUND (ABORTING MOD): <b><?php echo $entry_enquiry; ?></b><br />
Thanks, Henri
Hope that someone can help.
I get the error: SEARCH NOT FOUND (ABORTING MOD): <b><?php echo $entry_enquiry; ?></b><br />
Thanks, Henri
Compare contact.tpl form used theme with default contact.tpl
Search for
Copy line where you find the code.
Edit xml
Replace code
Search for
Code: Select all
<?php echo $entry_enquiry; ?>
Edit xml
Code: Select all
<search position="before"><![CDATA[<b><?php echo $entry_enquiry; ?></b><br />]]></search>
Code: Select all
<search position="before"><![CDATA[NEW_CODE_HERE]]></search>
Hi pprmkr!pprmkr wrote:Hardest thing is validating phone number.krneki wrote:I'd like to have mandatory telephone field in contact form, so customers who'd like to contact me would also have to insert their telephone number.
Would that be hard to implement?
Try attached vQmod, it:
- add input field to form
- checks input, allowed: digits, countrycode with () or + and digits seperated by -
- adds phonenumber to mail->text
- tested on 1.5.3.1 and 1.5.6.1
Thanks for the file! It worked for me. I just got a initial error cause on the begginig i had double translation where you put version for english and dutch, this was causing a problem to not send the telephone on the message.
Well for portugue-se only i have made a change for brazilian guys.
Is on this Link: http://www.brasilnaweb.com.br/contribui ... ormcontato
"Adicionar campo de telefone no formulário de contato"
Who is online
Users browsing this forum: No registered users and 23 guests