diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-07 23:21:23 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-07 23:21:23 +0800 |
commit | c302b25c7512159cd65ea27d53460d02fa14d75c (patch) | |
tree | 7fb21042e3fcdf9f983f8ba95f83e19c71048477 | |
parent | 30079eb764c8888bf6ad6080e96feef03aae64e3 (diff) |
Fix form input names
-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 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] |