diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-16 15:35:33 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-16 15:35:33 +0800 |
commit | eed1ca92362c67ee80f015c17d4e0eb17f240611 (patch) | |
tree | 51256a6424f8c91c636297e24ca80514164e6d65 /include/checkout/shipping_address | |
parent | f97027b6a634e3a89783fbf34e6ddec26884c278 (diff) |
address2 is the one used for district
Diffstat (limited to 'include/checkout/shipping_address')
-rw-r--r-- | include/checkout/shipping_address | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/checkout/shipping_address b/include/checkout/shipping_address index 2a6c2d1..1b23086 100644 --- a/include/checkout/shipping_address +++ b/include/checkout/shipping_address @@ -43,12 +43,12 @@ return $options; </div> <div class="form-group col-md-8"> <label class="form-label" for="district_shipping">[L]District[/L]</label> - <select name="address3" id="district_shipping" class="form-control" onchange="this.form.submit()"> + <select name="address2" id="district_shipping" class="form-control" onchange="this.form.submit()"> <option value="-- [L]Please select[/L] --">-- [L]Please select[/L] --</option>[perl products] my $options = ''; for my $district (@{$Tag->query({sql => "SELECT district FROM anteraja WHERE city='" . $Tag->value({keep => 1, filter => encode_entities, name => 'city'}) . "' GROUP BY district ORDER BY district"})}) { $options .= qq( - <option value="$district->[0]") . ($district->[0] eq $Tag->value({keep => 1, filter => encode_entities, name => 'address3'}) ? ' selected' : '') . ">$district->[0]</option>"; + <option value="$district->[0]") . ($district->[0] eq $Tag->value({keep => 1, filter => encode_entities, name => 'address2'}) ? ' selected' : '') . ">$district->[0]</option>"; } return $options; [/perl] |