Hello everyone im sure someone here will prove to be smarter than me. Ive currently upgraded my version of OC from 1.5 to 2.2 and am trying to get my credit card processing merchant up and running again. I have installed the correct version of the extension ive been through the install process multiple times and cant seem to figure out what im doing wrong. error log im getting is PHP Notice: Undefined variable: text_loading in /home1/partself/public_html/catalog/view/theme/spare/template/payment/beanstream.tpl on line 99
Now here is what I get in that file and I have highlighted line 99
thanks in advance for any help
?>
<form class="form-horizontal" id="payment_form">
<fieldset id="payment">
<legend><?php echo $text_credit_card; ?></legend>
<div class="form-group required">
<label class="col-sm-2 control-label" for="input-cc-type"><?php echo $entry_cc_type; ?></label>
<div class="col-sm-3">
<select name="cc_type" id="input-cc_type" class="form-control">
<option value="VISA">VISA</option>
<option value="MASTER">MASTER</option>
<option value="AMEX">AMEX</option>
<option value="DC">DC</option>
</select>
</div>
</div>
<div id="card_info">
<div class="form-group required">
<label class="col-sm-2 control-label" for="input-cc-name"><?php echo $entry_cc_owner; ?></label>
<div class="col-sm-10">
<input type="text" name="cc_owner" value="" placeholder="<?php echo $entry_cc_owner; ?>" id="input-cc-name" class="form-control"/>
</div>
</div>
<div class="form-group required">
<label class="col-sm-2 control-label" for="input-cc-number"><?php echo $entry_cc_number; ?></label>
<div class="col-sm-10">
<input type="text" name="cc_number" value="" placeholder="<?php echo $entry_cc_number; ?>" id="input-cc-number" class="form-control"/>
</div>
</div>
<div class="form-group required">
<label class="col-sm-2 control-label" for="input-cc-expire-date"><?php echo $entry_cc_expire_date; ?></label>
<div class="col-sm-3">
<select name="cc_expire_date_month" id="input-cc-expire-date" class="form-control">
<?php foreach ($months as $month) { ?>
<option value="<?php echo $month['value']; ?>"><?php echo $month['text']; ?></option>
<?php } ?>
</select>
</div>
<div class="col-sm-3">
<select name="cc_expire_date_year" class="form-control">
<?php foreach ($year_expire as $year) { ?>
<option value="<?php echo $year['value']; ?>"><?php echo $year['text']; ?></option>
<?php } ?>
</select>
</div>
</div>
</div>
<div class="form-group required">
<label class="col-sm-2 control-label" for="input-cc-cvv2"><?php echo $entry_cc_cvv2; ?></label>
<div class="col-sm-10">
<input type="text" name="cc_cvv2" value="" placeholder="<?php echo $entry_cc_cvv2; ?>" id="input-cc-cvv2" class="form-control"/>
</div>
</div>
</fieldset>
</form>
<div class="buttons">
<div class="pull-right">
<input type="button" value="<?php echo $button_confirm; ?>" id="button-confirm" data-loading-text="<?php echo $text_loading; ?>" class="btn btn-primary"/>
</div>
</div>
<script type="text/javascript"><!--
$('#button-confirm').bind('click', function () {
$.ajax({
url: 'index.php?route=payment/beanstream/send',
type: 'post',
data: $('#payment_form').serialize(),
dataType: 'json',
beforeSend: function () {
$('#beanstream_message_error').remove();
$('#button-confirm').attr('disabled', true);
$('#payment').before('<div id="beanstream_message_wait" class="alert alert-info"><i class="fa fa-info-circle"></i> <?php echo $text_wait; ?></div>');
},
complete: function () {
$('#button-confirm').attr('disabled', false);
$('#beanstream_message_wait').remove();
},
success: function (json) {
// if error
if (json['error']) {
$('#payment').before('<div id="beanstream_message_error" class="alert alert-warning"><i class="fa fa-info-circle"></i> ' + json['error'] + '</div>');
}
// if success
Incomplete decimal OC version posted.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Well, I used the sagepay payment file Sample, to show you, how it should look.
Good Luck!
Ernie
---
Good Luck!
Ernie
---
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Who is online
Users browsing this forum: No registered users and 39 guests