X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Shipping Destination Zones UK - Quick Select Counties by Country (https://forum.x-cart.com/showthread.php?t=78030)

PhilJ 10-15-2020 06:52 AM

Shipping Destination Zones UK - Quick Select Counties by Country
 
2 Attachment(s)
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


All times are GMT -8. The time now is 12:10 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.