Hey,
the situation is the following:
We use guest checkout without registration and the most important value for us is the phone number of the customer (so we can callback).
The problem is, people sometimes make typos and we cannot fullfil the order.
What I would like to do is add a second phone number field below the first one and make people enter their number twice, then make the fields check for similar input. Like password fields on some websites.
Someone can help me with it?
Help is much apreciated!!
What opencart version?? I might be able to throw a quick mod together for you. seems simple enough
you could just code it yourself and edit the template files
add this after the phone input
add this after the phone input
Code: Select all
<div class="form-group required col-md-6">
<label class="control-label" for="input-payment-telephone-verify">Telephone Verification</label>
<input type="text" required="required" id="input-payment-telephone-verify" oninput="check(this)" class="form-control">
<script language="javascript" type="text/javascript">
function check(input) {
if (input.value != document.getElementById('input-payment-telephone').value) {
input.setCustomValidity('Telephone Must be Matching.');
} else {
// input is valid -- reset the error message
input.setCustomValidity('');
}
}
</script>
</div>
Who is online
Users browsing this forum: No registered users and 148 guests