Post by partself » Tue Feb 06, 2018 11:27 am

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

Newbie

Posts

Joined
Tue Feb 06, 2018 11:15 am

Post by straightlight » Wed Feb 07, 2018 7:23 am

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


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by partself » Thu Feb 08, 2018 2:05 am

So Sorry but OC Version we are currently using is 2.2.0.0

Newbie

Posts

Joined
Tue Feb 06, 2018 11:15 am

Post by partself » Wed Feb 14, 2018 6:46 am

I Fixed the problem thanks

Newbie

Posts

Joined
Tue Feb 06, 2018 11:15 am

Post by sohel1329 » Thu May 31, 2018 6:12 pm

partself wrote:
Wed Feb 14, 2018 6:46 am
I Fixed the problem thanks
How did you solved the error. i am facing the error also. i am using journal theme in opencart version 2.3. please reply with solution.

Newbie

Posts

Joined
Mon May 28, 2018 3:55 pm

Post by IP_CAM » Fri Jun 01, 2018 6:43 am

Well, I used the sagepay payment file Sample, to show you, how it should look.
Good Luck!
Ernie
---
Image

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.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 39 guests