Would that be hard to implement?
http://forum.opencart.com/viewtopic.php?f=29&t=2648
All the best,
Peter
For professional OpenCart, HTML/CSS & PHP/MySQL support feel free to PM me
Click here for my extentions
Did I help you? Donate here to show support
Follow me on Twitter!
Catch me on Facebook!
Watch YouTube OpenCart Tutorials and Extension Demos

Peter
For professional OpenCart, HTML/CSS & PHP/MySQL support feel free to PM me
Click here for my extentions
Did I help you? Donate here to show support
Follow me on Twitter!
Catch me on Facebook!
Watch YouTube OpenCart Tutorials and Extension Demos
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
So how should I edit this line?
Code: Select all
if (!preg_match('/^[\d|\+|\(]+[\)|\d|\s|-]*[\d]$/', $this->request->post['phonenumber'])) {
Code: Select all
if (!preg_match('/^[\d|\+|\(]+[\)|\d|\s|\W|-]*[\d]$/', $this->request->post['phonenumber'])) {

For professional OpenCart, HTML/CSS & PHP/MySQL support feel free to PM me
Click here for my extentions
Did I help you? Donate here to show support
Follow me on Twitter!
Catch me on Facebook!
Watch YouTube OpenCart Tutorials and Extension Demos
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
Hope that someone can help.
I get the error: SEARCH NOT FOUND (ABORTING MOD): <b><?php echo $entry_enquiry; ?></b><br />
Thanks, Henri
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"
Users browsing this forum: No registered users and 3 guests