Telesign
Already a TeleSign user? Click here to log in.
Telephone Verification
With over 100 million transactions processed, TeleSign is the most respected name in the field of telephone verification and protects the websites of the biggest companies on the internet.

Integration X-Cart

1. Requirements

  • X-Cart 4.3.0
  • Unix/Linux/Windows/MacOS X Server
  • PHP Version 4.3 or above
  • MySQL 3.23 or above


2. Installing X-Cart

Follow the instructions in X-Cart Manual to download and install the software on your server.


3. Installing Telesign Module

Start by downloading the module package from here (update: 22.04.2010) and unpacking it somewhere on your hard drive (NOT in the same location as X-Cart parent directory!).

To install TeleSign Verification module for X-Cart please follow the steps:

  1. Execute SQL queries in the file sql.txt. You can do this using phpMyAdmin or any other SQL management tool.
  2. Make a backup copy of the file skin1\customer\home_main.tpl from your X-Cart directory
    This is the only file you will have to overwrite. If you have custom modifications in this file please see Appendix A.
  3. Copy all files from _files directory to your X-Cart directory
  4. Modify cart.php located at your X-Cart directory:
    1. after line 261 add:
       x_session_register('userphone',$userinfo['phone']); x_session_register('userccode',$userinfo['b_country']);
      
  5. Delete the cache:
    1. go to the var/cache directory and remove all *.php files
    2. go to the var/templates_c directory and remove all *.md5 and *.php files
  6. Log in to X-Cart admin panel (http://your-xcart/admin)
  7. Go to Settings->General settings->Telesign Verification
  8. Enter your Telesign's Customer ID and Authentication ID and click Save button. If you don't know where to find these ID-s see Appendix B

From now on every user who will register on your shop will have to enter his/her phone number, and type the PIN sent via SMS/phone call

Appendix A

Preserving custom modifications in home_main.tpl file.


  1. Open the home_main.tpl file in any text editor, eg. Notepad
  2. Scroll down and find this text:
     {else} {include file="common_templates.tpl"} {/if}
    
  3. Above this text add these 2 lines:
     {elseif $main eq "telesign"} {include file="modules/Telesign_Verification/telesign_dialog.tpl"}
    
  4. The bottom of the home_main.tpl file after this change should look like this:
     {elseif $main eq "need_login" || $main eq "login_incorrect" || $main eq "antibot_error" || $main eq "disabled"} {include file="customer/main/error_login.tpl" is_remember="Y"} {elseif $main eq "telesign"} {include file="modules/Telesign_Verification/telesign_dialog.tpl"} {else} {include file="common_templates.tpl"} {/if}
    

Appendix B

To get Customer ID and Authentication ID you need to register on www.telesign.com
Just after you register you should receive an e-mail with these 2 ID-s.

If you registered some time ago you can log in on www.telesign.com, and go to page 'Get Integration Information' (https://www.telesign.com/account_integration.php). Scroll down and you will find Customer ID and Authentication ID.

4. Help

If you have any questions about the installation please contact me at:

tomw@telesign.com

Copyright © 2008 by TeleSign Corp. All rights reserved. Read our Privacy Policy.