summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-16 15:35:33 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-16 15:35:33 +0800
commiteed1ca92362c67ee80f015c17d4e0eb17f240611 (patch)
tree51256a6424f8c91c636297e24ca80514164e6d65
parentf97027b6a634e3a89783fbf34e6ddec26884c278 (diff)
address2 is the one used for district
-rw-r--r--include/checkout/shipping_address4
-rw-r--r--include/profiles/profiles.order2
2 files changed, 3 insertions, 3 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]
diff --git a/include/profiles/profiles.order b/include/profiles/profiles.order
index 10c9726..fa02037 100644
--- a/include/profiles/profiles.order
+++ b/include/profiles/profiles.order
@@ -2,7 +2,7 @@ __NAME__ bank_transfer
fname=required
address1=required
-address3=required
+address2=required
city=required
state=required
&fatal=yes