| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
UK Electoral Role Check and Google Maps Link | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
UK Electoral Role Check and Google Maps Link
Hi,
Have found this mod to be very useful and thought I would share, it has loads of possibilities so please add to this code. Designed for 4.0.18, haven't looked at it for 4.1.x branch. With a click of a button it can do the following: Electroral role check Check post code in google maps (you can then view maps etc) Calculate shipping and billing address route Very easy to install: Edit skin1/main/order_info.tpl Add the following at the end: {if $usertype eq 'A'} {literal} <form class="homesearch" id="search" name="search" action="http://www.192.com/search/search.cfm" method="post" enctype="application/x-www-form-urlencoded" target="_blank"> <input type="hidden" name="section" value="all" /> <input type="hidden" name="view" value="S" /> <input type="text" name="who" id="who" autocomplete="off" value="{/literal}{$customer.b_lastname}{literal}" /> <input type="text" name="location" id="location" autocomplete="off" value="{/literal}{$customer.b_zipcode}{literal}" /> <input type="submit" name="btnSearch" id="btnSearch" onClick="if(isSubmittable('who') == true){document.forms[0].submit();} else {return false;}" value="Billing 192" class="submit" /> <a href="http://www.google.co.uk/search?hl=en&q={/literal}{$customer.b_zipcode}{literal}&btnG=Google +Search&meta=cr%3DcountryUK%7CcountryGB" target="_blank">Google Search</a> <a href="http://maps.google.co.uk/maps?q={/literal}{$customer.b_zipcode}{literal}" target="_blank">Google Map</a> </form> <br> <form class="homesearch" id="search" name="search" action="http://www.192.com/search/search.cfm" method="post" enctype="application/x-www-form-urlencoded" target="_blank"> <input type="hidden" name="section" value="all" /> <input type="hidden" name="view" value="S" /> <input type="text" name="who" id="who" autocomplete="off" value="{/literal}{$customer.s_lastname}{literal}" /> <input type="text" name="location" id="location" autocomplete="off" value="{/literal}{$customer.s_zipcode}{literal}" /> <input type="submit" name="btnSearch" id="btnSearch" onClick="if(isSubmittable('who') == true){document.forms[0].submit();} else {return false;}" value="Shipping 192" class="submit" /> <a href="http://www.google.co.uk/search?hl=en&q={/literal}{$customer.s_zipcode}{literal}&btnG=Google +Search&meta=cr%3DcountryUK%7CcountryGB" target="_blank">Google Search</a> <a href="http://maps.google.co.uk/maps?q={/literal}{$customer.s_zipcode}{literal}" target="_blank">Google Map</a> </form> <br> <a href="http://maps.google.co.uk/maps?q={/literal}{$customer.b_zipcode}{literal}+to+{/literal}{$customer.s_zipcode}{literal}" target="_blank">Google Map Directions</a> {/literal} {/if} Please let me know what you think. Cheers, Andy
__________________
X-Cart Gold v4.1.11 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: UK Electoral Role Check and Google Maps Link
Cool ! ...
Works with 4.1.7 too Nice one Andy. Regards Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#3
|
|||||||
|
|||||||
Re: UK Electoral Role Check and Google Maps Link
and in 4.0.5 - nice addition
__________________
x-cart 4.0.5 (live and heavily modded) Server: freebsd |
|||||||
#4
|
|||||||||
|
|||||||||
Re: UK Electoral Role Check and Google Maps Link
Thank you very much for your share.
Works in 4.1.7 too
__________________
X-card Gold 4.1.7 Batch Order Mod/Order Processing Detailed Order Management Mod Order Audit/Profit reports Advanced Product Search Ajax Username Checker Direct Product Enquiry Form FAQ Manager Social Bookmarking Tabs Mod v3 MagneticOne.com All-IN-ONE X-Cart Export Show Referrer Information on Order Details Page www.medsmarket.net |
|||||||||
#5
|
|||||||
|
|||||||
Re: UK Electoral Role Check and Google Maps Link
Cheers Andy, Very handy little add-on
__________________
X-Cart Gold 4.0.17 X-AOM Safetynet DSEFU Easy Checkout _________________ |
|||||||
|
|||
X-Cart forums © 2001-2020
|