View Single Post
  #1  
Old 10-15-2020, 06:52 AM
 
PhilJ PhilJ is offline
 

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

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, 16 views)
Attached Files
File Type: tpl zone_edit_uk_counties.tpl (2.3 KB, 9 views)
__________________
XCARTMODS.CO.UK | reBOOT Template | Changelog
Reply With Quote