Skip to content

Commit

Permalink
Selectively display online_check fields, for AuthNet or not
Browse files Browse the repository at this point in the history
  • Loading branch information
jlav1n committed Nov 2, 2017
1 parent df69a4a commit f25850f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions dist/strap/include/checkout/payment_info
Expand Up @@ -229,6 +229,8 @@
[msg arg.0="[handling cod]"]There will be a %s charge added for COD.[/msg]
</div>
<div id="online_check" style="display:none">

[if variable MV_PAYMENT_MODE eq authorizenet]
<div class="form-group" style="margin-top:1em">
<label for="check_accttype" class="col-sm-3 control-label">[error name=check_accttype std_label="[L]Type of Account[/L]" required=1]</label>
<div class="col-sm-9 col-md-6 col-lg-4">
Expand Down Expand Up @@ -274,6 +276,35 @@ Business Checking=Business Checking|]
<p class="text-info">
By clicking the button below, I authorize __COMPANY__ to charge my bank account today (or on the next business day) for [total-cost] for the items listed above.
</p>
[else]
<div class="form-group">
<label for="check_account" class="col-sm-3 control-label">[error name=check_account std_label="[L]Account #[/L]" required=1]</label>
<div class="col-sm-9 col-md-6 col-lg-4">
<input class="form-control" type="text" name="check_account" id="check_account" value="[evalue check_account]">
</div>
</div>
<div class="form-group">
<label for="check_routing" class="col-sm-3 control-label">[error name=check_routing std_label="[L]Routing #[/L]" required=1]</label>
<div class="col-sm-9 col-md-6 col-lg-4">
<input class="form-control" type="text" name="check_routing" id="check_routing" value="[evalue check_routing]" maxlength=9>
<small class="help-block">(9 digits)</small>
</div>
</div>
<div class="form-group">
<label for="check_number" class="col-sm-3 control-label">[error name=check_number std_label="[L]Check #[/L]" required=1]</label>
<div class="col-sm-9 col-md-6 col-lg-4">
<input class="form-control" type="text" name="check_number" id="check_number" value="[evalue check_number]">
</div>
</div>
<div class="form-group">
<label for="check_bank_phone" class="col-sm-3 control-label">[error name=check_bank_phone std_label="[L]Bank Phone[/L]" required=1]</label>
<div class="col-sm-9 col-md-6 col-lg-4">
<input class="form-control" type="text" name="check_bank_phone" id="check_bank_phone" value="[evalue check_bank_phone]">
</div>
</div>
[/else]
[/if]

</div>
<div id="purchase_order" style="display:none">
<div class="form-group" style="margin-top:1em">
Expand Down

0 comments on commit f25850f

Please sign in to comment.