Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Shipping Destination Zones UK - Quick Select Counties by Country

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1  
Old 10-15-2020, 06:52 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 3,968
 

Smile Shipping Destination Zones UK - Quick Select Counties by Country

Quick helper mod for when setting up UK shipping zones.

Enables you to select UK counties by country (England/Scotland/N. Ireland/Wales).

1) Upload attached zone_edit_uk_counties.tpl to /skin/common_files/provider/main

2) In /skin/common_files/provider/main/zone_edit.tpl

AFTER...
Code:
<select id="rest_states" name="rest_states" multiple="multiple" style="width: 100%;" size="{$states_box_size}"> {section name=rsid loop=$rest_states} <option value="{$rest_states[rsid].country_code}_{$rest_states[rsid].code|escape}">{$rest_states[rsid].country|truncate:"17":"...":true}: {$rest_states[rsid].state}</option> {/section} </select>

INSERT...
Code:
{* https://forum.x-cart.com/showthread.php?t=78030 *} {include file="provider/main/zone_edit_uk_counties.tpl"}
Clear X-Cart cache, done

Reference: https://en.wikipedia.org/wiki/ISO_3166-2:GB
Attached Images
File Type: png screenshot.png (7.0 KB, 18 views)
Attached Files
File Type: tpl zone_edit_uk_counties.tpl (2.3 KB, 11 views)
__________________
XCARTMODS.CO.UK | reBOOT reDUX Template | reBOOT reDUX Changelog | ViViD Template (work in progress)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:45 PM.

   

 
X-Cart forums © 2001-2020