"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dist/standard/include/checkout/payment_select" between
interchange-5.8.2.tar.gz and interchange-5.10.0.tar.gz

About: Interchange is an Electronic commerce system (supports SSL, PGP/GPG).

payment_select  (interchange-5.8.2):payment_select  (interchange-5.10.0)
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="4" width="100%">
<tr class="titletab_small">
<td colspan=4 class="titletab_small"><b>[L]&nbsp;Payment Method[/L]<
/b></td>
</tr>
<tr>
<td colspan=4 class="contentbar1">&nbsp;</td>
</tr>
<tr>
<td class="contentbar1">&nbsp;</td>
<td class="contentbar1">
[if !scratch old_browser]
<script> <script>
var possible = ['credit_card', 'cod', 'postal', 'online_check', 'purchase_order' ]; var possible = ['credit_card', 'pay_cert', 'cod', 'postal', 'online_check', 'pur chase_order'];
function visible (selnam) { function visible (selnam) {
if(selnam == undefined) { if(selnam == undefined) {
var form = document.checkout; var form = document.checkout;
if(form == undefined) if(form == undefined)
return; return;
var selec = form.mv_order_profile; var selec = form.mv_order_profile;
if(selec.selectedIndex == undefined) if(selec.selectedIndex == undefined)
selec.selectedIndex = 0; selec.selectedIndex = 0;
selnam = selec.options[selec.selectedIndex].value; selnam = selec.options[selec.selectedIndex].value;
} }
// alert("selnam=" + selnam); //alert("selnam=" + selnam);
var sel = document.getElementById(selnam); var sel = document.getElementById(selnam);
// alert("sel=" + sel);
if(sel == undefined) if(sel == undefined)
return; return;
for(var i = 0; i < possible.length; i++) { for(var i = 0; i < possible.length; i++) {
var xel = document.getElementById(possible[i]); var xel = document.getElementById(possible[i]);
//alert("xel=" + xel);
if(xel != undefined) { if(xel != undefined) {
xel.style.zIndex = 0; xel.style.display = 'none';
xel.style.visibility = 'Hidden';
} }
} }
sel.style.visibility = 'Visible'; sel.style.display = 'block';
sel.style.zIndex = 2;
return; return;
} }
</script> </script>
[if scratch pay_cert_code]
[loop list="[scratch pay_cert_code]"]
[loop-calc]
$pay_cert_amount += [loop-data pay_certs amount];
return;
[/loop-calc]
[/loop]
[calc]
$Tag->tmp('can_use_pay_cert');
my $total = [total-cost noformat=1];
if($total <= $pay_cert_amount) {
$Scratch->{can_use_pay_cert} = 1;
}
return;
[/calc]
[/if]
[if scratch can_use_pay_cert]
[value name=mv_order_profile set=pay_cert hide=1]
[else]
[value name=mv_order_profile set=credit_card hide=1]
[/else]
[/if] [/if]
<select name="mv_order_profile" [calc]
onChange="[if scratch old_browser] my $num = 0;
this.form.submit( $num++ if $Scratch->{can_use_pay_cert};
) $num++ if $Variable->{CREDIT_CARDS_ACCEPTED};
[else] $num++ if $Variable->{CHECK_ACCEPTED};
visible() $num++ if $Variable->{PO_ACCEPTED};
[/else] $num++ if $Variable->{POSTAL_ACCEPTED};
[/if]"> $num++ if $Variable->{COD_ACCEPTED};
[if scratch pay_cert_code] $Tag->tmp('num_ops', $num);
[loop list="[scratch pay_cert_code]"] return;
[loop-calc] [/calc]
$pay_cert_amount += [loop-data pay_certs
amount]; [if scratch num_ops > 1]
return; <div class="form-group">
[/loop-calc] <label for="mvop" class="col-sm-3 control-label">[L]Payment Method[/L]</l
[/loop] abel>
[calc] <div class="col-sm-9 col-md-6 col-lg-4">
$Tag->tmp('can_use_pay_cert'); <select name="mv_order_profile" id="mvop" onchange="visible()" cl
my $total = [total-cost noformat=1]; ass="form-control">
if($total <= $pay_cert_amount) { [if scratch can_use_pay_cert]
$Scratch->{can_use_pay_cert} = 1; <option value=pay_cert SELECTED>[L]Gift Certificate[/L]</
} option>
return; [/if]
[/calc] [if variable CREDIT_CARDS_ACCEPTED]
[if scratch can_use_pay_cert] <option [selected mv_order_profile credit_card] value="cr
[value name=mv_order_profile set=pay_cert hide= edit_card">[L]Credit Card[/L]</option>
1] [/if]
<option value=pay_cert SELECTED>[L]Gift Certifi [if variable CHECK_ACCEPTED]
cate[/L] <option [selected mv_order_profile online_check] value="o
[/if] nline_check">[L]Online Check[/L]</option>
[/if] [/if]
[if variable PO_ACCEPTED]
[if variable CREDIT_CARDS_ACCEPTED] <option [selected mv_order_profile purchase_order] value=
<option [selected mv_order_profile credit_card] value="credit_card "purchase_order">[L]Company P.O.[/L]</option>
">[L]Credit Card[/L] [/if]
[/if] [if variable POSTAL_ACCEPTED]
[if variable CHECK_ACCEPTED] <option [selected mv_order_profile postal] value="postal"
<option [selected mv_order_profile online_check] value="online_che >[L]Postal Billing[/L]</option>
ck">[L]Online Check[/L] [/if]
[/if] [if variable COD_ACCEPTED]
[if variable PO_ACCEPTED] <option [selected mv_order_profile cod] value="cod">[L]C.
<option [selected mv_order_profile purchase_order] value="purchase O.D.[/L]</option>
_order">[L]Company P.O.[/L] [/if]
[/if] </select>
[if variable POSTAL_ACCEPTED] </div>
<option [selected mv_order_profile postal] value="postal">[L]Posta </div>
l Billing[/L] [else]
[/if] [if scratch can_use_pay_cert]
[if variable COD_ACCEPTED] <input type=hidden name=mv_order_profile value=pay_cert>
<option [selected mv_order_profile cod] value="cod">[L]C.O.D.[/L] [elsif variable CREDIT_CARDS_ACCEPTED]
[/if] <input type=hidden name=mv_order_profile value=credit_card>
</select> [/elsif]
</td> [elsif variable CHECK_ACCEPTED]
<td colspan="2" class="contentbar1"> <input type=hidden name=mv_order_profile value=online_check>
[if scratch old_browser] [/elsif]
([L]will update display[/L]) [elsif variable PO_ACCEPTED]
[/if] <input type=hidden name=mv_order_profile value=purchase_order>
[if variable PO_ALWAYS] [/elsif]
<b>[L]P.O. Number[/L]:</b> [elsif variable POSTAL_ACCEPTED]
<input type=text name=po_number value="[e <input type=hidden name=mv_order_profile value=postal>
value po_number]"> [/elsif]
[/if] [elsif variable COD_ACCEPTED]
<input type=hidden name=mv_order_profile value=cod>
[if scratch pay_cert_code] [/elsif]
[loop list="[scratch pay_cert_code]"] [/if]
[if-loop-data pay_certs amount > 0] [/else]
<br> [/if]
<input type=checkbox name=use_pay_cert value="[lo
op-code]"> [if variable PO_ALWAYS]
Use gift certificate [loop-code] for <b>[L]P.O. Number[/L]:</b> <input type=text name=po_number value="[evalue
[currency][loop-data pay_certs am po_number]">
ount][/currency] [/if]
[/if-loop-data]
[/loop] [if scratch pay_cert_code]
[/if] <div class="form-group">
</td> <label class="col-sm-3 control-label">[L]Gift Certificates[/L]</label>
</tr> <div class="col-sm-9">
<tr> [loop list="[scratch pay_cert_code]"]
<td class="contentbar1" colspan="4">&nbsp;</td> [if-loop-data pay_certs amount > 0]
</tr> <label class="checkbox-inline" for="use_pay_cert[loop-increment]">
</table> <input type="checkbox" name="use_pay_cert" value="[loop-code]" id
="use_pay_cert[loop-increment]" [checked name=use_pay_cert value="[loop-code]" m
</td> ultiple=1] onclick="this.form.submit()">
</tr> Apply gift certificate [loop-code] for [currency][loop-data pay_c
</table> erts amount][/currency]
</label>
[/if-loop-data]
[/loop]
[value name=use_pay_cert set=""]
</div>
</div>
[/if]
 End of changes. 9 change blocks. 
23 lines changed or deleted 28 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS