Created : 15 April 2015
Last Modified : 29 March 2021

***********************************************************************************
Contents:

A. SUMMARY
B. FILE STRUCTURE
C. INSTALLATION INSTRUCTION
D. CHANGES
E. CONFIGURATION SETTINGS
F. DATABASE TABLES MODIFIED
G. LANGUAGE SETTINGS CHANGED
H. CHANGE LOGS
I. TROUBLESHOOTING
J. FAQ
K. COPYRIGHT NOTICE
L. TERMS AND CONDITIONS

***********************************************************************************

A. SUMMARY
==========

This module allows UK visitors to look their address up by simply entering their post code.

You will need an account, sign up here - https://www.loqate.com

At the customer form, there will be a "Address Lookup" link beside the Zip/Post code box. Customer simply need to click this link to use this service.

NOTE : This module is not supporting onepage checkout.
It will only work on normal checkout.

***********************************************************************************

B. FILE STRUCTURE
===================

Files included in the zip are:
- $readme_ukpostalcode.txt
- postcodesubs.asp
- postcodeanywhere.asp
- postcodeinclude.asp
- postcodeconfig.asp
- ajax-loader.gif
- JSON.asp
- colorbox.css
- images\*
- admin\ukpostalcode_setup.asp
- admin\ukpostalcode_setup_config.asp
- admin\ukpostalcode_setup_process.asp
- admin\admin\sqlscripts\*

***********************************************************************************

C. INSTALLATION INSTRUCTION
============================

1. Upload all the files into your shopping cart folder.

2. Log into super admin and execute setup file, eg: http://www.yourdomain.com/yourshoppingcartfolder/youradminfolder/ukpostalcode_setup.asp

3. After setup the module, would be redirected Module configuration page for configure the module.

You will need to set the following :
- Enable? : Set Yes
- Account Code : Enter your Account code
- License Key : Enter your license key
Then click Save button.

4. Go to your admin menu : Website > Template/CSS Manager.

5. In the right panel locate "Front Template" and select shoppage_trailer.htm and click Edit.

6. Locate this code near bottom of file:
</body>

7. Before that code, please insert below :

<script type="text/javascript">
<!--
//800 - 2015.10.26 - Site speed enhancement
jQl.loadjQdep('//cdnjs.cloudflare.com/ajax/libs/jquery.colorbox/1.6.4/jquery.colorbox.js');
-->
</script>
<script type="text/javascript">
var baseHref = window.location.toString().substr(0,window.location.toString().lastIndexOf("/")) + "/";
$(document).ready(function(){
setTimeout(function(){
$('input[name*="strpostcode"]').after('&nbsp;<button class="postCodeLookup submitbtn" href="' + baseHref + 'postcodeanywhere.asp?form=billing">Address Lookup</button>');$(".postCodeLookup").colorbox({width:"700px", height:"500px", iframe:true});
$('input[name*="shipzip"]').after('&nbsp;<button class="postCodeLookupShip submitbtn" href="' + baseHref + 'postcodeanywhere.asp?form=ship">Address Lookup</button>');$(".postCodeLookupShip").colorbox({width:"700px", height:"500px", iframe:true});
},1000);
});
</script>

8. Click Save button.


***********************************************************************************

D. CHANGES
===============

NONE

***********************************************************************************

E. CONFIGURATION SETTINGS
=================

NONE


F. DATABASE TABLES MODIFIED
===========================

NONE

***********************************************************************************

G. LANGUAGE SETTINGS CHANGED
============================

NONE

***********************************************************************************

H. CHANGE LOGS
============================

2017.10.24 - Use new URL http://services.postcodeanywhere.co.uk/Capture/Interactive/Find/v1.00/recordset.ws? to post request.Also updated parameters in the request.
2018.05.02 - Compatible with v9
2021.03.29 - Compatible with v9

***********************************************************************************

I. TROUBLESHOOTING
============================

Please submit a ticket to our helpdesk at https://helpdesk.vpcart.com and our support team will assist you.

***********************************************************************************

J. FAQ
============================

NONE

***********************************************************************************
K. COPYRIGHT NOTICE
============================

Copyright (c) 1999-2023 Rocksalt International Pty. Ltd.
All rights reserved.

This software and documentation constitute a published work and
contains valuable trade secrets and proprietary information
belonging to Rocksalt International Pty. Ltd. .
None of the foregoing material may be copied,
duplicated or disclosed without the express written permission
of Rocksalt International Pty. Ltd. .

LICENSEE ACCEPTS VP-ASP Shopping Cart "AS IS" "WITH ALL FAULTS",
Rocksalt International Pty. Ltd. accepts no responsibility for the
operation or performance of the VP-ASP Shopping Cart.
The entire risk of use and consequences of use of the
VP-ASP Shopping Cart falls completely on the Licensee
and Rocksalt International Pty. Ltd. shall not be liable in any respect
for any claims, loss or injury alleged to have resulted
from use of or in reliance on VP-ASP Shopping Cart.

Licensee acknowledges that it has read the foregoing
disclaimers of warranty and limitation of liability
and understands that Licensee assumes
the entire risk of using VP-ASP Shopping Cart.


***********************************************************************************

L. TERMS AND CONDITIONS
============================
ROCKSALT INTERNATIONAL GRANTS TO THE LICENSEE A NON-EXCLUSIVE,
NON-SUB LICENSABLE, NONTRANSFERABLE LICENSE
TO INSTALL AND USE THIS APPLICATION ON A SINGLE DOMAIN FOR
A SINGLE SHOP.

THE CODE IN THE APPLICATION MAY BE MODIFIED FOR USE IN
SETTING UP A SINGLE SHOPPING SITE ON THE WORLD WIDE WEB.

LICENSEE MAY MAKE A COPY OF THE APPLICATION FOR
BACK-UP AND ARCHIVAL PURPOSES, PROVIDED THAT ANY COPY
MUST CONTAIN ALL PROPRIETARY NOTICES INCLUDED
WITH THE APPLICATION.

LICENSEE IS PROHIBITED FROM SELLING OR DISTRIBUTING
THE APPLICATION IN ANY MANNER.

LIMITATION OF LIABILITY.

ROCKSALT INTERNATIONAL AND ITS LICENSORS SHALL
NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE OR ANY
THIRD PARTY AS A RESULT OF USING OR DISTRIBUTING THIS
APPLICATION.

IN NO EVENT WILL ROCKSALT INTERNATIONAL OR ITS LICENSORS
BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
OR FOR DIRECT, INDIRECT, SPECIAL,
CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES,
HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LI
ARISING OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE,
EVEN IF ROCKSALT INTERNATIONAL HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.