Announcement

Collapse
No announcement yet.

Can I get my customers to verify their email address?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can I get my customers to verify their email address?

    This technique will replace the single 'Email' field in the checkout with two email fields, and the customer will not be able to continue until their email addresses match.

    To do this, go to the 'Design' tab and from the 'Select Page Type' list select 'Checkout Page 1'.

    Locate the 'Email Address' field in the checkout and click on it. You should now be within a layout called 'Invoice Email'.

    Look for the line within the layout:

    HTML Code:
    <input type="text" name="INVOICEEMAIL" size="20" maxlength="255" value="InvoiceEmail" />
    REPLACE the line with the following code:

    HTML Code:
    <input type="TEXT" name="INVOICEEMAIL" id="email1" size="20" maxlength="255" value="<actinic:variable name="InvoiceEmail" />">
    
    <!-- start Check email address -->
    <br>
    Repeat email address:
    <br>
    <input type="TEXT" name="DUMMY" id="email2" size="20" maxlength="255" value="<actinic:variable name="InvoiceEmail" />">
    
    <script language=JavaScript>
    <!--
    function checkemailaddress()
    {
    if ( document.getElementById('email1').value != document.getElementById('email2').value )
    {
    alert('The Email addresses do not match');
    return false;
    }
    return true;
    }
    // -->
    </script>
    <!-- end Check email address -->
    Then further down the page, click on the 'Next >' button to open the layout called 'Checkout Next Button'.

    REPLACE the entire contents of the layout with the following code:
    HTML Code:
    <input type="submit" name="ACTION" value="<actinic:variable encoding="html" name="NextButton" />" onclick="return checkemailaddress()" />
    Then update your store and try out the email address checker.


    This is a legacy document relevant to versions prior to v10, as this facility is included from v10 onwards.
Working...
X