summaryrefslogtreecommitdiff
path: root/include/checkout/shipping_address
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-07 23:21:23 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-07 23:21:23 +0800
commitc302b25c7512159cd65ea27d53460d02fa14d75c (patch)
tree7fb21042e3fcdf9f983f8ba95f83e19c71048477 /include/checkout/shipping_address
parent30079eb764c8888bf6ad6080e96feef03aae64e3 (diff)
Fix form input names
Diffstat (limited to 'include/checkout/shipping_address')
-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]