summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/checkout/shipping_address4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/checkout/shipping_address b/include/checkout/shipping_address
index 4393cc7..5b2b24e 100644
--- a/include/checkout/shipping_address
+++ b/include/checkout/shipping_address
@@ -46,9 +46,9 @@ return $options;
<select name="address3" 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 shipping WHERE city='" . $Tag->value({keep => 1, filter => encode_entities, name => 'address3'}) . "' GROUP BY district ORDER BY district"})}) {
+for my $district (@{$Tag->query({sql => "SELECT district FROM shipping 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 => 'district'}) ? ' selected' : '') . ">$district->[0]</option>";
+ <option value="$district->[0]") . ($district->[0] eq $Tag->value({keep => 1, filter => encode_entities, name => 'address3'}) ? ' selected' : '') . ">$district->[0]</option>";
}
return $options;
[/perl]